Skip to content

Commit 38f1f42

Browse files
committed
Configure rules for Rubocop
After removing the gem 'scc-codestyle' (outdated version), Rubocop's default configuration caused a lot of warnings/errors when linting the project. This commit adds rules to 'rubocop.yml' so that the current code passes the linting process in the CI. Though I agree some of the rules are important to keep a good style for the project, the idea is just to adjust our CI process for Tumbleweed at the moment.
1 parent 3886a70 commit 38f1f42

File tree

1 file changed

+99
-0
lines changed

1 file changed

+99
-0
lines changed

.rubocop.yml

Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,105 @@ AllCops:
1111
- package/*
1212
- Rakefile
1313

14+
Layout/EmptyLineAfterGuardClause:
15+
Enabled: false
16+
17+
Layout/EmptyLinesAroundMethodBody:
18+
Enabled: false
19+
20+
Layout/EmptyLines:
21+
Enabled: false
22+
23+
Layout/HashAlignment:
24+
Enabled: false
25+
26+
Layout/LineLength:
27+
Enabled: true
28+
Max: 160
29+
30+
Lint/ErbNewArguments:
31+
Enabled: false
32+
33+
Lint/MissingSuper:
34+
Enabled: false
35+
36+
Lint/MixedRegexpCaptureTypes:
37+
Enabled: false
38+
39+
Metrics/AbcSize:
40+
Enabled: true
41+
Max: 80
42+
43+
Metrics/BlockLength:
44+
Enabled: false
45+
46+
Metrics/ClassLength:
47+
Enabled: true
48+
Max: 160
49+
50+
Metrics/MethodLength:
51+
Enabled: true
52+
Max: 50
53+
54+
Metrics/PerceivedComplexity:
55+
Enabled: true
56+
Max: 12
57+
58+
Naming/MethodParameterName:
59+
Enabled: false
60+
61+
Naming/VariableNumber:
62+
Enabled: false
63+
64+
Style/ClassAndModuleChildren:
65+
Enabled: false
66+
67+
Style/ClassEqualityComparison:
68+
Enabled: false
69+
70+
Style/Documentation:
71+
Enabled: false
72+
73+
Style/ExpandPathArguments:
74+
Enabled: false
75+
76+
Style/FormatString:
77+
Enabled: false
78+
79+
Style/FrozenStringLiteralComment:
80+
Enabled: false
81+
82+
Style/HashTransformValues:
83+
Enabled: false
84+
85+
Style/NumericPredicate:
86+
Enabled: false
87+
88+
Style/ParenthesesAroundCondition:
89+
Enabled: false
90+
91+
Style/RedundantBegin:
92+
Enabled: false
93+
94+
Style/RedundantParentheses:
95+
Enabled: false
96+
97+
Style/StringConcatenation:
98+
Enabled: false
99+
100+
Style/TernaryParentheses:
101+
Enabled: false
102+
103+
Style/WordArray:
104+
Enabled: false
105+
106+
RSpec/AnyInstance:
107+
Enabled: false
108+
109+
RSpec/ExampleLength:
110+
Enabled: true
111+
Max: 16
112+
14113
# Impossible to satisfy these rules in specs
15114
RSpec/ExpectInHook:
16115
Enabled: false

0 commit comments

Comments
 (0)