rubocop-dbl 1.0.1 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 33d84cbb963636c197eb383d365027dd6bef5f7f3fbc0ad8ba2bb0e3309b07a1
4
- data.tar.gz: 4ddd2edba86d33828d36893e96e6d4a56eaff68aac4c855bca1be0dfa6546e4d
3
+ metadata.gz: 8558583841f690643ee75e260ac5de01bf09326f20608c4005ec4ed285ef1b23
4
+ data.tar.gz: 9fb41eca523ec7a0afe85d5c9ecf4b4a95390004dbc7188da76a24a55b5e6344
5
5
  SHA512:
6
- metadata.gz: 6274efeff7d90d4c95687018d3789046c439c3ffed2bf589f1f87832358aa116bafb7c60778eebc09d749ee9a6c1426c00ccf686b7457d377ae8ff1653a56cbd
7
- data.tar.gz: e93a63b62e52407033324b44ea29847dbb66b7eaae092ec5c982309abe640a95685c05677221ff2cc0dcf9df2a16937610c8c64e08b8ec9646f5b0abf8a2e8c9
6
+ metadata.gz: 5249980d5ca07dee5e08b47ecf003d7a22c9c816c468d9571db7d77094b529fbb65fef426dcafb89ada6c2625bdd55e010c7f911fd4eaea4a7df8a03a4ee6c60
7
+ data.tar.gz: e91569daf478e8a1351d107836af01f79e65e2c3fc48a94db41c16efe4f9e4f7f17638da2f289e33c5228678a62f159519d425125a3b5c8a18e6a5e77ed1861e
@@ -7,7 +7,6 @@
7
7
  # For example:
8
8
  #
9
9
  # Layout/EndAlignment:
10
- # Reference: 'https://github.com/dbl-works/rubocop-dbl/pull/35'
11
10
  # Enabled: true
12
11
  #
13
12
 
@@ -15,14 +14,12 @@
15
14
  # assignments, where it should be aligned with the LHS.
16
15
  # @NOTE: changed EnforcedStyleAlignWith from "keyword" to "variable"
17
16
  Layout/EndAlignment:
18
- Reference: 'we have no reference for this change'
19
17
  Enabled: true
20
18
  EnforcedStyleAlignWith: variable
21
19
  AutoCorrect: true
22
20
 
23
21
  # @NOTE: changed EnforcedStyle from "with_first_parameter" to "with_fixed_indentation"
24
22
  Layout/ParameterAlignment:
25
- Reference: 'we have no reference for this change'
26
23
  EnforcedStyle: with_fixed_indentation
27
24
  SupportedStyles:
28
25
  - with_first_parameter
data/config/cops/lint.yml CHANGED
@@ -7,7 +7,6 @@
7
7
  # For example:
8
8
  #
9
9
  # Lint/AmbiguousOperator:
10
- # Reference: 'https://github.com/dbl-works/rubocop-dbl/pull/36'
11
10
  # Enabled: true
12
11
  #
13
12
 
@@ -15,33 +14,25 @@
15
14
  # @NOTE: the following cops are on "pending" by default
16
15
  #
17
16
  Lint/DuplicateBranch:
18
- Reference: 'we have no reference for this change'
19
17
  Enabled: true
20
18
 
21
19
  Lint/DuplicateRegexpCharacterClassElement:
22
- Reference: 'we have no reference for this change'
23
20
  Enabled: true
24
21
 
25
22
  Lint/EmptyBlock:
26
- Reference: 'we have no reference for this change'
27
23
  Enabled: true
28
24
 
29
25
  Lint/EmptyClass:
30
- Reference: 'we have no reference for this change'
31
26
  Enabled: true
32
27
 
33
28
  Lint/NoReturnInBeginEndBlocks:
34
- Reference: 'we have no reference for this change'
35
29
  Enabled: true
36
30
 
37
31
  Lint/ToEnumArguments:
38
- Reference: 'we have no reference for this change'
39
32
  Enabled: true
40
33
 
41
34
  Lint/UnexpectedBlockArity:
42
- Reference: 'we have no reference for this change'
43
35
  Enabled: true
44
36
 
45
37
  Lint/UnmodifiedReduceAccumulator:
46
- Reference: 'we have no reference for this change'
47
38
  Enabled: true
@@ -7,14 +7,12 @@
7
7
  # For example:
8
8
  #
9
9
  # Metrics/BlockLength:
10
- # Reference: 'https://github.com/dbl-works/rubocop-dbl/pull/37'
11
10
  # Enabled: true
12
11
  #
13
12
 
14
13
  # @NOTE: IgnoredMethods by default only contains "refine"
15
14
  Metrics/BlockLength:
16
- Reference: 'we have no reference for this change'
17
- IgnoredMethods:
15
+ Exclude:
18
16
  - describe
19
17
  - context
20
18
  - feature
@@ -7,11 +7,10 @@
7
7
  # For example:
8
8
  #
9
9
  # Naming/VariableNumber:
10
- # Reference: 'https://github.com/dbl-works/rubocop-dbl/pull/38'
11
10
  # Enabled: true
12
11
  #
13
12
 
14
13
  # @NOTE: changed EnforcedStyle from "normalcase" to "snake_case"
14
+ # https://github.com/dbl-works/rubocop-dbl/pull/26
15
15
  Naming/VariableNumber:
16
- Reference: 'https://github.com/dbl-works/rubocop-dbl/pull/26'
17
16
  EnforcedStyle: snake_case
@@ -7,6 +7,5 @@
7
7
  # For example:
8
8
  #
9
9
  # Performance/AncestorsInclude:
10
- # Reference: 'https://github.com/dbl-works/rubocop-dbl/pull/31'
11
10
  # Enabled: true
12
11
  #
@@ -7,7 +7,6 @@
7
7
  # For example:
8
8
  #
9
9
  # Rails/ActionFilter:
10
- # Reference: 'https://github.com/dbl-works/rubocop-dbl/pull/33'
11
10
  # Enabled: false
12
11
  #
13
12
 
@@ -21,12 +20,10 @@ Rails/UnknownEnv:
21
20
 
22
21
  # @NOTE: disabled
23
22
  Rails/HttpStatus:
24
- Reference: 'We have no reference for this change'
25
23
  Enabled: false
26
24
 
27
25
  # @NOTE: disabled
28
26
  Rails/ApplicationController:
29
- Reference: 'We have no reference for this change'
30
27
  Enabled: false
31
28
 
32
29
 
@@ -34,70 +31,53 @@ Rails/ApplicationController:
34
31
  # @NOTE: all the cops ahead are "pending" in the current default config
35
32
  #
36
33
  Rails/ActiveRecordCallbacksOrder:
37
- Reference: 'We have no reference for this change'
38
34
  Enabled: true
39
35
 
40
36
  Rails/AfterCommitOverride:
41
- Reference: 'We have no reference for this change'
42
37
  Enabled: true
43
38
 
44
39
  Rails/AttributeDefaultBlockValue:
45
- Reference: 'We have no reference for this change'
46
40
  Enabled: true
47
41
 
48
42
  Rails/FindById:
49
- Reference: 'We have no reference for this change'
50
43
  Enabled: true
51
44
 
52
45
  Rails/Inquiry:
53
- Reference: 'We have no reference for this change'
54
46
  Enabled: true
55
47
 
56
48
  Rails/MailerName:
57
- Reference: 'We have no reference for this change'
58
49
  Enabled: true
59
50
 
60
51
  Rails/MatchRoute:
61
- Reference: 'We have no reference for this change'
62
52
  Enabled: true
63
53
 
64
54
  Rails/NegateInclude:
65
- Reference: 'We have no reference for this change'
66
55
  Enabled: true
67
56
 
68
57
  Rails/Pluck:
69
- Reference: 'We have no reference for this change'
70
58
  Enabled: true
71
59
 
72
60
  Rails/PluckInWhere:
73
- Reference: 'We have no reference for this change'
74
61
  Enabled: true
75
62
 
76
63
  Rails/RenderInline:
77
- Reference: 'We have no reference for this change'
78
64
  Enabled: true
79
65
 
80
66
  Rails/RenderPlainText:
81
- Reference: 'We have no reference for this change'
82
67
  Enabled: true
83
68
 
84
69
  Rails/ShortI18n:
85
- Reference: 'We have no reference for this change'
86
70
  Enabled: true
87
71
  EnforcedStyle: aggressive
88
72
 
89
73
  Rails/SquishedSQLHeredocs:
90
- Reference: 'We have no reference for this change'
91
74
  Enabled: true
92
75
 
93
76
  Rails/WhereEquals:
94
- Reference: 'We have no reference for this change'
95
77
  Enabled: true
96
78
 
97
79
  Rails/WhereExists:
98
- Reference: 'We have no reference for this change'
99
80
  Enabled: true
100
81
 
101
82
  Rails/WhereNot:
102
- Reference: 'We have no reference for this change'
103
83
  Enabled: true
@@ -7,14 +7,12 @@
7
7
  # For example:
8
8
  #
9
9
  # RSpec/AlignLeftLetBrace:
10
- # Reference: 'https://github.com/dbl-works/rubocop-dbl/pull/32'
11
10
  # Enabled: true
12
11
  #
13
12
 
14
13
 
15
14
  # @NOTE: added: "if", "and"
16
15
  RSpec/ContextWording:
17
- Reference: 'https://github.com/dbl-works/rubocop-dbl/pull/25'
18
16
  Prefixes:
19
17
  - when
20
18
  - with
@@ -25,18 +23,15 @@ RSpec/ContextWording:
25
23
 
26
24
  # @NOTE: by default, no methods are enabled
27
25
  RSpec/Capybara/FeatureMethods:
28
- Reference: 'https://github.com/dbl-works/rubocop-dbl/pull/25'
29
26
  EnabledMethods:
30
27
  - feature
31
28
  - scenario
32
29
 
33
30
  # @NOTE: increased from 3 to 5
34
31
  RSpec/NestedGroups:
35
- Reference: 'https://github.com/dbl-works/rubocop-dbl/pull/25'
36
32
  Max: 5
37
33
 
38
34
 
39
35
  # @NOTE: increased from 5 to 6
40
36
  RSpec/MultipleMemoizedHelpers:
41
- Reference: 'https://github.com/dbl-works/rubocop-dbl/pull/25'
42
37
  Max: 6
@@ -7,23 +7,19 @@
7
7
  # For example:
8
8
  #
9
9
  # Style/AndOr:
10
- # Reference: 'https://github.com/dbl-works/rubocop-dbl/pull/34'
11
10
  # Enabled: true
12
11
  #
13
12
 
14
13
  # @NOTE: changed from "always" to "never"
15
14
  Style/FrozenStringLiteralComment:
16
- Reference: 'we have no reference for this change'
17
15
  EnforcedStyle: never
18
16
 
19
17
  # enforces to use 'name'.to_sym over 'name'.intern and so on
20
18
  Style/StringMethods:
21
- Reference: 'we have no reference for this change'
22
19
  Enabled: true
23
20
 
24
21
  # @NOTE: changed from "compact" to "expanded"
25
22
  Style/EmptyMethod:
26
- Reference: 'we have no reference for this change'
27
23
  EnforcedStyle: expanded
28
24
  SupportedStyles:
29
25
  - compact
@@ -31,66 +27,52 @@ Style/EmptyMethod:
31
27
 
32
28
  # @NOTE: allowed AllowMultipleReturnValues
33
29
  Style/RedundantReturn:
34
- Reference: 'we have no reference for this change'
35
30
  Enabled: true
36
31
  AllowMultipleReturnValues: true
37
32
 
38
33
  # @NOTE: allowed AllowAsExpressionSeparator
39
34
  Style/Semicolon:
40
- Reference: 'we have no reference for this change'
41
35
  Enabled: true
42
36
  AllowAsExpressionSeparator: true
43
37
 
44
38
  Style/CollectionMethods:
45
- Reference: 'we have no reference for this change'
46
39
  Enabled: true
47
40
 
48
41
  Style/Documentation:
49
- Reference: 'we have no reference for this change'
50
42
  Enabled: false
51
43
 
52
44
  # @NOTE: changed EnforcedStyleForMultiline from "no_comma" to "comma"
53
45
  Style/TrailingCommaInArguments:
54
- Reference: 'https://github.com/dbl-works/rubocop-dbl/pull/27'
55
46
  EnforcedStyleForMultiline: comma
56
47
 
57
48
  # @NOTE: changed EnforcedStyleForMultiline from "no_comma" to "comma"
58
49
  Style/TrailingCommaInArrayLiteral:
59
- Reference: 'https://github.com/dbl-works/rubocop-dbl/pull/24'
60
50
  EnforcedStyleForMultiline: comma
61
51
 
62
52
  # @NOTE: changed EnforcedStyleForMultiline from "no_comma" to "comma"
63
53
  Style/TrailingCommaInHashLiteral:
64
- Reference: 'https://github.com/dbl-works/rubocop-dbl/pull/24'
65
54
  EnforcedStyleForMultiline: comma
66
55
 
67
56
  #
68
57
  # @NOTE: the following cops are "pending" by default
69
58
  #
70
59
  Style/ArgumentsForwarding:
71
- Reference: 'we have no reference for this change'
72
60
  Enabled: false
73
61
 
74
62
  Style/CollectionCompact:
75
- Reference: 'we have no reference for this change'
76
63
  Enabled: true
77
64
 
78
65
  Style/DocumentDynamicEvalDefinition:
79
- Reference: 'we have no reference for this change'
80
66
  Enabled: true
81
67
 
82
68
  Style/NegatedIfElseCondition:
83
- Reference: 'we have no reference for this change'
84
69
  Enabled: true
85
70
 
86
71
  Style/NilLambda:
87
- Reference: 'we have no reference for this change'
88
72
  Enabled: true
89
73
 
90
74
  Style/RedundantArgument:
91
- Reference: 'we have no reference for this change'
92
75
  Enabled: true
93
76
 
94
77
  Style/SwapValues:
95
- Reference: 'we have no reference for this change'
96
78
  Enabled: true
@@ -7,7 +7,6 @@
7
7
  # For example:
8
8
  #
9
9
  # Style/AndOr:
10
- # Reference: 'https://github.com/dbl-works/rubocop-dbl/pull/34'
11
10
  # Enabled: true
12
11
  #
13
12
 
@@ -2,6 +2,7 @@
2
2
 
3
3
  require 'rails/generators/base'
4
4
  require 'active_support/core_ext/string'
5
+ require 'railties'
5
6
 
6
7
  module RubocopDbl
7
8
  module Generators
@@ -1,5 +1,5 @@
1
1
  # typed: false
2
2
 
3
3
  module RubocopDbl
4
- VERSION = '1.0.1'.freeze
4
+ VERSION = '1.1.0'.freeze
5
5
  end
metadata CHANGED
@@ -1,29 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-dbl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - 'Team DBL :rocket:'
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-30 00:00:00.000000000 Z
11
+ date: 2023-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
- - !ruby/object:Gem::Dependency
14
- name: railties
15
- requirement: !ruby/object:Gem::Requirement
16
- requirements:
17
- - - ">="
18
- - !ruby/object:Gem::Version
19
- version: '5'
20
- type: :runtime
21
- prerelease: false
22
- version_requirements: !ruby/object:Gem::Requirement
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '5'
27
13
  - !ruby/object:Gem::Dependency
28
14
  name: rubocop
29
15
  requirement: !ruby/object:Gem::Requirement
@@ -162,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
162
148
  - !ruby/object:Gem::Version
163
149
  version: '0'
164
150
  requirements: []
165
- rubygems_version: 3.1.6
151
+ rubygems_version: 3.4.13
166
152
  signing_key:
167
153
  specification_version: 4
168
154
  summary: RuboCop configuration for our Ruby on Rails projects