-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
68 lines (65 loc) · 1.51 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
require:
- rubocop-rails
- rubocop-rspec
- rubocop-minitest
- rubocop-capybara
# - rubocop-graphql
AllCops:
SuggestExtensions: false
# I just wanted to exclude ops dir because it sends rubocop into infinite loop
# but it looks like Exclude is not merged with the default. Therefore I copied
# here the default config obtained with `bundle exec rubocop:dump`
Exclude:
- 'ops/**/*'
- "node_modules/**/*"
- "tmp/**/*"
- "vendor/**/*"
- ".git/**/*"
- "app/assets/**/*"
- "bin/*"
- "db/*schema.rb"
- "log/**/*"
- "public/**/*"
- "storage/**/*"
Bundler/DuplicatedGroup:
Enabled: false
Lint/AmbiguousOperatorPrecedence:
Enabled: false
Lint/MissingSuper:
Enabled: false
Naming/MethodParameterName:
Enabled: false
Metrics/AbcSize:
Enabled: false
Metrics/BlockLength:
Enabled: false
Metrics/ClassLength:
Enabled: false
Metrics/CyclomaticComplexity:
Enabled: false
Metrics/MethodLength:
Enabled: false
Metrics/ModuleLength:
Enabled: false
Metrics/PerceivedComplexity:
Enabled: false
Style/Documentation:
Enabled: false
Style/HashSyntax:
# this can be re-enabled when we switch to ruby >= 3.1
EnforcedShorthandSyntax: never
# Layout/IndentationStyle:
# EnforcedStyle: spaces
# Enabled: true
# Layout/IndentationWidth:
# Enabled: true
Style/StringLiterals:
Enabled: false
Style/TrailingCommaInHashLiteral:
Enabled: false
Security/MarshalLoad:
Enabled: false
Rails/RefuteMethods:
Enabled: false
Rails/UniqueValidationWithoutIndex:
Enabled: false