rubocop-nosolosoftware 0.10.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +20 -0
- data/rubocop-layout.yml +0 -12
- data/rubocop-lint.yml +10 -76
- data/rubocop-metrics.yml +14 -0
- data/rubocop-rspec.yml +5 -11
- data/rubocop-style.yml +15 -92
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b1316db6cb779aa63c14de37309e49f1aa454443719e2d37e05bd2456738eece
|
4
|
+
data.tar.gz: a9c63c57b156bad203c1455c2a63e645813e4be2023e1d1d5a8bbc24efe1e1ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d4f48333fe7116236116994b3842a6bf7f1403a435a0b66a7731d0569cc26a4e92f624c43b5c50b7e7734230cf39d6eede0f5b275ddc36ee3beb9da061e4eb7f
|
7
|
+
data.tar.gz: 3ef4abd15de78ada30af255655c8780bf9c992fa6274306e9ff250f17394f4a71e39478f1290750ab4b99767605b2e3efd4b8614e68388af41e551cec6f79a93
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,26 @@ 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
|
+
|
8
28
|
## 0.10.0 - 2020-11-04
|
9
29
|
### Added
|
10
30
|
- Added new rules introduced in the last version.
|
data/rubocop-layout.yml
CHANGED
@@ -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
|
data/rubocop-lint.yml
CHANGED
@@ -2,88 +2,22 @@
|
|
2
2
|
## https://rubocop.readthedocs.io/en/latest/cops_lint/
|
3
3
|
#
|
4
4
|
|
5
|
-
# https://docs.rubocop.org/rubocop/cops_lint.html#
|
6
|
-
Lint/
|
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#
|
10
|
-
Lint/
|
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#
|
14
|
-
Lint/
|
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#
|
18
|
-
Lint/
|
19
|
-
Enabled: true
|
20
|
-
|
21
|
-
# https://docs.rubocop.org/rubocop/cops_lint.html#lintduplicateelsifcondition
|
22
|
-
Lint/DuplicateElsifCondition:
|
23
|
-
Enabled: true
|
24
|
-
|
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:
|
19
|
+
# https://docs.rubocop.org/rubocop/cops_lint.html#lintunmodifiedreduceaccumulator
|
20
|
+
Lint/UnmodifiedReduceAccumulator:
|
87
21
|
Enabled: true
|
88
22
|
|
89
23
|
# https://docs.rubocop.org/rubocop/cops_lint.html#linthashcomparebyidentity
|
data/rubocop-metrics.yml
CHANGED
@@ -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"
|
data/rubocop-rspec.yml
CHANGED
@@ -38,16 +38,10 @@ RSpec/MultipleExpectations:
|
|
38
38
|
RSpec/NestedGroups:
|
39
39
|
Max: 5
|
40
40
|
|
41
|
-
# https://rubocop.
|
42
|
-
Style/BlockComments:
|
43
|
-
Exclude:
|
44
|
-
- "**/spec/**/*.rb"
|
45
|
-
|
46
|
-
# https://rubocop.readthedocs.io/en/latest/cops_style/#styleblockdelimiters
|
47
|
-
Style/BlockDelimiters:
|
48
|
-
Exclude:
|
49
|
-
- "**/spec/**/*.rb"
|
50
|
-
|
51
|
-
# https://rubocop.readthedocs.io/en/latest/cops_style/#rspecstubbedmock
|
41
|
+
# https://docs.rubocop.org/rubocop-rspec/cops_rspec.html#rspecstubbedmock
|
52
42
|
RSpec/StubbedMock:
|
53
43
|
Enabled: true
|
44
|
+
|
45
|
+
# https://docs.rubocop.org/rubocop-rspec/cops_rails.html#railshttpstatus
|
46
|
+
RSpec/Rails/HttpStatus:
|
47
|
+
EnforcedStyle: numeric
|
data/rubocop-style.yml
CHANGED
@@ -9,119 +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#
|
74
|
-
Style/
|
31
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#styleargumentsforwarding
|
32
|
+
Style/ArgumentsForwarding:
|
75
33
|
Enabled: true
|
76
34
|
|
77
|
-
# https://docs.rubocop.org/rubocop/cops_style.html#
|
78
|
-
Style/
|
35
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#styledocumentdynamicevaldefinition
|
36
|
+
Style/DocumentDynamicEvalDefinition:
|
79
37
|
Enabled: true
|
80
38
|
|
81
|
-
# https://docs.rubocop.org/rubocop/cops_style.html#
|
82
|
-
Style/
|
39
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#styleswapvalues
|
40
|
+
Style/SwapValues:
|
83
41
|
Enabled: true
|
84
42
|
|
85
|
-
# https://
|
86
|
-
Style/
|
87
|
-
|
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:
|
95
|
-
Enabled: true
|
96
|
-
|
97
|
-
# https://docs.rubocop.org/rubocop/cops_style.html#styleoptionalbooleanparameter
|
98
|
-
Style/OptionalBooleanParameter:
|
99
|
-
Enabled: true
|
100
|
-
|
101
|
-
# https://docs.rubocop.org/rubocop/cops_style.html#stylesingleargumentdig
|
102
|
-
Style/SingleArgumentDig:
|
103
|
-
Enabled: true
|
43
|
+
# https://rubocop.readthedocs.io/en/latest/cops_style/#styleblockcomments
|
44
|
+
Style/BlockComments:
|
45
|
+
Exclude:
|
46
|
+
- "**/spec/**/*.rb"
|
104
47
|
|
105
|
-
# https://docs.rubocop.org/rubocop/cops_style.html#
|
106
|
-
Style/
|
107
|
-
|
108
|
-
|
109
|
-
# https://docs.rubocop.org/rubocop/cops_style.html#stylecombinableloops
|
110
|
-
Style/CombinableLoops:
|
111
|
-
Enabled: true
|
112
|
-
|
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
|
124
|
-
|
125
|
-
# https://docs.rubocop.org/rubocop/cops_style.html#styleclassequalitycomparison
|
126
|
-
Style/ClassEqualityComparison:
|
127
|
-
Enabled: true
|
48
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#styleregexpliteral
|
49
|
+
Style/RegexpLiteral:
|
50
|
+
AllowInnerSlashes: true
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-nosolosoftware
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Javier Aranda
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
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: '
|
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:
|
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:
|
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/
|
129
|
-
changelog_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware/blob/
|
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.
|
140
|
+
version: 2.7.0
|
141
141
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
142
142
|
requirements:
|
143
143
|
- - ">="
|