rubocop-nosolosoftware 0.9.0 → 1.0.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: b9092a802db6538408a05b292f2ae17f594c68373687eb5e37f0a6126e220edb
4
- data.tar.gz: 4de86da8aa97ed88050ca982f414d3e002939134a7e767e98e98545603ecb143
3
+ metadata.gz: b1316db6cb779aa63c14de37309e49f1aa454443719e2d37e05bd2456738eece
4
+ data.tar.gz: a9c63c57b156bad203c1455c2a63e645813e4be2023e1d1d5a8bbc24efe1e1ba
5
5
  SHA512:
6
- metadata.gz: 67f0752040c2c31d9257864766d9fa58365f9a72e3e6f8318c00d90899f8a888fe049b213864b32e5e0048673109dc65deacbe49ec14e58d893237792a5eea28
7
- data.tar.gz: 8c802b977471ffaac67651a46e9287a4c1c625383fa553044231bfef2be59e8c9646011e1db1802cb0eb45d232e590049c5e1343e00bfbb06f192bfeab02a5f4
6
+ metadata.gz: d4f48333fe7116236116994b3842a6bf7f1403a435a0b66a7731d0569cc26a4e92f624c43b5c50b7e7734230cf39d6eede0f5b275ddc36ee3beb9da061e4eb7f
7
+ data.tar.gz: 3ef4abd15de78ada30af255655c8780bf9c992fa6274306e9ff250f17394f4a71e39478f1290750ab4b99767605b2e3efd4b8614e68388af41e551cec6f79a93
@@ -5,6 +5,39 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## 1.0.0 - 2020-11-04
9
+ ### Added
10
+ - Added new rules introduced in the last version.
11
+ - Lint/DuplicateRegexpCharacterClassElement (1.1)
12
+ - Lint/EmptyBlock (1.1)
13
+ - Lint/ToEnumArguments (1.1)
14
+ - Lint/UnmodifiedReduceAccumulator (1.1)
15
+ - Style/ArgumentsForwarding (1.1)
16
+ - Style/DocumentDynamicEvalDefinition (1.1)
17
+ - Style/SwapValues (1.1)
18
+ - Added new rules introduced in the last version of rubocop-rspec
19
+ - RSpec/Rails/HttpStatus (2.pre)
20
+
21
+ ### Changed
22
+ - Removed shared enabled rules with rubocop 1.0
23
+ - Bump dependencies (rubocop 1.0 and rubocop-rspec 2.pre)
24
+ - Bump ruby version to use `...`
25
+ - Reordered some rules following the convention of namespace/file.
26
+
27
+
28
+ ## 0.10.0 - 2020-11-04
29
+ ### Added
30
+ - Added new rules introduced in the last version.
31
+ - Lint/HashCompareByIdentity (0.93)
32
+ - Lint/RedundantSafeNavigation (0.93)
33
+ - Style/ClassEqualityComparison (0.93)
34
+
35
+ - Added new rules introduced in the last version of rubocop-rspec
36
+ - RSpec/StubbedMock (1.44)
37
+
38
+ ### Changed
39
+ - Bump dependencies
40
+
8
41
  ## 0.9.0 - 2020-09-18
9
42
  ### Added
10
43
  - Added new rules introduced in the last version.
data/README.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  Common Rubocop config for all our projects.
4
4
 
5
+ Please if you are using `rubocop < 1.0` use the branch [0.x](https://github.com/nosolosoftware/rubocop-nosolosoftware/tree/0.x) and `rubocop-nosolosoftware < 1.0`.
5
6
 
6
7
  ## Installation
7
8
 
@@ -2,14 +2,6 @@
2
2
  ## https://rubocop.readthedocs.io/en/latest/cops_layout/
3
3
  #
4
4
 
5
- # https://docs.rubocop.org/en/stable/cops_layout/#layoutemptylinesaroundattributeaccessor
6
- Layout/EmptyLinesAroundAttributeAccessor:
7
- Enabled: true
8
-
9
- # https://docs.rubocop.org/en/stable/cops_layout/#layoutspacearoundmethodcalloperator
10
- Layout/SpaceAroundMethodCallOperator:
11
- Enabled: true
12
-
13
5
  # https://rubocop.readthedocs.io/en/latest/cops_layout/#layoutfirstarrayelementindentation
14
6
  Layout/FirstArrayElementIndentation:
15
7
  EnforcedStyle: consistent
@@ -29,7 +21,3 @@ Layout/SpaceAroundEqualsInParameterDefault:
29
21
  # https://rubocop.readthedocs.io/en/latest/cops_layout/#layoutspaceinsidehashliteralbraces
30
22
  Layout/SpaceInsideHashLiteralBraces:
31
23
  EnforcedStyle: no_space
32
-
33
- # https://docs.rubocop.org/rubocop/cops_layout.html#layoutbeginendalignment
34
- Layout/BeginEndAlignment:
35
- Enabled: true
@@ -2,86 +2,28 @@
2
2
  ## https://rubocop.readthedocs.io/en/latest/cops_lint/
3
3
  #
4
4
 
5
- # https://docs.rubocop.org/rubocop/cops_lint.html#lintraiseexception
6
- Lint/RaiseException:
5
+ # https://docs.rubocop.org/rubocop/cops_lint.html#lintduplicateregexpcharacterclasselement
6
+ Lint/DuplicateRegexpCharacterClassElement:
7
7
  Enabled: true
8
8
 
9
- # https://docs.rubocop.org/rubocop/cops_lint.html#lintstructnewoverride
10
- Lint/StructNewOverride:
9
+ # https://docs.rubocop.org/rubocop/cops_lint.html#lintemptyblock
10
+ Lint/EmptyBlock:
11
11
  Enabled: true
12
+ Exclude:
13
+ - "**/spec/factories/**/*.rb"
12
14
 
13
- # https://docs.rubocop.org/rubocop/cops_lint.html#lintdeprecatedopensslconstant
14
- Lint/DeprecatedOpenSSLConstant:
15
+ # https://docs.rubocop.org/rubocop/cops_lint.html#linttoenumarguments
16
+ Lint/ToEnumArguments:
15
17
  Enabled: true
16
18
 
17
- # https://docs.rubocop.org/rubocop/cops_lint.html#lintmixedregexpcapturetypes
18
- Lint/MixedRegexpCaptureTypes:
19
+ # https://docs.rubocop.org/rubocop/cops_lint.html#lintunmodifiedreduceaccumulator
20
+ Lint/UnmodifiedReduceAccumulator:
19
21
  Enabled: true
20
22
 
21
- # https://docs.rubocop.org/rubocop/cops_lint.html#lintduplicateelsifcondition
22
- Lint/DuplicateElsifCondition:
23
+ # https://docs.rubocop.org/rubocop/cops_lint.html#linthashcomparebyidentity
24
+ Lint/HashCompareByIdentity:
23
25
  Enabled: true
24
26
 
25
- # https://docs.rubocop.org/rubocop/cops_lint.html#lintbinaryoperatorwithidenticaloperands
26
- Lint/BinaryOperatorWithIdenticalOperands:
27
- Enabled: true
28
-
29
- # https://docs.rubocop.org/rubocop/cops_lint.html#lintduplicaterescueexception
30
- Lint/DuplicateRescueException:
31
- Enabled: true
32
-
33
- # https://docs.rubocop.org/rubocop/cops_lint.html#lintemptyconditionalbody
34
- Lint/EmptyConditionalBody:
35
- Enabled: true
36
-
37
- # https://docs.rubocop.org/rubocop/cops_lint.html#lintfloatcomparison
38
- Lint/FloatComparison:
39
- Enabled: true
40
-
41
- # https://docs.rubocop.org/rubocop/cops_lint.html#lintoutofrangeregexpref
42
- Lint/OutOfRangeRegexpRef:
43
- Enabled: true
44
-
45
- # https://docs.rubocop.org/rubocop/cops_lint.html#lintselfassignment
46
- Lint/SelfAssignment:
47
- Enabled: true
48
-
49
- # https://docs.rubocop.org/rubocop/cops_lint.html#linttoplevelreturnwithargument
50
- Lint/TopLevelReturnWithArgument:
51
- Enabled: true
52
-
53
- # https://docs.rubocop.org/rubocop/cops_lint.html#lintunreachableloop
54
- Lint/UnreachableLoop:
55
- Enabled: true
56
-
57
- # https://docs.rubocop.org/rubocop/cops_lint.html#lintmissingsuper
58
- Lint/MissingSuper:
59
- Enabled: true
60
-
61
- # https://docs.rubocop.org/rubocop/cops_lint.html#lintconstantdefinitioninblock
62
- Lint/ConstantDefinitionInBlock:
63
- Enabled: true
64
-
65
- # https://docs.rubocop.org/rubocop/cops_lint.html#lintduplicaterequire
66
- Lint/DuplicateRequire:
67
- Enabled: true
68
-
69
- # https://docs.rubocop.org/rubocop/cops_lint.html#lintemptyfile
70
- Lint/EmptyFile:
71
- Enabled: true
72
-
73
- # https://docs.rubocop.org/rubocop/cops_lint.html#lintidentitycomparison
74
- Lint/IdentityComparison:
75
- Enabled: true
76
-
77
- # https://docs.rubocop.org/rubocop/cops_lint.html#linttrailingcommainattributedeclaration
78
- Lint/TrailingCommaInAttributeDeclaration:
79
- Enabled: true
80
-
81
- # https://docs.rubocop.org/rubocop/cops_lint.html#lintuselessmethoddefinition
82
- Lint/UselessMethodDefinition:
83
- Enabled: true
84
-
85
- # https://docs.rubocop.org/rubocop/cops_lint.html#lintuselesstimes
86
- Lint/UselessTimes:
27
+ # https://docs.rubocop.org/rubocop/cops_lint.html#lintredundantsafenavigation
28
+ Lint/RedundantSafeNavigation:
87
29
  Enabled: true
@@ -13,3 +13,17 @@ Metrics/ClassLength:
13
13
  # https://rubocop.readthedocs.io/en/latest/cops_metrics/#metricsmethodlength
14
14
  Metrics/MethodLength:
15
15
  Enabled: false
16
+
17
+ # https://rubocop.readthedocs.io/en/latest/cops_metrics/#metricsmodulelength
18
+ Metrics/ModuleLength:
19
+ Exclude:
20
+ - "**/config/routes.rb"
21
+ - "**/spec/**/*.rb"
22
+
23
+ # https://rubocop.readthedocs.io/en/latest/cops_metrics/#blocklength
24
+ Metrics/BlockLength:
25
+ Exclude:
26
+ - "**/spec/**/*.rb"
27
+ - "**/config/environments/*.rb"
28
+ - "**/config/routes.rb"
29
+ - "**/lib/tasks/auto_annotate_models.rake"
@@ -38,12 +38,10 @@ RSpec/MultipleExpectations:
38
38
  RSpec/NestedGroups:
39
39
  Max: 5
40
40
 
41
- # https://rubocop.readthedocs.io/en/latest/cops_style/#styleblockcomments
42
- Style/BlockComments:
43
- Exclude:
44
- - "**/spec/**/*.rb"
41
+ # https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecstubbedmock
42
+ RSpec/StubbedMock:
43
+ Enabled: true
45
44
 
46
- # https://rubocop.readthedocs.io/en/latest/cops_style/#styleblockdelimiters
47
- Style/BlockDelimiters:
48
- Exclude:
49
- - "**/spec/**/*.rb"
45
+ # https://docs.rubocop.org/rubocop-rspec/cops_rails.html#railshttpstatus
46
+ RSpec/Rails/HttpStatus:
47
+ EnforcedStyle: numeric
@@ -9,115 +9,42 @@ Style/AsciiComments:
9
9
  # https://rubocop.readthedocs.io/en/latest/cops_style/#styleblockdelimiters
10
10
  Style/BlockDelimiters:
11
11
  EnforcedStyle: braces_for_chaining
12
+ Exclude:
13
+ - "**/spec/**/*.rb"
12
14
 
13
15
  # https://docs.rubocop.org/rubocop/cops_style.html#styledocumentation
14
16
  Style/Documentation:
15
17
  Enabled: false
16
18
 
17
- # https://docs.rubocop.org/rubocop/cops_style.html#styleexponentialnotation
18
- Style/ExponentialNotation:
19
- Enabled: true
20
-
21
19
  # https://docs.rubocop.org/rubocop/cops_style.html#stylefrozenstringliteralcommetn
22
20
  Style/FrozenStringLiteralComment:
23
21
  Enabled: false
24
22
 
25
- # https://docs.rubocop.org/rubocop/cops_style.html#stylehasheachmethods
26
- Style/HashEachMethods:
27
- Enabled: true
28
-
29
- # https://docs.rubocop.org/rubocop/cops_style.html#stylehashtransformkeys
30
- Style/HashTransformKeys:
31
- Enabled: true
32
-
33
- # https://docs.rubocop.org/rubocop/cops_style.html#stylehashtransformvalues
34
- Style/HashTransformValues:
35
- Enabled: true
36
-
37
- # https://docs.rubocop.org/rubocop/cops_style.html#styleregexpliteral
38
- Style/RegexpLiteral:
39
- AllowInnerSlashes: true
40
-
41
- # https://docs.rubocop.org/rubocop/cops_style.html#styleslicingwithrange
42
- Style/SlicingWithRange:
43
- Enabled: true
44
-
45
23
  # https://docs.rubocop.org/rubocop/cops_style.html#styleaccessorgrouping
46
24
  Style/AccessorGrouping:
47
25
  Enabled: false
48
26
 
49
- # https://docs.rubocop.org/rubocop/cops_style.html#stylebisectedattraccessor
50
- Style/BisectedAttrAccessor:
51
- Enabled: true
52
-
53
- # https://docs.rubocop.org/rubocop/cops_style.html#styleredundantassignment
54
- Style/RedundantAssignment:
55
- Enabled: true
56
-
57
- # https://docs.rubocop.org/rubocop/cops_style.html#styleredundantfetchblock
58
- Style/RedundantFetchBlock:
59
- Enabled: true
60
-
61
- # https://docs.rubocop.org/rubocop/cops_style.html#styleredundantregexpcharacterclass
62
- Style/RedundantRegexpCharacterClass:
63
- Enabled: true
64
-
65
- # https://docs.rubocop.org/rubocop/cops_style.html#styleredundantregexpescape
66
- Style/RedundantRegexpEscape:
67
- Enabled: true
68
-
69
27
  # https://docs.rubocop.org/rubocop/cops_style.html#stylearraycoercion
70
28
  Style/ArrayCoercion:
71
29
  Enabled: true
72
30
 
73
- # https://docs.rubocop.org/rubocop/cops_style.html#stylecaselikeif
74
- Style/CaseLikeIf:
75
- Enabled: true
76
-
77
- # https://docs.rubocop.org/rubocop/cops_style.html#stylehashaslastarrayitem
78
- Style/HashAsLastArrayItem:
79
- Enabled: true
80
-
81
- # https://docs.rubocop.org/rubocop/cops_style.html#stylehashlikecase
82
- Style/HashLikeCase:
83
- Enabled: true
84
-
85
- # https://docs.rubocop.org/rubocop/cops_style.html#styleredundantfileextensioninrequire
86
- Style/RedundantFileExtensionInRequire:
87
- Enabled: true
88
-
89
- # https://docs.rubocop.org/rubocop/cops_style.html#styleexplicitblockargument
90
- Style/ExplicitBlockArgument:
91
- Enabled: true
92
-
93
- # https://docs.rubocop.org/rubocop/cops_style.html#styleglobalstdstream
94
- Style/GlobalStdStream:
31
+ # https://docs.rubocop.org/rubocop/cops_style.html#styleargumentsforwarding
32
+ Style/ArgumentsForwarding:
95
33
  Enabled: true
96
34
 
97
- # https://docs.rubocop.org/rubocop/cops_style.html#styleoptionalbooleanparameter
98
- Style/OptionalBooleanParameter:
35
+ # https://docs.rubocop.org/rubocop/cops_style.html#styledocumentdynamicevaldefinition
36
+ Style/DocumentDynamicEvalDefinition:
99
37
  Enabled: true
100
38
 
101
- # https://docs.rubocop.org/rubocop/cops_style.html#stylesingleargumentdig
102
- Style/SingleArgumentDig:
39
+ # https://docs.rubocop.org/rubocop/cops_style.html#styleswapvalues
40
+ Style/SwapValues:
103
41
  Enabled: true
104
42
 
105
- # https://docs.rubocop.org/rubocop/cops_style.html#stylestringconcatenation
106
- Style/StringConcatenation:
107
- Enabled: true
108
-
109
- # https://docs.rubocop.org/rubocop/cops_style.html#stylecombinableloops
110
- Style/CombinableLoops:
111
- Enabled: true
43
+ # https://rubocop.readthedocs.io/en/latest/cops_style/#styleblockcomments
44
+ Style/BlockComments:
45
+ Exclude:
46
+ - "**/spec/**/*.rb"
112
47
 
113
- # https://docs.rubocop.org/rubocop/cops_style.html#stylekeywordparametersorder
114
- Style/KeywordParametersOrder:
115
- Enabled: true
116
-
117
- # https://docs.rubocop.org/rubocop/cops_style.html#styleredundantselfassignment
118
- Style/RedundantSelfAssignment:
119
- Enabled: true
120
-
121
- # https://docs.rubocop.org/rubocop/cops_style.html#stylesolenestedconditional
122
- Style/SoleNestedConditional:
123
- Enabled: true
48
+ # https://docs.rubocop.org/rubocop/cops_style.html#styleregexpliteral
49
+ Style/RegexpLiteral:
50
+ AllowInnerSlashes: true
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-nosolosoftware
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Aranda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-18 00:00:00.000000000 Z
11
+ date: 2020-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.91'
19
+ version: '1.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.91'
26
+ version: '1.1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-faker
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -86,14 +86,14 @@ dependencies:
86
86
  requirements:
87
87
  - - "~>"
88
88
  - !ruby/object:Gem::Version
89
- version: '1.43'
89
+ version: 2.pre
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
- version: '1.43'
96
+ version: 2.pre
97
97
  description: ''
98
98
  email: jaranda@nosolosoftware.es
99
99
  executables: []
@@ -125,8 +125,8 @@ homepage: https://github.com/nosolosoftware/rubocop-nosolosoftware
125
125
  licenses:
126
126
  - MIT
127
127
  metadata:
128
- source_code_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware/tree/v0.9.0
129
- changelog_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware/blob/v0.9.0/CHANGELOG.md
128
+ source_code_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware/tree/v1.0.0
129
+ changelog_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware/blob/v1.0.0/CHANGELOG.md
130
130
  homepage_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware
131
131
  post_install_message:
132
132
  rdoc_options:
@@ -137,7 +137,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
137
137
  requirements:
138
138
  - - ">="
139
139
  - !ruby/object:Gem::Version
140
- version: 2.5.0
140
+ version: 2.7.0
141
141
  required_rubygems_version: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - ">="