rubocop-nosolosoftware 1.0.0 → 1.5.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 +60 -0
- data/rubocop-gemspec.yml +4 -0
- data/rubocop-layout.yml +4 -0
- data/rubocop-lint.yml +48 -0
- data/rubocop-naming.yml +4 -0
- data/rubocop-performance.yml +29 -9
- data/rubocop-rails.yml +8 -0
- data/rubocop-style.yml +32 -0
- metadata +13 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36e8ed5d74002fad6070ed44a4120e82c2d802887fe4c337acf20adf120f2491
|
4
|
+
data.tar.gz: f4a146a3af3d8b6aeae422c7bed4e55114583b5fa8c40353d227f52246d73d7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a39aac12583fc943e8e85390b3ec20dc47ea690f158c9383b7415378fd4776852a97eca1a68a6f16c93f49b35aebaf513ad3c3aeb42bfed1d03887537d0b2c5d
|
7
|
+
data.tar.gz: 4efa3cc798fc2678cdb20bf2b59dc2bc3d85d3f53974193b4ebcd7c62cc97ee4472e7ac55833df32889d69ff8ba0dcf9001ea43b2d88affdfad8ebf88f69e7e7
|
data/CHANGELOG.md
CHANGED
@@ -5,6 +5,66 @@ 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
|
+
The following rules have been added:
|
9
|
+
|
10
|
+
## 1.5.0 - 2021-02-25
|
11
|
+
|
12
|
+
### Added
|
13
|
+
- Added new rules introduced in the last version.
|
14
|
+
-rubocop
|
15
|
+
- Gemspec/DateAssignment (1.10)
|
16
|
+
- Layout/SpaceBeforeBrackets (1.7)
|
17
|
+
- Lint/AmbiguousAssignment (1.7)
|
18
|
+
- Lint/DeprecatedConstants (1.8)
|
19
|
+
- Lint/LambdaWithoutLiteralBlock (1.8)
|
20
|
+
- Lint/NumberedParameterAssignment (1.9)
|
21
|
+
- Lint/OrAssignmentToConstant (1.9)
|
22
|
+
- Lint/RedundantDirGlobSort (1.8)
|
23
|
+
- Lint/SymbolConversion (1.9)
|
24
|
+
- Lint/TripleQuotes (1.9)
|
25
|
+
- Style/EndlessMethod (1.8)
|
26
|
+
- Style/HashConversion (1.10)
|
27
|
+
- Style/HashExcept (1.7)
|
28
|
+
- Style/IfWithBooleanLiteralBranches (1.9)
|
29
|
+
|
30
|
+
## 1.4.0 - 2020-12-15
|
31
|
+
### Added
|
32
|
+
- Added new rules introduced in the last version.
|
33
|
+
- rubocop
|
34
|
+
- Lint/UnexpectedBlockArity (1.5)
|
35
|
+
- rubocop-rails
|
36
|
+
- Rails/AttributeDefaultBlockValue (2.9)
|
37
|
+
- Rails/WhereEquals (2.9)
|
38
|
+
|
39
|
+
## 1.3.0 - 2020-11-25
|
40
|
+
### Added
|
41
|
+
- Added new rules introduced in the last version.
|
42
|
+
- rubocop
|
43
|
+
- Style/RedundantArgument (1.4)
|
44
|
+
- rubocop-performance
|
45
|
+
- Performance/ArraySemiInfiniteRangeSlice (1.9)
|
46
|
+
- Performance/BlockGivenWithExplicitBlock (1.9)
|
47
|
+
- Performance/CollectionLiteralInLoop (1.8)
|
48
|
+
- Performance/ConstantRegexp (1.9)
|
49
|
+
- Performance/MethodObjectAsBlock (1.9)
|
50
|
+
|
51
|
+
## 1.2.0 - 2020-11-13
|
52
|
+
### Added
|
53
|
+
- Added new rules introduced in the last version.
|
54
|
+
- Lint/DuplicateBranch (1.3)
|
55
|
+
- Lint/EmptyClass (1.3)
|
56
|
+
- Style/NilLambda (1.3)
|
57
|
+
|
58
|
+
## 1.1.0 - 2020-11-13
|
59
|
+
### Added
|
60
|
+
- Added new rules introduced in the last version.
|
61
|
+
- Lint/NoReturnInBeginEndBlocks (1.2)
|
62
|
+
- Style/CollectionCompact (1.2)
|
63
|
+
- Style/NegatedIfElseCondition (1.2)
|
64
|
+
|
65
|
+
### Changed
|
66
|
+
- Changed Naming/VariableNumber to start using snake_case
|
67
|
+
|
8
68
|
## 1.0.0 - 2020-11-04
|
9
69
|
### Added
|
10
70
|
- Added new rules introduced in the last version.
|
data/rubocop-gemspec.yml
CHANGED
data/rubocop-layout.yml
CHANGED
@@ -21,3 +21,7 @@ Layout/SpaceAroundEqualsInParameterDefault:
|
|
21
21
|
# https://rubocop.readthedocs.io/en/latest/cops_layout/#layoutspaceinsidehashliteralbraces
|
22
22
|
Layout/SpaceInsideHashLiteralBraces:
|
23
23
|
EnforcedStyle: no_space
|
24
|
+
|
25
|
+
# https://docs.rubocop.org/rubocop/cops_layout.html#layoutspacebeforebrackets
|
26
|
+
Layout/SpaceBeforeBrackets:
|
27
|
+
Enabled: true
|
data/rubocop-lint.yml
CHANGED
@@ -27,3 +27,51 @@ Lint/HashCompareByIdentity:
|
|
27
27
|
# https://docs.rubocop.org/rubocop/cops_lint.html#lintredundantsafenavigation
|
28
28
|
Lint/RedundantSafeNavigation:
|
29
29
|
Enabled: true
|
30
|
+
|
31
|
+
# https://docs.rubocop.org/rubocop/cops_lint.html#lintnoreturninbeginendblocks
|
32
|
+
Lint/NoReturnInBeginEndBlocks:
|
33
|
+
Enabled: true
|
34
|
+
|
35
|
+
# https://docs.rubocop.org/rubocop/cops_lint.html#lintduplicatebranch
|
36
|
+
Lint/DuplicateBranch:
|
37
|
+
Enabled: true
|
38
|
+
|
39
|
+
# https://docs.rubocop.org/rubocop/cops_lint.html#lintemptyclass
|
40
|
+
Lint/EmptyClass:
|
41
|
+
Enabled: true
|
42
|
+
|
43
|
+
# https://docs.rubocop.org/rubocop/cops_lint.html#lintunexpectedblockarity
|
44
|
+
Lint/UnexpectedBlockArity:
|
45
|
+
Enabled: true
|
46
|
+
|
47
|
+
# https://docs.rubocop.org/rubocop/cops_lint.html#lintambiguousassignment
|
48
|
+
Lint/AmbiguousAssignment:
|
49
|
+
Enabled: true
|
50
|
+
|
51
|
+
# https://docs.rubocop.org/rubocop/cops_lint.html#lintdeprecatedconstants
|
52
|
+
Lint/DeprecatedConstants:
|
53
|
+
Enabled: true
|
54
|
+
|
55
|
+
# https://docs.rubocop.org/rubocop/cops_lint.html#lintlambdawithoutliteralblock
|
56
|
+
Lint/LambdaWithoutLiteralBlock:
|
57
|
+
Enabled: true
|
58
|
+
|
59
|
+
# https://docs.rubocop.org/rubocop/cops_lint.html#lintnumberedparameterassignment
|
60
|
+
Lint/NumberedParameterAssignment:
|
61
|
+
Enabled: true
|
62
|
+
|
63
|
+
# https://docs.rubocop.org/rubocop/cops_lint.html#lintorassignmenttoconstant
|
64
|
+
Lint/OrAssignmentToConstant:
|
65
|
+
Enabled: true
|
66
|
+
|
67
|
+
# https://docs.rubocop.org/rubocop/cops_lint.html#lintredundantdirglobsort
|
68
|
+
Lint/RedundantDirGlobSort:
|
69
|
+
Enabled: true
|
70
|
+
|
71
|
+
# https://docs.rubocop.org/rubocop/cops_lint.html#lintsymbolconversion
|
72
|
+
Lint/SymbolConversion:
|
73
|
+
Enabled: true
|
74
|
+
|
75
|
+
# https://docs.rubocop.org/rubocop/cops_lint.html#linttriplequotes
|
76
|
+
Lint/TripleQuotes:
|
77
|
+
Enabled: true
|
data/rubocop-naming.yml
CHANGED
data/rubocop-performance.yml
CHANGED
@@ -4,38 +4,58 @@
|
|
4
4
|
|
5
5
|
require: rubocop-performance
|
6
6
|
|
7
|
-
# https://docs.rubocop.org/rubocop-performance/
|
7
|
+
# https://docs.rubocop.org/rubocop-performance/cops_performance.html#performanceancestorsinclude
|
8
8
|
Performance/AncestorsInclude:
|
9
9
|
Enabled: true
|
10
10
|
|
11
|
-
# https://docs.rubocop.org/rubocop-performance/
|
11
|
+
# https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancebigdecimalwithnumericargument
|
12
12
|
Performance/BigDecimalWithNumericArgument:
|
13
13
|
Enabled: false
|
14
14
|
|
15
|
-
# https://docs.rubocop.org/rubocop-performance/
|
15
|
+
# https://docs.rubocop.org/rubocop-performance/cops_performance.html#performanceredundantsortblock
|
16
16
|
Performance/RedundantSortBlock:
|
17
17
|
Enabled: true
|
18
18
|
|
19
|
-
# https://docs.rubocop.org/rubocop-performance/
|
19
|
+
# https://docs.rubocop.org/rubocop-performance/cops_performance.html#performanceredundantstringchars
|
20
20
|
Performance/RedundantStringChars:
|
21
21
|
Enabled: true
|
22
22
|
|
23
|
-
# https://docs.rubocop.org/rubocop-performance/
|
23
|
+
# https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancereversefirst
|
24
24
|
Performance/ReverseFirst:
|
25
25
|
Enabled: true
|
26
26
|
|
27
|
-
# https://docs.rubocop.org/rubocop-performance/
|
27
|
+
# https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancesortreverse
|
28
28
|
Performance/SortReverse:
|
29
29
|
Enabled: true
|
30
30
|
|
31
|
-
# https://docs.rubocop.org/rubocop-performance/
|
31
|
+
# https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancesqueeze
|
32
32
|
Performance/Squeeze:
|
33
33
|
Enabled: true
|
34
34
|
|
35
|
-
# https://docs.rubocop.org/rubocop-performance/
|
35
|
+
# https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancestringinclude
|
36
36
|
Performance/StringInclude:
|
37
37
|
Enabled: true
|
38
38
|
|
39
|
-
# https://docs.rubocop.org/rubocop-performance/
|
39
|
+
# https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancesum
|
40
40
|
Performance/Sum:
|
41
41
|
Enabled: true
|
42
|
+
|
43
|
+
# https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancearraysemiinfiniterangeslice
|
44
|
+
Performance/ArraySemiInfiniteRangeSlice:
|
45
|
+
Enabled: true
|
46
|
+
|
47
|
+
# https://docs.rubocop.org/rubocop-performance/cops_performance.html#performanceblockgivenwithexplicitblock
|
48
|
+
Performance/BlockGivenWithExplicitBlock:
|
49
|
+
Enabled: true
|
50
|
+
|
51
|
+
# https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancecollectionliteralinloop
|
52
|
+
Performance/CollectionLiteralInLoop:
|
53
|
+
Enabled: true
|
54
|
+
|
55
|
+
# https://docs.rubocop.org/rubocop-performance/cops_performance.html#performanceconstantregexp
|
56
|
+
Performance/ConstantRegexp:
|
57
|
+
Enabled: true
|
58
|
+
|
59
|
+
# https://docs.rubocop.org/rubocop-performance/cops_performance.html#performancemethodobjectasblock
|
60
|
+
Performance/MethodObjectAsBlock:
|
61
|
+
Enabled: true
|
data/rubocop-rails.yml
CHANGED
@@ -109,3 +109,11 @@ Rails/SquishedSQLHeredocs:
|
|
109
109
|
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railswherenot
|
110
110
|
Rails/WhereNot:
|
111
111
|
Enabled: true
|
112
|
+
|
113
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsattributedefaultblockvalue
|
114
|
+
Rails/AttributeDefaultBlockValue:
|
115
|
+
Enabled: true
|
116
|
+
|
117
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railswhereequals
|
118
|
+
Rails/WhereEquals:
|
119
|
+
Enabled: true
|
data/rubocop-style.yml
CHANGED
@@ -48,3 +48,35 @@ Style/BlockComments:
|
|
48
48
|
# https://docs.rubocop.org/rubocop/cops_style.html#styleregexpliteral
|
49
49
|
Style/RegexpLiteral:
|
50
50
|
AllowInnerSlashes: true
|
51
|
+
|
52
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#stylecollectioncompact
|
53
|
+
Style/CollectionCompact:
|
54
|
+
Enabled: true
|
55
|
+
|
56
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#stylenegatedifelsecondition
|
57
|
+
Style/NegatedIfElseCondition:
|
58
|
+
Enabled: true
|
59
|
+
|
60
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#stylenillambda
|
61
|
+
Style/NilLambda:
|
62
|
+
Enabled: true
|
63
|
+
|
64
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#styleredundantargument
|
65
|
+
Style/RedundantArgument:
|
66
|
+
Enabled: true
|
67
|
+
|
68
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#styleendlessmethod
|
69
|
+
Style/EndlessMethod:
|
70
|
+
Enabled: true
|
71
|
+
|
72
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#stylehashconversion
|
73
|
+
Style/HashConversion:
|
74
|
+
Enabled: true
|
75
|
+
|
76
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#stylehashexcept
|
77
|
+
Style/HashExcept:
|
78
|
+
Enabled: true
|
79
|
+
|
80
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#styleifwithbooleanliteralbranches
|
81
|
+
Style/IfWithBooleanLiteralBranches:
|
82
|
+
Enabled: 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: 1.
|
4
|
+
version: 1.5.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:
|
11
|
+
date: 2021-02-25 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: '1.
|
19
|
+
version: '1.10'
|
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: '1.
|
26
|
+
version: '1.10'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-faker
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,28 +44,28 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '1.
|
47
|
+
version: '1.9'
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '1.
|
54
|
+
version: '1.9'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rubocop-rails
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '2.
|
61
|
+
version: '2.9'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '2.
|
68
|
+
version: '2.9'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: rubocop-rake
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,14 +86,14 @@ dependencies:
|
|
86
86
|
requirements:
|
87
87
|
- - "~>"
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version: 2.
|
89
|
+
version: '2.2'
|
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: 2.
|
96
|
+
version: '2.2'
|
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/v1.
|
129
|
-
changelog_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware/blob/v1.
|
128
|
+
source_code_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware/tree/v1.5.0
|
129
|
+
changelog_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware/blob/v1.5.0/CHANGELOG.md
|
130
130
|
homepage_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware
|
131
131
|
post_install_message:
|
132
132
|
rdoc_options:
|
@@ -144,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
144
|
- !ruby/object:Gem::Version
|
145
145
|
version: '0'
|
146
146
|
requirements: []
|
147
|
-
rubygems_version: 3.
|
147
|
+
rubygems_version: 3.1.2
|
148
148
|
signing_key:
|
149
149
|
specification_version: 4
|
150
150
|
summary: Default Rubocop configuration used in NoSoloSoftware developments
|