-
Notifications
You must be signed in to change notification settings - Fork 1
/
rubocop.yml
119 lines (89 loc) · 2.15 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
AllCops:
DisplayCopNames: true
Exclude:
- 'bin/*'
- 'config/initializers/backtrace_silencers.rb'
- 'config/initializers/content_security_policy.rb'
- 'config/initializers/simple_form_bootstrap.rb'
- 'config/initializers/wrap_parameters.rb'
- 'config/puma.rb'
- 'db/migrate/*.active_storage.rb'
- 'db/schema.rb'
- 'lib/templates/**/*.rb'
- 'node_modules/**/*'
- 'vendor/**/*'
NewCops: enable
TargetRubyVersion: 3.0
Bundler/OrderedGems:
ConsiderPunctuation: true
Layout/DotPosition:
EnforcedStyle: trailing
Layout/EndAlignment:
EnforcedStyleAlignWith: variable
Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent
Layout/LineLength:
Exclude:
- 'app/dashboards/*'
- 'config/initializers/*'
- 'db/migrate/*'
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Layout/MultilineOperationIndentation:
EnforcedStyle: indented
Layout/ParameterAlignment:
EnforcedStyle: with_fixed_indentation
Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space
Lint/AmbiguousBlockAssociation:
Exclude:
- 'spec/**/*'
Metrics/AbcSize:
Exclude:
- 'db/migrate/*'
Metrics/BlockLength:
Exclude:
- 'config/**/*.rb'
- 'lib/**/*.rake'
- 'Guardfile'
- 'Rakefile'
- 'spec/**/*'
Metrics/ClassLength:
Exclude:
- 'app/dashboards/*'
Metrics/MethodLength:
Exclude:
- 'db/migrate/*'
Metrics/ModuleLength:
Exclude:
- 'spec/**/*'
Naming/FileName:
Enabled: false
Naming/RescuedExceptionsVariableName:
PreferredName: error
RSpec/NamedSubject:
Enabled: false
Style/AsciiComments:
Enabled: false
Style/BlockDelimiters:
Enabled: false
Style/Documentation:
Enabled: false
Style/HashSyntax:
EnforcedStyle: hash_rockets
Style/IfUnlessModifier:
Enabled: false
Style/SafeNavigation:
Enabled: false
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/SymbolArray:
EnforcedStyle: brackets
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: comma
Style/WordArray:
EnforcedStyle: brackets