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

Fix indentation check for classes where invocation is mistaken for a parameter list #194

Merged

Conversation

dguo-coursera
Copy link
Contributor

Currently, the regex considers a class to start a parameter list if it contains "class", "object", or "trait" and is followed by a left-paren. However, this is incorrect in the example:
object A extends B( a, b, c)
as it is not a parameter list, but constructor/method invocation.

@codecov-io
Copy link

Current coverage is 87.14%

Merging #194 into master will not affect coverage as of 739602d

@@            master    #194   diff @@
======================================
  Files           56      56       
  Stmts         1252    1252       
  Branches       162     162       
  Methods          0       0       
======================================
  Hit           1091    1091       
  Partial          0       0       
  Missed         161     161       

Review entire Coverage Diff as of 739602d

Powered by Codecov. Updated on successful CI builds.

@matthewfarwell matthewfarwell merged commit 917a06e into scalastyle:master Apr 10, 2016
@matthewfarwell
Copy link
Member

Cool. Thanks!

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

3 participants