-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Add ifshort linter #1587
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
Add ifshort linter #1587
Conversation
Hey, thank you for opening your first Pull Request ! |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
Hello, have you thought about using tag/version? There are several advantages:
|
@ldez Thank you for your suggestion. I updated my PR. |
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.
LGTM
Hey, @esimonov — we just merged your PR to
By joining the team, you’ll be able to label issues, review pull requests, and merge approved pull requests. Thanks again! |
ifshort
is a linter for checking that the short syntax forif
-statements is used whenever possible. For example, it will tell that the variablesok
anderr
are unnecessarily defined outside the scope of theif
-statements - the only places where they are referred to:At the same time, it won't complain about the variables that actually require to be present in a wider scope.
https://github.com/esimonov/ifshort