Skip to content

Commit 666d69c

Browse files
committed
ci(travis): run rubocop during the Lint job
* Automated using myii/ssf-formula#60
1 parent 14b8332 commit 666d69c

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.rubocop.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# -*- coding: utf-8 -*-
2+
# vim: ft=yaml
3+
---
4+
# General overrides used across formulas in the org
5+
Metrics/LineLength:
6+
# Increase from default of `80`
7+
# Based on https://github.com/PyCQA/flake8-bugbear#opinionated-warnings (`B950`)
8+
Max: 88
9+
10+
# Any offenses that should be fixed, e.g. collected via. `rubocop --auto-gen-config`

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
- language: node_js
3030
node_js: lts/*
31-
env: 'Lint: salt-lint, yamllint & commitlint'
31+
env: 'Lint: salt-lint, yamllint, rubocop & commitlint'
3232
before_install: skip
3333
script:
3434
# Install and run `salt-lint`
@@ -39,6 +39,9 @@ jobs:
3939
# Need at least `v1.17.0` for the `yaml-files` setting
4040
- pip install --user yamllint>=1.17.0
4141
- yamllint -s .
42+
# Install and run `rubocop`
43+
- gem install rubocop
44+
- rubocop -d
4245
# Install and run `commitlint`
4346
- npm install @commitlint/config-conventional -D
4447
- npm install @commitlint/travis-cli -D

0 commit comments

Comments
 (0)