Skip to content

Commit 1631df7

Browse files
committed
Add initial Rubocop config
While I'm a big fan of consistent code formatting, and avoiding debates with team mates about how to lay code out, I'm not generally a big fan of many of Rubocop's defaults. I've started out by disabling a large number of "cops". Rubocop still prints a lot of warnings out, but I've silenced the vast quantity of its complaints that I didn't feel were based on good ideas/nice style. Some of them may get re-enabled in future, but with configuration that tweaks them to suit the Ruby style I'm used to. And more will definitely be disabled.
1 parent cfd1555 commit 1631df7

File tree

1 file changed

+108
-0
lines changed

1 file changed

+108
-0
lines changed

.rubocop.yml

Lines changed: 108 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,108 @@
1+
AllCops:
2+
Exclude:
3+
- templates/plugins/Rakefile
4+
- templates/plugins/plugin.gemspec
5+
- test/fixtures/nesta-plugin-test/nesta-plugin-test.gemspec
6+
TargetRubyVersion: 3.0
7+
8+
Layout/EmptyLineAfterGuardClause:
9+
Enabled: false
10+
11+
Layout/FirstHashElementIndentation:
12+
Enabled: false
13+
14+
Layout/HeredocIndentation:
15+
Enabled: false
16+
17+
Layout/SpaceAfterNot:
18+
Enabled: false
19+
20+
Lint/AmbiguousRegexpLiteral:
21+
Enabled: false
22+
23+
Lint/SuppressedException:
24+
Enabled: false
25+
26+
Lint/UnusedMethodArgument:
27+
Enabled: false
28+
29+
Metrics/BlockLength:
30+
Enabled: false
31+
32+
Metrics/MethodLength:
33+
Enabled: false
34+
35+
Naming/FileName:
36+
Enabled: false
37+
38+
Naming/HeredocDelimiterNaming:
39+
Enabled: false
40+
41+
Style/BarePercentLiterals:
42+
Enabled: false
43+
44+
Style/ClassAndModuleChildren:
45+
Enabled: false
46+
47+
Style/Documentation:
48+
Enabled: false
49+
50+
Style/FrozenStringLiteralComment:
51+
Enabled: false
52+
53+
Style/GuardClause:
54+
Enabled: false
55+
56+
Style/HashSyntax:
57+
EnforcedShorthandSyntax: never
58+
59+
Style/IfUnlessModifier:
60+
Enabled: false
61+
62+
Style/MultilineIfModifier:
63+
Enabled: false
64+
65+
Style/MutableConstant:
66+
Enabled: false
67+
68+
Style/NegatedIf:
69+
Enabled: false
70+
71+
Style/Next:
72+
Enabled: false
73+
74+
Style/ParallelAssignment:
75+
Enabled: false
76+
77+
Style/PercentLiteralDelimiters:
78+
Enabled: false
79+
80+
Style/RedundantParentheses:
81+
Enabled: false
82+
83+
Style/RedundantPercentQ:
84+
Enabled: false
85+
86+
Style/RegexpLiteral:
87+
Enabled: false
88+
89+
Style/SignalException:
90+
Enabled: false
91+
92+
Style/StringConcatenation:
93+
Enabled: false
94+
95+
Style/SymbolArray:
96+
Enabled: false
97+
98+
Style/SymbolProc:
99+
Enabled: false
100+
101+
Style/TernaryParentheses:
102+
Enabled: false
103+
104+
Style/TrailingCommaInHashLiteral:
105+
Enabled: false
106+
107+
Style/WordArray:
108+
Enabled: false

0 commit comments

Comments
 (0)