-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Remove whitespace from TODO message #801
Conversation
could you please add a changelog entry? |
@@ -58,6 +58,8 @@ public struct TodoRule: ConfigurationProviderRule { | |||
message = message.stringByReplacingOccurrencesOfString("TODO", withString: "") | |||
} | |||
message = message.stringByReplacingOccurrencesOfString("//", withString: "") | |||
// trim whitespace | |||
message = message.stringByTrimmingCharactersInSet(NSCharacterSet.whitespaceAndNewlineCharacterSet()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please omit NSCharacterSet
:
// trim whitespace
message = message.stringByTrimmingCharactersInSet(.whitespaceAndNewlineCharacterSet())
Current coverage is 88.53% (diff: 100%)@@ master #801 diff @@
==========================================
Files 81 81
Lines 2771 2773 +2
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
+ Hits 2453 2455 +2
Misses 318 318
Partials 0 0
|
@@ -15,6 +15,10 @@ | |||
|
|||
##### Bug Fixes | |||
|
|||
* Fixed whitespace being added to TODO messages |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
missing period and two trailing spaces as defined in CONTRIBUTING.md
Would it make sense to remove the "TODOs should be avoided: " part of the message since this seems to be more of a feature now? |
Not sure about that, but PR looks good. Thanks @wbagdon! |
No description provided.