-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #60 from myii/feat/merge-travis-matrix-and-add-sal…
…t-lint-and-rubocop feat: merge travis matrix, add `salt-lint` & `rubocop` to `lint` job
- Loading branch information
Showing
21 changed files
with
413 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# -*- coding: utf-8 -*- | ||
# vim: ft=yaml | ||
--- | ||
# General overrides used across formulas in the org | ||
Metrics/LineLength: | ||
# Increase from default of `80` | ||
# Based on https://github.com/PyCQA/flake8-bugbear#opinionated-warnings (`B950`) | ||
Max: 88 | ||
|
||
# General settings across all cops in this formula | ||
AllCops: | ||
# Files to ignore completely | ||
Exclude: | ||
- ssf/files/**/* | ||
|
||
# Any offenses that should be fixed, e.g. collected via. `rubocop --auto-gen-config` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# -*- coding: utf-8 -*- | ||
# vim: ft=yaml | ||
--- | ||
exclude_paths: [] | ||
skip_list: | ||
# Using `salt-lint` for linting other files as well, such as Jinja macros/templates | ||
- 205 # Use ".sls" as a Salt State file extension | ||
# Skipping `207` and `208` because `210` is sufficient, at least for the time-being | ||
# I.e. Allows 3-digit unquoted codes to still be used, such as `644` and `755` | ||
- 207 # File modes should always be encapsulated in quotation marks | ||
- 208 # File modes should always contain a leading zero | ||
tags: [] | ||
verbosity: 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
source "https://rubygems.org" | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
|
||
gem 'kitchen-docker', '>= 2.9' | ||
gem 'kitchen-salt', '>= 0.6.0' | ||
gem 'kitchen-inspec', '>= 1.1' | ||
|
||
gem 'kitchen-salt', '>= 0.6.0' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
# -*- coding: utf-8 -*- | ||
# vim: ft=yaml | ||
--- | ||
# General overrides used across formulas in the org | ||
{%- set MLL = 'Metrics/LineLength' %} | ||
{{ MLL }}: | ||
{%- set rbcp_MLL = rubocop.Cops.get(MLL) %} | ||
{%- if rbcp_MLL.Max == rbcp_MLL.Bugbear %} | ||
# Increase from default of `{{ rbcp_MLL.Default }}` | ||
# Based on https://github.com/PyCQA/flake8-bugbear#opinionated-warnings (`B950`) | ||
{%- endif %} | ||
Max: {{ rbcp_MLL.Max }} | ||
|
||
{%- if rubocop.AllCops %} | ||
|
||
# General settings across all cops in this formula | ||
AllCops: | ||
{#- This is purposefully simplistic for the time being, | ||
until (if ever) more advanced configuration is necessary #} | ||
{%- if rubocop.AllCops.Exclude %} | ||
# Files to ignore completely | ||
Exclude: | ||
{%- for path in rubocop.AllCops.Exclude %} | ||
- {{ path }} | ||
{%- endfor %} | ||
{%- endif %} | ||
{%- endif %} | ||
|
||
# Any offenses that should be fixed, e.g. collected via. `rubocop --auto-gen-config` | ||
{%- for cop, config in rubocop.Cops.items() if cop not in [MLL] %} | ||
{{ cop }}: | ||
{#- This is purposefully simplistic for the time being, | ||
until (if ever) more advanced configuration is necessary #} | ||
{%- for k, v in config.items() %} | ||
{{ k }}: {{ v }} | ||
{%- endfor %} | ||
{%- endfor %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# -*- coding: utf-8 -*- | ||
# vim: ft=yaml | ||
--- | ||
exclude_paths: [] | ||
skip_list: | ||
# Using `salt-lint` for linting other files as well, such as Jinja macros/templates | ||
- 205 # Use ".sls" as a Salt State file extension | ||
# Skipping `207` and `208` because `210` is sufficient, at least for the time-being | ||
# I.e. Allows 3-digit unquoted codes to still be used, such as `644` and `755` | ||
- 207 # File modes should always be encapsulated in quotation marks | ||
- 208 # File modes should always contain a leading zero | ||
tags: [] | ||
verbosity: 1 |
Oops, something went wrong.