Skip to content
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

Merged
merged 5 commits into from
Sep 2, 2016
Merged

Remove whitespace from TODO message #801

merged 5 commits into from
Sep 2, 2016

Conversation

wbagdon
Copy link
Contributor

@wbagdon wbagdon commented Sep 1, 2016

No description provided.

@jpsim
Copy link
Collaborator

jpsim commented Sep 1, 2016

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())
Copy link
Collaborator

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())

@codecov-io
Copy link

codecov-io commented Sep 1, 2016

Current coverage is 88.53% (diff: 100%)

Merging #801 into master will increase coverage by <.01%

@@             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          

Powered by Codecov. Last update 38a7cc5...fddc848

@@ -15,6 +15,10 @@

##### Bug Fixes

* Fixed whitespace being added to TODO messages
Copy link
Collaborator

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

@wbagdon
Copy link
Contributor Author

wbagdon commented Sep 2, 2016

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?

@jpsim
Copy link
Collaborator

jpsim commented Sep 2, 2016

Not sure about that, but PR looks good. Thanks @wbagdon!

@jpsim jpsim merged commit ed73db3 into realm:master Sep 2, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants