-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.rubocop.yml
92 lines (72 loc) · 1.84 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
---
AllCops:
NewCops: enable
TargetRubyVersion: 2.7
Lint/AmbiguousBlockAssociation:
IgnoredMethods:
- change
# Enable long'n'complex methods in operations
# because we made those definitions using a DSL
# which 'regularizes' a code, so we can afford that complexity.
Metrics/BlockLength:
# these methods should wrap a lot of definitions by design
IgnoredMethods:
- class_methods
- configure
- context
- describe
- define
Exclude:
- lib/pg_trunk/operations/**/*.rb
Metrics/AbcSize:
Exclude:
- lib/pg_trunk/operations/**/*.rb
Metrics/ClassLength:
Exclude:
- spec/**/*_spec.rb
- lib/pg_trunk/operations/**/*.rb
Metrics/CyclomaticComplexity:
Exclude:
- lib/pg_trunk/operations/**/*.rb
Metrics/MethodLength:
Exclude:
- lib/pg_trunk/operations/**/*.rb
Metrics/PerceivedComplexity:
Exclude:
- lib/pg_trunk/operations/**/*.rb
# Enable long modules in specs
Metrics/ModuleLength:
Exclude:
- spec/**/*_spec.rb
# Start class definitions from inline
# private def initialize(...)
Style/AccessModifierDeclarations:
Enabled: false
# Prefer the following style:
#
# module Foo:Bar # directly accessible from Baz
# class Baz
# # ...
Style/ClassAndModuleChildren:
Enabled: false
# The convention is too opinionated
Style/DocumentDynamicEvalDefinition:
Enabled: false
# The convention is too opinionated
Style/EmptyCaseCondition:
Enabled: false
Style/EmptyMethod:
EnforcedStyle: compact
Style/ModuleFunction:
EnforcedStyle: extend_self
Style/StringLiterals:
EnforcedStyle: double_quotes
Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: consistent_comma
Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: consistent_comma
Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: consistent_comma
Style/WordArray:
Exclude:
- spec/features/**/*