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 rule to check file name of SLS files #209

Merged
merged 2 commits into from
Nov 29, 2020

Conversation

roaldnefs
Copy link
Member

Add new rule to check file name of SLS files, as SLS file with a period
in the name (besides the suffix period) can not be referenced.

This pull request also allows rules to only run for specific file types by
adding valid languages to the rule. File types are determined based
upon the file extension.

Fixes #205

Add new rule to check file name of SLS files, as SLS file with a period
in the name (besides the suffix period) can not be referenced.

This commit also allows rules to only run for specific file types by
adding valid `languages` to the rule. File types are determined based
upon the file extension.

Fixes warpnet#205

Signed-off-by: Roald Nefs <[email protected]>
Signed-off-by: Roald Nefs <[email protected]>
@jbouter
Copy link
Member

jbouter commented Nov 29, 2020

Code has been tested and works

@jbouter jbouter merged commit 1c2aa5c into warpnet:develop Nov 29, 2020
jbouter pushed a commit that referenced this pull request Jan 17, 2021
Version 0.5.0 release. Besides bumping the version this commit also
includes the following changes:

- Separate the ansible-lint license.
- Update changelog to include all changes for v0.5.0.
- Remove duplicate documentation (code of conduct).
- Add already existing documentation to the Sphinx documentation.
- Add additional badges to the README.md.
- Simplify and update the GitHub Workflow to release to PyPi.
- Updated the `version_added` in all new rules.
- Ignore docs directory for linting tests
- Disable markdownlint as it breaks the GitHub workflow
- Add link to dense-analysis/ale vim plugin in README
- Update supported Python version to include newer Python versions.
- Fix some code style issues found by flake 8.
- Add .j2 as Jinja file extension
- Use tox and pre-commit for testing

Changelog: 
Rule 213 to recommend using cmd.run together with onchanges (#207).
Rule 214 to check SLS file with a period in the name (besides the suffix period) as they can not be referenced by Salt (#209).
Rules 901-915 to check for deprecated states and state options (#214).
This CHANGELOG.md file to be able to list all notable changes for each version of salt-lint (#223).

Signed-off-by: Roald Nefs <[email protected]>

Co-authored-by: Benjamin <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants