-
Notifications
You must be signed in to change notification settings - Fork 8
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
[BE2] Work on more rules for linter #1871
Conversation
…and created Util file with util functions
…rk-be2-thibault-linter_master
…) in EmptyInterpolatedString
Pull reviewers statsStats of the last 30 days for popstellar:
|
…nverted nested methods to private class methods)
…nverted nested methods to private class methods)
… into work-be2-thibault-linter_master # Conflicts: # be2-scala/linter/input/src/main/scala/fix/LonelySealedTrait.scala
Corrected functionality in findDefinition (could previously only find literal definitions). Adapted other rules (IncorrectNumberOfArgsToFormat, IllegalFormatString) to modification
Adapted IllegalFormatString and NanComparison to modification in findDefinitions in Util
Improved Util with a matchType function and adapted matching
Quality Gate passed for 'PoP - Fe1-Web'Issues Measures |
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.
Overall good code. Couple of comments. If I could suggest an improvement it would be to add more documentation/comment in your code. Lint code is not trivial for persons for the outside and it can be hard to understand what is being done. In particular I think having a small comment on case
saying what it is matching would improve greatly readability.
be2-scala/linter/input/src/main/scala/fix/StripMarginOnRegex.scala
Outdated
Show resolved
Hide resolved
Quality Gate passed for 'PoP - PoPCHA-Web-Client'Issues Measures |
Quality Gate passed for 'PoP - Be2-Scala'Issues Measures |
Quality Gate passed for 'PoP - Be1-Go'Issues Measures |
Quality Gate passed for 'PoP - Fe2-Android'Issues Measures |
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.
Really a non-expert eye here, your code looks good to me, the tests make sense so I will trust that, good job !
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.
Most important comments addressed. LGTM
Newly implemented rules:
Improved rules
Added Util file for utility methods (finding type, finding declarations...)
Task list: https://docs.google.com/spreadsheets/d/1LjsvOvH56TTYzyhhRpGPTqyeaSzew-pMDEPzRPVO3tE/edit?usp=sharing