-
-
Notifications
You must be signed in to change notification settings - Fork 358
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
Code critique improvement: ReMultiplePeriodsTerminatingStatementRule does not detect multiple periods with source code comments in between #15955
Comments
Nice catch. |
I made a PR to fix this issue: #15956. @Ducasse Indeed. This is part of that effort ;-). I am moving all general rules to https://github.com/SeasideSt/PharoWithStyle/ and trying to add more.
|
Excellent!!!!! |
I will use the Pharo With Style for all the students :) |
…for issue pharo-project/pharo#15955 is merged into Pharo)
Bug description
The code critique rule
ReMultiplePeriodsTerminatingStatementRule
does not detect multiple periods when a source code comment is put in between the dots. Such a case is still considered an empty statement and was detected using the Grease Slime ruleGREmptyStatementsRule
. This rule is important for portable code to dialects where the compiler does not accept empty statements.I am moving out all duplicate rules from Grease Slime in Pharo in an improvement effort (see SeasideSt/Grease#167). To remove the
GREmptyStatementsRule
, it is important that this case is detected byReMultiplePeriodsTerminatingStatementRule
To Reproduce
Enter the following code in an editor:
Expected behavior
The code critique for multiple periods should be shown.
Version information:
The text was updated successfully, but these errors were encountered: