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 config option to ingore rules per file #67

Merged
merged 6 commits into from
Oct 21, 2019
Merged

Conversation

roaldnefs
Copy link
Member

Add configuration option to ignore rules per file, e.g.:

---
rules:
  formatting:
    ignore: |
      first.sls
      second.sls
  210:
    ignore: |
      state/*.sls
      *.jinja

This PR also moves configuration parsing from cli.py to config.py. This makes cli.py less complex and allows the program to only pass the config object instead of having to pass the updated options.

Fixes #48.

roaldnefs and others added 4 commits October 18, 2019 09:18
Move configuration parsing from `cli.py` to `config.py`. This makes
`cli.py` less complex and allows the program to only pass the config
object instead of having to pass the updated options.

Signed-off-by: Roald Nefs <info@roaldnefs.com>
Pass the configuration to the rules, so the rules can use information
from the configuration.

Signed-off-by: Roald Nefs <info@roaldnefs.com>
Fix configuration in tests. The runner requires a SaltLintConfig.

Signed-off-by: Roald Nefs <info@roaldnefs.com>
Add configuration option to ignore rules per file, e.g.:

```yaml
---
rules:
  formatting:
    ignore: |
      first.sls
      second.sls
  210:
    ignore: |
      state/*.sls
      *.jinja
```

Fixes #48.

Signed-off-by: Roald Nefs <roald@warpnet.nl>
@roaldnefs roaldnefs added the Type: Enhancement New feature or request label Oct 20, 2019
@roaldnefs roaldnefs changed the base branch from master to develop October 20, 2019 12:47
Signed-off-by: Roald Nefs <roald@warpnet.nl>
Signed-off-by: Roald Nefs <roald@warpnet.nl>
@jbouter jbouter merged commit 10554fe into develop Oct 21, 2019
@jbouter jbouter deleted the update-config branch October 21, 2019 08:06
@roaldnefs roaldnefs mentioned this pull request Oct 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants