Skip to content

Commit eddc13e

Browse files
authored
Merge pull request #310 from myii/feat/update-codeowners-and-yamllint-for-kitchen-vagrant
feat(kitchen-vagrant): update `CODEOWNERS` and `.yamllint` accordingly
2 parents a89e1d9 + 91de65d commit eddc13e

File tree

8 files changed

+31
-14
lines changed

8 files changed

+31
-14
lines changed

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ celerybeat-schedule
9191
venv/
9292
ENV/
9393

94+
# visual studio
95+
.vs/
96+
9497
# Spyder project settings
9598
.spyderproject
9699
.spyproject
@@ -120,3 +123,11 @@ docs/*.md
120123
Dockerfile.*_*
121124
ignore/
122125
tmp/
126+
127+
# `salt-formula` -- Vagrant Specific files
128+
.vagrant
129+
top.sls
130+
131+
# `suricata-formula` -- Platform binaries
132+
*.rpm
133+
*.deb

.gitlab-ci.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,9 @@
2525
stages:
2626
- *stage_lint
2727
- *stage_release
28-
variables:
29-
DOCKER_DRIVER: 'overlay2'
3028

3129
###############################################################################
32-
# `lint` stage: `commitlint` & `pre-commit`
30+
# `lint` stage: `commitlint`, `pre-commit` & `rubocop` (latest, failure allowed)
3331
###############################################################################
3432
commitlint:
3533
stage: *stage_lint

.pre-commit-config.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,14 +25,13 @@ repos:
2525
args: [--debug]
2626
always_run: true
2727
pass_filenames: false
28-
- repo: https://github.com/jumanjihouse/pre-commit-hooks
29-
rev: 2.1.3
28+
- repo: https://github.com/shellcheck-py/shellcheck-py
29+
rev: v0.7.1.1
3030
hooks:
3131
- id: shellcheck
3232
name: Check shell scripts with shellcheck
3333
files: ^.*\.(sh|bash|ksh)$
3434
types: []
35-
args: []
3635
- repo: https://github.com/adrienverge/yamllint
3736
rev: v1.23.0
3837
hooks:

.rubocop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ Metrics/BlockLength:
1212
- describe
1313
# Increase from default of `25`
1414
Max: 30
15+
Security/YAMLLoad:
16+
Exclude:
17+
- test/integration/**/_mapdata.rb
1518

1619
# General settings across all cops in this formula
1720
AllCops:

.yamllint

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,16 @@ extends: 'default'
1010
# 3. All YAML files under directory `node_modules/`, introduced during the Travis run
1111
# 4. Any SLS files under directory `test/`, which are actually state files
1212
# 5. Any YAML files under directory `.kitchen/`, introduced during local testing
13-
# 6. All Jinja templates under `ssf/files/` (result in `yamllint` syntax errors)
13+
# 6. `kitchen.vagrant.yml`, which contains Embedded Ruby (ERB) template syntax
14+
# 7. All Jinja templates under `ssf/files/` (result in `yamllint` syntax errors)
1415
# Not disabling via. `*.yml` since we may end up with non-Jinja YAML files here
1516
ignore: |
1617
.cache/
1718
.git/
1819
node_modules/
1920
test/**/states/**/*.sls
2021
.kitchen/
22+
kitchen.vagrant.yml
2123
ssf/files/default/.cirrus.yml
2224
ssf/files/default/.gitlab-ci.yml
2325
ssf/files/default/.pre-commit-config.yaml
@@ -27,10 +29,8 @@ ignore: |
2729
ssf/files/default/.yamllint
2830
ssf/files/default/inspec/inspec.yml
2931
ssf/files/default/kitchen.yml
30-
ssf/files/default/kitchen.vagrant.yml
3132
ssf/files/default/kitchen.windows.yml
3233
ssf/files/default/.github/workflows/kitchen.yml
33-
ssf/files/default/.github/workflows/kitchen.vagrant.yml
3434
ssf/files/default/.github/workflows/kitchen.windows.yml
3535
ssf/files/tofs_arvados-formula/.travis.yml
3636
ssf/files/tofs_ssf-formula/.yamllint

ssf/defaults.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ ssf_node_anchors:
4646
- '/Gemfile': '@saltstack-formulas/ssf'
4747
- '/Gemfile.lock': '@saltstack-formulas/ssf'
4848
- '/kitchen.yml': '@saltstack-formulas/ssf'
49+
- '/kitchen.vagrant.yml': '@saltstack-formulas/ssf'
50+
- '/kitchen.windows.yml': '@saltstack-formulas/ssf'
4951
- '/pre-commit_semantic-release.sh': '@saltstack-formulas/ssf'
5052
- '/release-rules.js': '@saltstack-formulas/ssf'
5153
- '/release.config.js': '@saltstack-formulas/ssf'
@@ -62,8 +64,8 @@ ssf_node_anchors:
6264
# An alternative method could be to use:
6365
# `git describe --abbrev=0 --tags`
6466
# yamllint disable rule:line-length rule:quoted-strings
65-
title: "ci: enable Vagrant-based testing using GitHub Actions"
66-
body: '* Semi-automated using https://github.com/myii/ssf-formula/pull/309'
67+
title: "chore: update '`'CODEOWNERS'`' & '`'.yamllint'`' re: '`'kitchen-vagrant'`' [skip ci]"
68+
body: '* Automated using https://github.com/myii/ssf-formula/pull/310'
6769
# yamllint enable rule:line-length rule:quoted-strings
6870
github:
6971
owner: 'saltstack-formulas'
@@ -233,6 +235,7 @@ ssf_node_anchors:
233235
additional_ssf:
234236
- 'test/**/states/**/*.sls'
235237
- '.kitchen/'
238+
- 'kitchen.vagrant.yml'
236239
additional: []
237240
yaml-files:
238241
default:

ssf/files/default/.yamllint

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@ extends: '{{ yamllint.extends }}'
2020
# 3. All YAML files under directory `node_modules/`, introduced during the Travis run
2121
# 4. Any SLS files under directory `test/`, which are actually state files
2222
# 5. Any YAML files under directory `.kitchen/`, introduced during local testing
23+
# 6. `kitchen.vagrant.yml`, which contains Embedded Ruby (ERB) template syntax
2324
{%- if semrel_formula == 'ssf' %}
24-
# 6. All Jinja templates under `ssf/files/` (result in `yamllint` syntax errors)
25+
# 7. All Jinja templates under `ssf/files/` (result in `yamllint` syntax errors)
2526
# Not disabling via. `*.yml` since we may end up with non-Jinja YAML files here
2627
{%- elif semrel_formula == 'mysql' %}
27-
# 6. Any YAML files using Jinja (result in `yamllint` syntax errors)
28+
# 7. Any YAML files using Jinja (result in `yamllint` syntax errors)
2829
{%- elif semrel_formula in ['postgres', 'salt'] %}
29-
# 6. All YAML files heavily reliant on Jinja; these can be tackled in a subsequent PR
30+
# 7. All YAML files heavily reliant on Jinja; these can be tackled in a subsequent PR
3031
{%- endif %}
3132
{%- set yl_ignores = {'ignore':
3233
yamllint.ignore.default +

ssf/formulas.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4444,7 +4444,9 @@ ssf:
44444444
- ssf/files/default/.yamllint
44454445
- ssf/files/default/inspec/inspec.yml
44464446
- ssf/files/default/kitchen.yml
4447+
- ssf/files/default/kitchen.windows.yml
44474448
- ssf/files/default/.github/workflows/kitchen.yml
4449+
- ssf/files/default/.github/workflows/kitchen.windows.yml
44484450
- ssf/files/tofs_arvados-formula/.travis.yml
44494451
- ssf/files/tofs_ssf-formula/.yamllint
44504452
rules:

0 commit comments

Comments
 (0)