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

Fixed initializer returns doc for implicitly unwrapped optional inits. #804

Closed
wants to merge 2 commits into from

Conversation

mohpor
Copy link
Contributor

@mohpor mohpor commented Sep 2, 2016

No description provided.

@codecov-io
Copy link

codecov-io commented Sep 2, 2016

Current coverage is 88.53% (diff: 100%)

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

@@             master       #804   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...8045142

@@ -66,7 +66,7 @@ func matchOutsideBraces(declaration: String) -> NSString? {
}

func declarationIsInitializer(declaration: String) -> Bool {
return !regex("^((.+)?\\s+)?init\\?*\\(.*\\)")
return !regex("^((.+)?\\s+)?init\\?*\\!*\\(.*\\)")
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think \\?*\\!* should be [\\?\\!]{0,1}.

@jpsim
Copy link
Collaborator

jpsim commented Sep 2, 2016

Could you please add a bug fix entry to the changelog? Thanks!

@@ -97,7 +99,7 @@ This release has seen a phenomenal uptake in community contributions!
[bootstraponline](https://github.com/bootstraponline)
[#689](https://github.com/realm/SwiftLint/issues/689)

* Add rule to check for private unit tests (private unit tests don't get run
* Add rule to check for private unit tests (private unit tests don't get run
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This trailing white space is required for the new lines.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't check other PR's trailing white spaces. I'll double check.

@marcelofabri
Copy link
Collaborator

Closing this PR since we removed this rule. Thanks for contributing!

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.

None yet

5 participants