Add static code analysis configuration files: rubocop, reek, erb-lint

pull/1/head
rebuilt 3 years ago
parent 18b479b8b2
commit 1737122c80

@ -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

@ -0,0 +1,4 @@
---
detectors:
InstanceVariableAssumption:
enabled: false

@ -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)
jsbundling-rails (1.0.2)
railties (>= 6.0.0)
json (2.6.2)
jwt (1.5.6)
launchy (2.5.0)
addressable (~> 2.7)
@ -264,7 +265,8 @@ GEM
rspec-mocks (~> 3.10)
rspec-support (~> 3.10)
rspec-support (3.11.0)
rubocop (1.30.1)
rubocop (1.31.2)
json (~> 2.3)
parallel (~> 1.10)
parser (>= 3.1.0.0)
rainbow (>= 2.2.2, < 4.0)
@ -313,7 +315,7 @@ GEM
concurrent-ruby (~> 1.0)
uglifier (4.2.0)
execjs (>= 0.3.0, < 3)
unicode-display_width (2.1.0)
unicode-display_width (2.2.0)
uniform_notifier (1.16.0)
warden (1.2.9)
rack (>= 2.0.9)

Loading…
Cancel
Save