-
Notifications
You must be signed in to change notification settings - Fork 889
Add OPTION_ALLOW_SNAKE_CASE to variable name options #2383
Conversation
Thanks for your interest in palantir/tslint, @AJamesPhillips! Before we can accept your pull request, you need to sign our contributor license agreement - just visit https://cla.palantir.com/ and follow the instructions. Once you sign, I'll automatically update this pull request. |
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. I just had one comment, but that's no blocker.
Unfortunately this conflicts with the not yet landed PR #2355. Applying your changes on top of the other PR should not be diffucult, though.
src/rules/variableNameRule.ts
Outdated
@@ -74,6 +76,16 @@ export class Rule extends Lint.Rules.AbstractRule { | |||
class VariableNameWalker extends Lint.RuleWalker { | |||
private shouldBanKeywords: boolean; | |||
private shouldCheckFormat: boolean; | |||
private get formatFailure(): string { |
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.
you don't need a getter for this, just do it once in the constructor
f267bab
to
6767f45
Compare
Thanks for the speedy response @ajafff . I made the change to the getter for |
Your changes still LGTM after rebase.
I think that's ok for now. It would be nice if you can interactive rebase / cherry-pick on master once #2355 landed. |
Sure thing, will do.
|
sorry for the delay; I have now merged #2355 |
6767f45
to
742b6ab
Compare
github did not send a notification email for the last force push ping @adidahiya this is ready to merge unless you have any objections |
thanks @AJamesPhillips! |
PR checklist
metadata
on the Rule itself).Overview of change:
Add OPTION_ALLOW_SNAKE_CASE to variable name options
CHANGELOG.md entry:
Please let me know if there's anything else you need / would like to change. Many thanks.