Skip to content
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 white & black lists for var-naming #61

Merged
merged 1 commit into from
Sep 17, 2018
Merged

Conversation

mgechev
Copy link
Owner

@mgechev mgechev commented Sep 15, 2018

This PR introduces a whitelist & blacklist of initialisms for the
var-naming rule.

Now the rule can be configured with:

[rule.var-naming]
  arguments = [["ID"], ["VM", "BAR"]]

This way, the linter will ignore customId but will throw on customVm or customBar.

Fix #41

This PR introduces a white & black lists of initialisms for the
`var-naming` rule.

Now the rule can be configured with:

```toml
[rule.var-naming]
  arguments = [["ID"], ["VM", "BAR"]]
```

This way, the linter will ignore `customId` but will throw on `customVm` or `customBar`.

Fix #41
@chavacava
Copy link
Collaborator

Hi @mgechev, it looks good to me. 👍

@chavacava chavacava merged commit 85f7168 into master Sep 17, 2018
@mgechev mgechev deleted the minko/custom-inits branch March 1, 2019 20:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants