mirror of
https://github.com/saltstack-formulas/template-formula.git
synced 2025-04-16 09:40:24 +00:00
ci(travis): run rubocop
during the Lint
job
* Automated using https://github.com/myii/ssf-formula/pull/60
This commit is contained in:
parent
2df46466f6
commit
8d8c766660
2 changed files with 14 additions and 1 deletions
10
.rubocop.yml
Normal file
10
.rubocop.yml
Normal file
|
@ -0,0 +1,10 @@
|
||||||
|
# -*- 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
|
||||||
|
|
||||||
|
# Any offenses that should be fixed, e.g. collected via. `rubocop --auto-gen-config`
|
|
@ -27,7 +27,7 @@ jobs:
|
||||||
# Run all of the linters in a single job
|
# Run all of the linters in a single job
|
||||||
- language: node_js
|
- language: node_js
|
||||||
node_js: lts/*
|
node_js: lts/*
|
||||||
env: 'Lint: salt-lint, yamllint & commitlint'
|
env: 'Lint: salt-lint, yamllint, rubocop & commitlint'
|
||||||
before_install: skip
|
before_install: skip
|
||||||
script:
|
script:
|
||||||
# Install and run `salt-lint`
|
# Install and run `salt-lint`
|
||||||
|
@ -38,6 +38,9 @@ jobs:
|
||||||
# Need at least `v1.17.0` for the `yaml-files` setting
|
# Need at least `v1.17.0` for the `yaml-files` setting
|
||||||
- pip install --user yamllint>=1.17.0
|
- pip install --user yamllint>=1.17.0
|
||||||
- yamllint -s .
|
- yamllint -s .
|
||||||
|
# Install and run `rubocop`
|
||||||
|
- gem install rubocop
|
||||||
|
- rubocop -d
|
||||||
# Install and run `commitlint`
|
# Install and run `commitlint`
|
||||||
- npm install @commitlint/config-conventional -D
|
- npm install @commitlint/config-conventional -D
|
||||||
- npm install @commitlint/travis-cli -D
|
- npm install @commitlint/travis-cli -D
|
||||||
|
|
Loading…
Add table
Reference in a new issue