iswiftapp / iswift

Objective-C to Swift Converter
30 stars 3 forks source link

Keep one-line comments on the same line #176

Open charlieMonroe opened 8 years ago

charlieMonroe commented 8 years ago

Example:

++counter; // Increase counter
++index; // Increase index
continue;

Output:

++counter
// Increase counter
++index
// Increase index
continue

As you can see, the comments in the result really don't make sense since they are about the line above them, which is hard to read.

If possible, keep them on the same line, or if that's not possible, move them above:

// Increase counter
++counter
// Increase index
++index
continue