-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
52 lines (42 loc) · 945 Bytes
/
.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
require:
- rubocop-rails
- rubocop-rspec
- rubocop-performance
- rubocop-thread_safety
- rubocop-factory_bot
- rubocop-capybara
AllCops:
NewCops: enable
Exclude:
- 'db/schema.rb'
- 'Gemfile'
- 'lib/tasks/*.rake'
- 'bin/*'
- 'node_modules/**/*'
- 'config/puma.rb'
- 'config/spring.rb'
- 'config/environments/development.rb'
- 'config/environments/production.rb'
- 'spec/spec_helper.rb'
- 'docs/*.rb'
- 'db/migrate/20231127135016_add_check_constraint_for_slack_info_in_comments.rb'
Style/FrozenStringLiteralComment:
Enabled: false
Style/Documentation:
Enabled: false
Style/StringLiterals:
EnforcedStyle: double_quotes
Metrics/BlockLength:
Exclude:
- 'spec/**/*.rb'
Metrics/MethodLength:
Max: 15
Layout/LineLength:
Max: 120
# Only if not using I18n
Rails/I18nLocaleTexts:
Enabled: false
RSpec/ExampleLength:
Max: 20
RSpec/MultipleExpectations:
Max: 10