forked from WikiEducationFoundation/WikiEduDashboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
53 lines (49 loc) · 1.4 KB
/
.rubocop.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
Documentation:
Enabled: false
AllCops:
Exclude:
- 'Gemfile'
- 'Guardfile'
- 'Rakefile'
- 'db/*'
- 'db/**/*'
- 'node_modules/**/*'
- 'config/**/*'
- 'bin/**/*'
- 'vendor/**/*'
- 'app/views/**/**/*.haml'
TargetRubyVersion: 2.3
Style/NumericPredicate:
Exclude:
- 'spec/**/*' # RSpec comparison matchers don't have predicate versions
Metrics/LineLength:
Max: 100
# Disable complexity cops, since we use CodeClimate for that.
# Metrics/MethodLength:
# Enabled: false
# Metrics/AbcSize:
# Enabled: false
# Metrics/ClassLength:
# Enabled: false
# Metrics/CyclomaticComplexity:
# Enabled: false
# Metrics/PerceivedComplexity:
# Enabled: false
Style/SpaceAroundEqualsInParameterDefault:
Enabled: false
Style/ColonMethodCall:
Enabled: false
Style/NumericLiterals:
# We should use underscores when the number is meaningful. But when it's
# an arbitrary number like a user id, underscores are just clutter.
Enabled: false
Style/AsciiComments:
Enabled: false # We need non-ascii characters to document Wikipedia stuff.
Style/ParallelAssignment:
Enabled: false # We generally use this only to initialize empty variables.
Style/RedundantReturn:
Enabled: false # Sometimes a redundant return enhances clarity.
Style/VariableNumber:
Enabled: false # Not very helpful, and conflicts with wp10-related names
Style/AccessorMethodNames:
Enabled: false # Not very helpful