-
Notifications
You must be signed in to change notification settings - Fork 162
/
.rubocop.yml
79 lines (63 loc) · 1.35 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
AllCops:
NewCops: enable
Exclude:
- vendor/bundle/**/*
- gemfiles/**/*.gemfile
- gemfiles/vendor/**/*
- spec/dummy_engine/dummy_engine.gemspec
- spec/schemas/**/*.rb
require:
- rubocop-rails
- rubocop-performance
- rubocop-thread_safety
- rubocop-rake
- rubocop-rspec
Gemspec/RequiredRubyVersion:
Exclude:
- 'ros-apartment.gemspec'
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Metrics/BlockLength:
Exclude:
- spec/**/*.rb
Rails/RakeEnvironment:
Enabled: false
Rails/ApplicationRecord:
Enabled: false
Rails/Output:
Enabled: false
Style/Documentation:
Enabled: false
Style/StringLiterals:
EnforcedStyle: single_quotes
Style/InlineComment:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: true
Exclude:
- Gemfile
Style/MethodCallWithArgsParentheses:
Enabled: true
EnforcedStyle: require_parentheses
AllowedPatterns:
- 'puts'
- 'info'
- 'warn'
- 'debug'
- 'error'
- 'fatal'
- 'fail'
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: comma
Style/ClassAndModuleChildren:
EnforcedStyle: nested
AutoCorrect: true
Style/CollectionMethods:
PreferredMethods:
collect: 'map'
collect!: 'map!'
inject: 'reduce'
detect: 'detect'
find_all: 'select'