-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.rubocop.yml
More file actions
80 lines (79 loc) · 1.91 KB
/
Copy path.rubocop.yml
File metadata and controls
80 lines (79 loc) · 1.91 KB
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
require:
- rubocop-rails
- ./lib/rubocop/init_autoloader
AllCops:
TargetRubyVersion: 3.3.0
Exclude:
- "db/**/*"
- "config/**/*"
- "bin/**/*"
###################
# Custom Cops #
###################
Custom/PrivateMethodStyle:
Enabled: true
AutoCorrect: true
###################
# End Custom Cops #
###################
Layout/ArgumentAlignment:
EnforcedStyle: with_fixed_indentation
Layout/IndentationWidth:
Enabled: true
Width: 2
Layout/DotPosition:
EnforcedStyle: leading
Layout/EndAlignment:
EnforcedStyleAlignWith: variable
Layout/MultilineAssignmentLayout:
EnforcedStyle: same_line
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Style/MethodCallWithArgsParentheses:
EnforcedStyle: require_parentheses
Layout/SpaceInsideBlockBraces:
EnforcedStyle: space
Lint/UnusedMethodArgument:
AutoCorrect: false
Metrics/AbcSize:
CountRepeatedAttributes: false
Max: 20
Exclude:
- "app/models/application_record.rb"
Metrics/BlockLength:
Exclude:
- "spec/**/*.rb"
- "lib/rubocop/cop/custom/*.rb"
Metrics/ClassLength:
Enabled: false
Metrics/CyclomaticComplexity:
Exclude:
- "lib/rubocop/cop/custom/*.rb"
Metrics/MethodLength:
Max: 20
Exclude:
- "lib/rubocop/cop/custom/*.rb"
- "app/models/application_record.rb"
- "app/client/helpers.rb"
Metrics/PerceivedComplexity:
Exclude:
- "lib/rubocop/cop/custom/*.rb"
Naming/VariableNumber:
EnforcedStyle: snake_case
Rails/InverseOf:
Enabled: false
Rails/UniqueValidationWithoutIndex:
Description: "We will enforce this via PR review. This gives false positives at the moment."
Details: "https://github.com/rubocop/rubocop-rails/issues/221"
Enabled: true
Severity: warning
Style/AccessModifierDeclarations:
EnforcedStyle: inline
Style/Documentation:
Enabled: false
Style/Lambda:
EnforcedStyle: literal
Style/RedundantArgument:
AutoCorrect: false
Style/StringLiterals:
EnforcedStyle: double_quotes