forked from Agrimatics/activemodel-datastore
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.rubocop.yml
104 lines (78 loc) · 2.29 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
AllCops:
NewCops: enable
DisplayCopNames: true
DisplayStyleGuide: true
ExtraDetails: false
SuggestExtensions: false
TargetRubyVersion: 2.6
Exclude:
- "activemodel-datastore.gemspec"
- "Rakefile"
- "lib/active_model/datastore/version.rb"
- "test/support/datastore_example_rails_app/bin/**/*"
- "test/support/datastore_example_rails_app/config/environments/**/*"
- "test/support/datastore_example_rails_app/config/application.rb"
- "test/support/datastore_example_rails_app/config/initializers/backtrace_silencers.rb"
- "test/support/datastore_example_rails_app/config/initializers/content_security_policy.rb"
- "test/support/datastore_example_rails_app/config/initializers/session_store.rb"
- "test/support/datastore_example_rails_app/vendor/**/*"
- "test/support/datastore_example_rails_app/Gemfile"
- "vendor/**/*"
#################### Layout ##########################
Layout/LineLength:
Max: 100
Layout/SpaceAroundMethodCallOperator:
Enabled: true
Layout/EmptyLinesAroundAttributeAccessor:
Enabled: false
##################### Lint ###########################
Lint/SendWithMixinArgument:
Enabled: false
Lint/ConstantDefinitionInBlock:
Exclude:
- "test/cases/datastore_test.rb"
- "test/cases/track_changes_test.rb"
#################### Style ###########################
Style/AccessorGrouping:
Enabled: false
Style/Documentation:
Enabled: false
Style/FrozenStringLiteralComment:
Enabled: false
Style/ClassAndModuleChildren:
Enabled: false
Style/EmptyMethod:
EnforcedStyle: expanded
Style/NumericLiterals:
Enabled: false
Style/StringConcatenation:
Enabled: false
Style/SymbolArray:
EnforcedStyle: brackets
Style/IfWithBooleanLiteralBranches:
Enabled: false
Style/DocumentDynamicEvalDefinition:
Exclude:
- "lib/active_model/datastore/carrier_wave_uploader.rb"
#################### Metrics #########################
Metrics/ModuleLength:
CountComments: false
Max: 150
Metrics/ClassLength:
CountComments: false
Max: 175
Exclude:
- "test/**/*"
Metrics/MethodLength:
CountComments: false
Max: 20
Metrics/BlockLength:
Exclude:
- 'Rakefile'
- '**/*.rake'
- "test/**/*"
Metrics/AbcSize:
Max: 26
#################### Naming ##########################
Naming/VariableNumber:
Enabled: false