-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
88 lines (86 loc) · 2.23 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
AllCops:
TargetRubyVersion: 3.0.0
Exclude:
- 'bin/**/*'
- 'db/**/*'
- 'config/**/*'
- 'node_modules/**'
- 'script/**/*'
- 'support/**/*'
- 'tmp/**/*'
# Disable Missing magic comment # frozen_string_literal: true
Style/FrozenStringLiteralComment:
Enabled: false
# forces single assignment out of if/case statements
Style/ConditionalAssignment:
Enabled: false
# forces correct use of single vs double quotes
Style/StringLiterals:
Enabled: false
# forces documentation of classes and modules
Style/Documentation:
Enabled: false
# forces specific regex syntax
Style/RegexpLiteral:
Enabled: false
# forces if to be potentialy replaced with guard clause return if
Style/GuardClause:
Enabled: false
# forces %w notation for array of words
Style/WordArray:
Enabled: false
# forces %w[] instead of %w()
Style/PercentLiteralDelimiters:
Enabled: false
# forces maximum on size of methods
Metrics/AbcSize:
Enabled: false
# forces max complexity of methods
Metrics/CyclomaticComplexity:
Enabled: false
# forces correct usage of fail vs raise
Style/SignalException:
Enabled: false
# forces %i[] for an array of symbols
Style/SymbolArray:
Enabled: false
# forces weird looking syntax on hashes as last argument of method
Layout/FirstHashElementIndentation:
Enabled: false
# forces weird looking syntax on closing of parenthesis of multi-line methods
Layout/ClosingParenthesisIndentation:
Enabled: false
# increases the line length to 160 chars
Metrics/LineLength:
Max: 160
# increase the method length to 20 lines
Metrics/MethodLength:
Max: 30
Metrics/ClassLength:
Max: 200
Metrics/PerceivedComplexity:
Max: 10
# Allow extra spaces in arrays
Layout/SpaceInsideArrayLiteralBrackets:
Enabled: false
# ActiveAdmin and rake tasks need big blocks
Metrics/BlockLength:
Exclude:
- 'app/admin/**/*'
- 'lib/tasks/**/*'
- '**/*_spec.rb'
- 'app/graphql/**/*'
# Allow emojis in Code comments
Style/AsciiComments:
Enabled: false
# Allow $redis
Style/GlobalVars:
Enabled: false
# Allow compact syntax for style definitions
Style/ClassAndModuleChildren:
Enabled: false
# Aligning parameters does not make sense for Strong Params
Layout/ParameterAlignment:
Enabled: false
Style/NumericLiterals:
Enabled: false