-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
95 lines (84 loc) · 1.96 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
# Omakase Ruby styling for Rails
plugins: rubocop-rails
AllCops:
NewCops: enable
SuggestExtensions: false
TargetRubyVersion: 3.4.1
Exclude:
- '*.html.erb'
- 'bin/**/*'
- 'vendor/**/*'
- 'config/**/*'
- 'db/**/*'
- 'db/migrate/*'
- 'spec/rails_helper.rb'
- 'spec/spec_helper.rb'
- 'app/channels/application_cable/connection.rb'
- scripts.rb
Style/Documentation:
Enabled: false
Style/ReturnNilInPredicateMethodDefinition:
Enabled: true
Style/IdenticalConditionalBranches:
Enabled: true
Style/FrozenStringLiteralComment:
Enabled: true
Exclude:
- spec/**/*
- test/**/*
- db/**/*
- Rakefile
- Gemfile
- app/channels/application_cable/connection.rb
- app/helpers/application_helper.rb
- app/jobs/application_job.rb
- app/mailers/application_mailer.rb
- app/models/application_record.rb
- app/controllers/application_controller.rb
Style/ClassAndModuleChildren:
Enabled: true
Style/StringLiterals:
EnforcedStyle: single_quotes
Rails/UniqueValidationWithoutIndex:
Enabled: false
Metrics/BlockLength:
Max: 150
Exclude:
- '**/config/**/*'
- '**/spec/**/*'
- '**/*.gemspec'
Metrics/MethodLength:
Max: 50
Metrics/ClassLength:
Max: 175
Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented
Layout/MultilineAssignmentLayout:
EnforcedStyle: same_line
Layout/MultilineHashKeyLineBreaks:
Enabled: true
Layout/HashAlignment:
Enabled: true
EnforcedHashRocketStyle: table
Layout/ParameterAlignment:
Enabled: true
Layout/ArgumentAlignment:
Enabled: true
EnforcedStyle: with_fixed_indentation
Layout/ExtraSpacing:
Enabled: true
AllowForAlignment: true
Layout/AccessModifierIndentation:
Enabled: true
Layout/LineLength:
Max: 190
Exclude:
- 'app/controllers/dashboard/members_controller.rb'
Rails/HasManyOrHasOneDependent:
Enabled: true
Rails/InverseOf:
Enabled: true
Rails/I18nLocaleTexts:
Enabled: false
Lint/AssignmentInCondition:
Enabled: false