-
Notifications
You must be signed in to change notification settings - Fork 170
Add prefer_logical_operator rule #545
base: master
Are you sure you want to change the base?
Conversation
lintToken: (token, tokenApi) -> | ||
# console.log "lintToken :: ", token | ||
config = tokenApi.config[@rule.name] | ||
level = config.level |
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.
I don't think you need to do this, the linter already handles the error level if there is an error thrown.
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.
ahh it looks like you took this from prefer_english_operator
yeah this probably isn't needed.
Looks good, if you could delete line 16-18 in the rules, and just have it return Sorry for the delay. |
Thanks for taking a look! Added those changes in. |
@clutchski bump 🔫 |
hey folks, i don't really work on this project anymore. feel free to reach
out to shaun or fork the project.
https://github.com/clutchski/coffeelint#team
…On Thu, Jan 26, 2017 at 2:43 AM, Ivan Verevkin ***@***.***> wrote:
@clutchski <https://github.com/clutchski> bump 🔫
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#545 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AAFpQpNNTdruMr7AkQfeDZ0OAJPWNSB9ks5rWE6VgaJpZM4HLZJF>
.
|
Further development on coffeelint will be on coffeelint/coffeelint and will be released as @coffeelint/cli. This PR will be tracked at coffeelint/coffeelint#13 |
This rule is essentially the inverse of
prefer_english_operator
.