Skip to content

Commit f45df13

Browse files
committed
Rubocomp commands and configuration format
1 parent 73c8c68 commit f45df13

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

ruby/rubocop.rb

+28
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# Commands
2+
3+
# run
4+
bundle exec rubocop
5+
6+
# run with automatically fixing issues
7+
bundle exec rubocop --safe-auto-correct
8+
9+
# same but for cowboys!
10+
bundle exec rubocop -a
11+
12+
# generate a 'todo' config file to exclude all current isssues
13+
rubocop --auto-gen-config
14+
15+
16+
# Config options
17+
18+
# Some rules are configurable
19+
Layout/LineLength:
20+
Max: 90
21+
22+
# Some rules don't make sense
23+
Bundler/OrderedGems:
24+
Enabled: false
25+
26+
# Disable everything and to then start slowly whitelisting rules
27+
AllCops:
28+
DisabledByDefault: true

0 commit comments

Comments
 (0)