mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
Add static code analysis configuration files: rubocop, reek, erb-lint
This commit is contained in:
parent
18b479b8b2
commit
1737122c80
4 changed files with 32 additions and 2 deletions
11
.erb-lint.yml
Normal file
11
.erb-lint.yml
Normal file
|
|
@ -0,0 +1,11 @@
|
||||||
|
---
|
||||||
|
EnableDefaultLinters: true
|
||||||
|
linters:
|
||||||
|
ErbSafety:
|
||||||
|
enabled: true
|
||||||
|
better_html_config: .better-html.yml
|
||||||
|
Rubocop:
|
||||||
|
enabled: true
|
||||||
|
rubocop_config:
|
||||||
|
inherit_from:
|
||||||
|
- .rubocop.yml
|
||||||
4
.reek.yml
Normal file
4
.reek.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
---
|
||||||
|
detectors:
|
||||||
|
InstanceVariableAssumption:
|
||||||
|
enabled: false
|
||||||
13
.rubocop.yml
Normal file
13
.rubocop.yml
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
inherit_from: ~/.rubocop.yml
|
||||||
|
|
||||||
|
Lint/ShadowingOuterLocalVariable:
|
||||||
|
Enabled: false
|
||||||
|
|
||||||
|
Metrics/ClassLength:
|
||||||
|
Enabled: false
|
||||||
|
|
||||||
|
Style/Documentation:
|
||||||
|
Enabled: false
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -145,6 +145,7 @@ GEM
|
||||||
thor (>= 0.14, < 2.0)
|
thor (>= 0.14, < 2.0)
|
||||||
jsbundling-rails (1.0.2)
|
jsbundling-rails (1.0.2)
|
||||||
railties (>= 6.0.0)
|
railties (>= 6.0.0)
|
||||||
|
json (2.6.2)
|
||||||
jwt (1.5.6)
|
jwt (1.5.6)
|
||||||
launchy (2.5.0)
|
launchy (2.5.0)
|
||||||
addressable (~> 2.7)
|
addressable (~> 2.7)
|
||||||
|
|
@ -264,7 +265,8 @@ GEM
|
||||||
rspec-mocks (~> 3.10)
|
rspec-mocks (~> 3.10)
|
||||||
rspec-support (~> 3.10)
|
rspec-support (~> 3.10)
|
||||||
rspec-support (3.11.0)
|
rspec-support (3.11.0)
|
||||||
rubocop (1.30.1)
|
rubocop (1.31.2)
|
||||||
|
json (~> 2.3)
|
||||||
parallel (~> 1.10)
|
parallel (~> 1.10)
|
||||||
parser (>= 3.1.0.0)
|
parser (>= 3.1.0.0)
|
||||||
rainbow (>= 2.2.2, < 4.0)
|
rainbow (>= 2.2.2, < 4.0)
|
||||||
|
|
@ -313,7 +315,7 @@ GEM
|
||||||
concurrent-ruby (~> 1.0)
|
concurrent-ruby (~> 1.0)
|
||||||
uglifier (4.2.0)
|
uglifier (4.2.0)
|
||||||
execjs (>= 0.3.0, < 3)
|
execjs (>= 0.3.0, < 3)
|
||||||
unicode-display_width (2.1.0)
|
unicode-display_width (2.2.0)
|
||||||
uniform_notifier (1.16.0)
|
uniform_notifier (1.16.0)
|
||||||
warden (1.2.9)
|
warden (1.2.9)
|
||||||
rack (>= 2.0.9)
|
rack (>= 2.0.9)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue