rubocop-nosolosoftware 0.4.0 → 0.9.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 +74 -3
- data/README.md +31 -5
- data/rubocop-bundler.yml +0 -4
- data/rubocop-faker.yml +5 -0
- data/rubocop-layout.yml +16 -0
- data/rubocop-lint.yml +84 -0
- data/rubocop-mongoid.yml +7 -0
- data/rubocop-performance.yml +36 -0
- data/rubocop-rails.yml +75 -12
- data/rubocop-rake.yml +5 -0
- data/rubocop-rspec.yml +34 -0
- data/rubocop-style.yml +103 -19
- metadata +28 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9092a802db6538408a05b292f2ae17f594c68373687eb5e37f0a6126e220edb
|
4
|
+
data.tar.gz: 4de86da8aa97ed88050ca982f414d3e002939134a7e767e98e98545603ecb143
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 67f0752040c2c31d9257864766d9fa58365f9a72e3e6f8318c00d90899f8a888fe049b213864b32e5e0048673109dc65deacbe49ec14e58d893237792a5eea28
|
7
|
+
data.tar.gz: 8c802b977471ffaac67651a46e9287a4c1c625383fa553044231bfef2be59e8c9646011e1db1802cb0eb45d232e590049c5e1343e00bfbb06f192bfeab02a5f4
|
data/CHANGELOG.md
CHANGED
@@ -5,7 +5,81 @@ 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
|
+
## 0.9.0 - 2020-09-18
|
9
|
+
### Added
|
10
|
+
- Added new rules introduced in the last version.
|
11
|
+
- Layout/BeginEndAlignment (0.91)
|
12
|
+
- Lint/ConstantDefinitionInBlock (0.91)
|
13
|
+
- Lint/DuplicateRequire (0.90)
|
14
|
+
- Lint/EmptyFile (0.90)
|
15
|
+
- Lint/IdentityComparison (0.91)
|
16
|
+
- Lint/TrailingCommaInAttributeDeclaration (0.90)
|
17
|
+
- Lint/UselessMethodDefinition (0.90)
|
18
|
+
- Lint/UselessTimes (0.91)
|
19
|
+
- Style/CombinableLoops (0.90)
|
20
|
+
- Style/KeywordParametersOrder (0.90)
|
21
|
+
- Style/RedundantSelfAssignment (0.90)
|
22
|
+
- Style/SoleNestedConditional (0.89)
|
23
|
+
- Performance/Sum (1.8)
|
24
|
+
- Rails/AfterCommitOverride (2.8)
|
25
|
+
- Rails/SquishedSQLHeredocs (2.8)
|
26
|
+
- Rails/WhereNot (2.8)
|
8
27
|
|
28
|
+
### Changed
|
29
|
+
- Updated all the extensions.
|
30
|
+
|
31
|
+
## 0.8.0 - 2020-08-07
|
32
|
+
|
33
|
+
### Added
|
34
|
+
- Added new rules introduced in the last version.
|
35
|
+
- Lint/BinaryOperatorWithIdenticalOperands (0.89)
|
36
|
+
- Lint/DuplicateRescueException (0.89)
|
37
|
+
- Lint/EmptyConditionalBody (0.89)
|
38
|
+
- Lint/FloatComparison (0.89)
|
39
|
+
- Lint/MissingSuper (0.89)
|
40
|
+
- Lint/OutOfRangeRegexpRef (0.89)
|
41
|
+
- Lint/SelfAssignment (0.89)
|
42
|
+
- Lint/TopLevelReturnWithArgument (0.89)
|
43
|
+
- Lint/UnreachableLoop (0.89)
|
44
|
+
- Style/ExplicitBlockArgument (0.89)
|
45
|
+
- Style/GlobalStdStream (0.89)
|
46
|
+
- Style/OptionalBooleanParameter (0.89)
|
47
|
+
- Style/SingleArgumentDig (0.89)
|
48
|
+
- Style/StringConcatenation (0.89)
|
49
|
+
|
50
|
+
## 0.7.0 - 2020-08-03
|
51
|
+
|
52
|
+
### Added
|
53
|
+
- Added rubocop-faker as new extension
|
54
|
+
|
55
|
+
### Changed
|
56
|
+
- Updated all the extensions, and configured new rules
|
57
|
+
|
58
|
+
## 0.6.0 - 2020-07-13
|
59
|
+
|
60
|
+
### Added
|
61
|
+
- Added new rules introduced in the last version.
|
62
|
+
- Lint/DeprecatedOpenSSLConstant (0.84)
|
63
|
+
- Lint/MixedRegexpCaptureTypes (0.85)
|
64
|
+
- Style/AccessorGrouping (0.87)
|
65
|
+
- Style/BisectedAttrAccessor (0.87)
|
66
|
+
- Style/RedundantAssignment (0.87)
|
67
|
+
- Style/RedundantFetchBlock (0.86)
|
68
|
+
- Style/RedundantRegexpCharacterClass (0.85)
|
69
|
+
- Style/RedundantRegexpEscape (0.85)
|
70
|
+
- Performance/AncestorsInclude (1.7)
|
71
|
+
- Performance/BigDecimalWithNumericArgument (1.7)
|
72
|
+
- Performance/RedundantSortBlock (1.7)
|
73
|
+
- Performance/RedundantStringChars (1.7)
|
74
|
+
- Performance/ReverseFirst (1.7)
|
75
|
+
- Performance/SortReverse (1.7)
|
76
|
+
- Performance/Squeeze (1.7)
|
77
|
+
- Performance/StringInclude (1.7)
|
78
|
+
|
79
|
+
## 0.5.0 - 2020-07-07
|
80
|
+
|
81
|
+
### Changed
|
82
|
+
- Actualizadas reglas
|
9
83
|
|
10
84
|
## 0.4.0 - 2020-02-26
|
11
85
|
|
@@ -26,6 +100,3 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
26
100
|
## [0.1.0] - 2019-12-03
|
27
101
|
|
28
102
|
First version of this gem.
|
29
|
-
|
30
|
-
|
31
|
-
This changelog was generated using [ChangeFu](https://github.com/javierav/changefu).
|
data/README.md
CHANGED
@@ -26,16 +26,16 @@ $ gem install rubocop-nosolosoftware
|
|
26
26
|
|
27
27
|
## Usage
|
28
28
|
|
29
|
-
Include the following in your `.rubocop.yml
|
29
|
+
Include the following in your `.rubocop.yml`
|
30
30
|
|
31
|
-
**For Ruby
|
31
|
+
**For Ruby**:
|
32
32
|
|
33
33
|
```yaml
|
34
34
|
inherit_gem:
|
35
35
|
rubocop-nosolosoftware: rubocop-default.yml
|
36
36
|
```
|
37
37
|
|
38
|
-
**For Rails
|
38
|
+
**For Rails**:
|
39
39
|
|
40
40
|
```yaml
|
41
41
|
inherit_gem:
|
@@ -44,7 +44,7 @@ inherit_gem:
|
|
44
44
|
- rubocop-rails.yml
|
45
45
|
```
|
46
46
|
|
47
|
-
**Optional Rake and Rspec rules
|
47
|
+
**Optional Rake, Faker and Rspec rules**:
|
48
48
|
|
49
49
|
```yaml
|
50
50
|
inherit_gem:
|
@@ -53,6 +53,32 @@ inherit_gem:
|
|
53
53
|
- rubocop-rails.yml
|
54
54
|
- rubocop-rake.yml
|
55
55
|
- rubocop-rspec.yml
|
56
|
+
- rubocop-faker.yml
|
57
|
+
```
|
58
|
+
|
59
|
+
**For Mongoid projects**:
|
60
|
+
|
61
|
+
```yaml
|
62
|
+
inherit_gem:
|
63
|
+
rubocop-nosolosoftware:
|
64
|
+
- rubocop-default.yml
|
65
|
+
- rubocop-rails.yml
|
66
|
+
- rubocop-rake.yml
|
67
|
+
- rubocop-rspec.yml
|
68
|
+
- rubocop-faker.yml
|
69
|
+
- rubocop-mongoid.yml
|
70
|
+
```
|
71
|
+
|
72
|
+
|
73
|
+
### Inheritance of array attributes
|
74
|
+
|
75
|
+
Don't forget to include the following in your configuration file:
|
76
|
+
|
77
|
+
```yaml
|
78
|
+
inherit_mode:
|
79
|
+
merge:
|
80
|
+
- Exclude
|
81
|
+
- Prefixes
|
56
82
|
```
|
57
83
|
|
58
84
|
|
@@ -72,4 +98,4 @@ be a safe, welcoming space for collaboration, and contributors are expected to a
|
|
72
98
|
|
73
99
|
## License
|
74
100
|
|
75
|
-
Copyright (c) 2019-2020 NoSoloSoftware Network S.L. - Released under [MIT](LICENSE) license
|
101
|
+
Copyright (c) 2019-2020 NoSoloSoftware Network S.L. - Released under [MIT](LICENSE) license.
|
data/rubocop-bundler.yml
CHANGED
data/rubocop-faker.yml
ADDED
data/rubocop-layout.yml
CHANGED
@@ -2,6 +2,14 @@
|
|
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
|
+
|
5
13
|
# https://rubocop.readthedocs.io/en/latest/cops_layout/#layoutfirstarrayelementindentation
|
6
14
|
Layout/FirstArrayElementIndentation:
|
7
15
|
EnforcedStyle: consistent
|
@@ -10,6 +18,10 @@ Layout/FirstArrayElementIndentation:
|
|
10
18
|
Layout/LineLength:
|
11
19
|
Max: 100
|
12
20
|
|
21
|
+
# https://rubocop.readthedocs.io/en/stable/cops_layout/#layoutmultilinemethodcallindentation
|
22
|
+
Layout/MultilineMethodCallIndentation:
|
23
|
+
EnforcedStyle: indented_relative_to_receiver
|
24
|
+
|
13
25
|
# https://rubocop.readthedocs.io/en/latest/cops_layout/#layoutspacearoundequalsinparameterdefault
|
14
26
|
Layout/SpaceAroundEqualsInParameterDefault:
|
15
27
|
EnforcedStyle: no_space
|
@@ -17,3 +29,7 @@ Layout/SpaceAroundEqualsInParameterDefault:
|
|
17
29
|
# https://rubocop.readthedocs.io/en/latest/cops_layout/#layoutspaceinsidehashliteralbraces
|
18
30
|
Layout/SpaceInsideHashLiteralBraces:
|
19
31
|
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
@@ -1,3 +1,87 @@
|
|
1
1
|
#
|
2
2
|
## https://rubocop.readthedocs.io/en/latest/cops_lint/
|
3
3
|
#
|
4
|
+
|
5
|
+
# https://docs.rubocop.org/rubocop/cops_lint.html#lintraiseexception
|
6
|
+
Lint/RaiseException:
|
7
|
+
Enabled: true
|
8
|
+
|
9
|
+
# https://docs.rubocop.org/rubocop/cops_lint.html#lintstructnewoverride
|
10
|
+
Lint/StructNewOverride:
|
11
|
+
Enabled: true
|
12
|
+
|
13
|
+
# https://docs.rubocop.org/rubocop/cops_lint.html#lintdeprecatedopensslconstant
|
14
|
+
Lint/DeprecatedOpenSSLConstant:
|
15
|
+
Enabled: true
|
16
|
+
|
17
|
+
# https://docs.rubocop.org/rubocop/cops_lint.html#lintmixedregexpcapturetypes
|
18
|
+
Lint/MixedRegexpCaptureTypes:
|
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:
|
87
|
+
Enabled: true
|
data/rubocop-mongoid.yml
ADDED
data/rubocop-performance.yml
CHANGED
@@ -3,3 +3,39 @@
|
|
3
3
|
#
|
4
4
|
|
5
5
|
require: rubocop-performance
|
6
|
+
|
7
|
+
# https://docs.rubocop.org/rubocop-performance/1.7/cops_performance.html#performanceancestorsinclude
|
8
|
+
Performance/AncestorsInclude:
|
9
|
+
Enabled: true
|
10
|
+
|
11
|
+
# https://docs.rubocop.org/rubocop-performance/1.7/cops_performance.html#performancebigdecimalwithnumericargument
|
12
|
+
Performance/BigDecimalWithNumericArgument:
|
13
|
+
Enabled: false
|
14
|
+
|
15
|
+
# https://docs.rubocop.org/rubocop-performance/1.7/cops_performance.html#performanceredundantsortblock
|
16
|
+
Performance/RedundantSortBlock:
|
17
|
+
Enabled: true
|
18
|
+
|
19
|
+
# https://docs.rubocop.org/rubocop-performance/1.7/cops_performance.html#performanceredundantstringchars
|
20
|
+
Performance/RedundantStringChars:
|
21
|
+
Enabled: true
|
22
|
+
|
23
|
+
# https://docs.rubocop.org/rubocop-performance/1.7/cops_performance.html#performancereversefirst
|
24
|
+
Performance/ReverseFirst:
|
25
|
+
Enabled: true
|
26
|
+
|
27
|
+
# https://docs.rubocop.org/rubocop-performance/1.7/cops_performance.html#performancesortreverse
|
28
|
+
Performance/SortReverse:
|
29
|
+
Enabled: true
|
30
|
+
|
31
|
+
# https://docs.rubocop.org/rubocop-performance/1.7/cops_performance.html#performancesqueeze
|
32
|
+
Performance/Squeeze:
|
33
|
+
Enabled: true
|
34
|
+
|
35
|
+
# https://docs.rubocop.org/rubocop-performance/1.7/cops_performance.html#performancestringinclude
|
36
|
+
Performance/StringInclude:
|
37
|
+
Enabled: true
|
38
|
+
|
39
|
+
# https://docs.rubocop.org/rubocop-performance/1.8/cops_performance.html#performancesum
|
40
|
+
Performance/Sum:
|
41
|
+
Enabled: true
|
data/rubocop-rails.yml
CHANGED
@@ -9,33 +9,36 @@ Rails:
|
|
9
9
|
|
10
10
|
# https://docs.rubocop.org/projects/rails/en/latest/cops_rails/#railshttpstatus
|
11
11
|
Rails/HttpStatus:
|
12
|
-
|
12
|
+
EnforcedStyle: numeric
|
13
13
|
|
14
|
-
# https://
|
15
|
-
Rails/
|
16
|
-
|
17
|
-
|
18
|
-
# https://docs.rubocop.org/projects/rails/en/latest/cops_rails/#railsfindby
|
19
|
-
Rails/FindBy:
|
20
|
-
Enabled: false
|
14
|
+
# https://rubocop-rails.readthedocs.io/en/stable/cops_rails/#railsrakeenvironment
|
15
|
+
Rails/RakeEnvironment:
|
16
|
+
Exclude:
|
17
|
+
- "**/lib/tasks/auto_annotate_models.rake"
|
21
18
|
|
22
19
|
AllCops:
|
23
20
|
Exclude:
|
24
|
-
- "**/db/schema.rb"
|
25
21
|
- "**/bin/**/*"
|
22
|
+
- "**/db/schema.rb"
|
23
|
+
|
24
|
+
# https://rubocop.readthedocs.io/en/stable/cops_layout/#layouthashalignment
|
25
|
+
Layout/HashAlignment:
|
26
|
+
Exclude:
|
27
|
+
- "**/lib/tasks/auto_annotate_models.rake"
|
26
28
|
|
27
29
|
# https://rubocop.readthedocs.io/en/latest/cops_metrics/#metricsblocklength
|
28
30
|
Metrics/BlockLength:
|
29
31
|
Exclude:
|
30
|
-
- "**/spec/**/*.rb"
|
31
|
-
- "**/config/routes.rb"
|
32
32
|
- "**/config/environments/*.rb"
|
33
|
+
- "**/config/routes.rb"
|
34
|
+
- "**/lib/tasks/auto_annotate_models.rake"
|
35
|
+
- "**/spec/**/*.rb"
|
33
36
|
|
34
37
|
# https://rubocop.readthedocs.io/en/latest/cops_metrics/#metricsmodulelength
|
35
38
|
Metrics/ModuleLength:
|
36
39
|
Exclude:
|
37
|
-
- "**/spec/**/*.rb"
|
38
40
|
- "**/config/routes.rb"
|
41
|
+
- "**/spec/**/*.rb"
|
39
42
|
|
40
43
|
# https://www.rubocop.org/en/stable/cops_naming/#namingfilename
|
41
44
|
Naming/FileName:
|
@@ -46,3 +49,63 @@ Naming/FileName:
|
|
46
49
|
Style/SymbolProc:
|
47
50
|
Exclude:
|
48
51
|
- "**/config/**/*.rb"
|
52
|
+
|
53
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsactiverecordcallbacksorder
|
54
|
+
Rails/ActiveRecordCallbacksOrder:
|
55
|
+
Enabled: true
|
56
|
+
|
57
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsfindbyid
|
58
|
+
Rails/FindById:
|
59
|
+
Enabled: true
|
60
|
+
|
61
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsinquiry
|
62
|
+
Rails/Inquiry:
|
63
|
+
Enabled: true
|
64
|
+
|
65
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsmailername
|
66
|
+
Rails/MailerName:
|
67
|
+
Enabled: true
|
68
|
+
|
69
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsmatchroute
|
70
|
+
Rails/MatchRoute:
|
71
|
+
Enabled: true
|
72
|
+
|
73
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsnegateinclude
|
74
|
+
Rails/NegateInclude:
|
75
|
+
Enabled: true
|
76
|
+
|
77
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railspick
|
78
|
+
Rails/Pluck:
|
79
|
+
Enabled: true
|
80
|
+
|
81
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railspluckinwhere
|
82
|
+
Rails/PluckInWhere:
|
83
|
+
Enabled: true
|
84
|
+
|
85
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsrenderinline
|
86
|
+
Rails/RenderInline:
|
87
|
+
Enabled: true
|
88
|
+
|
89
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsrenderplaintext
|
90
|
+
Rails/RenderPlainText:
|
91
|
+
Enabled: true
|
92
|
+
|
93
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsshorti18n
|
94
|
+
Rails/ShortI18n:
|
95
|
+
Enabled: true
|
96
|
+
|
97
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railswhereexists
|
98
|
+
Rails/WhereExists:
|
99
|
+
Enabled: true
|
100
|
+
|
101
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railsaftercommitoverride
|
102
|
+
Rails/AfterCommitOverride:
|
103
|
+
Enabled: true
|
104
|
+
|
105
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railssquishedsqlheredocs
|
106
|
+
Rails/SquishedSQLHeredocs:
|
107
|
+
Enabled: true
|
108
|
+
|
109
|
+
# https://docs.rubocop.org/rubocop-rails/cops_rails.html#railswherenot
|
110
|
+
Rails/WhereNot:
|
111
|
+
Enabled: true
|
data/rubocop-rake.yml
CHANGED
data/rubocop-rspec.yml
CHANGED
@@ -4,6 +4,40 @@
|
|
4
4
|
|
5
5
|
require: rubocop-rspec
|
6
6
|
|
7
|
+
# https://rubocop-rspec.readthedocs.io/en/latest/cops_rspec/#rspeccontextwording
|
8
|
+
RSpec/ContextWording:
|
9
|
+
Prefixes:
|
10
|
+
- and
|
11
|
+
|
12
|
+
# https://rubocop-rspec.readthedocs.io/en/latest/cops_rspec/#rspecdescribeclass
|
13
|
+
RSpec/DescribeClass:
|
14
|
+
Exclude:
|
15
|
+
- "**/spec/requests/**/*.rb"
|
16
|
+
- "**/spec/system/**/*.rb"
|
17
|
+
- "**/spec/features/**/*.rb"
|
18
|
+
|
19
|
+
# https://rubocop-rspec.readthedocs.io/en/latest/cops_rspec/#rspecexamplelength
|
20
|
+
RSpec/ExampleLength:
|
21
|
+
Exclude:
|
22
|
+
- "**/spec/requests/**/*.rb"
|
23
|
+
- "**/spec/system/**/*.rb"
|
24
|
+
- "**/spec/features/**/*.rb"
|
25
|
+
|
26
|
+
# https://rubocop-rspec.readthedocs.io/en/latest/cops_rspec/#rspecimplicitsubject
|
27
|
+
RSpec/ImplicitSubject:
|
28
|
+
EnforcedStyle: single_statement_only
|
29
|
+
|
30
|
+
# https://rubocop-rspec.readthedocs.io/en/latest/cops_rspec/#rspecmultipleexpectations
|
31
|
+
RSpec/MultipleExpectations:
|
32
|
+
Exclude:
|
33
|
+
- "**/spec/requests/**/*.rb"
|
34
|
+
- "**/spec/system/**/*.rb"
|
35
|
+
- "**/spec/features/**/*.rb"
|
36
|
+
|
37
|
+
# https://rubocop-rspec.readthedocs.io/en/latest/cops_rspec/#rspecnestedgroups
|
38
|
+
RSpec/NestedGroups:
|
39
|
+
Max: 5
|
40
|
+
|
7
41
|
# https://rubocop.readthedocs.io/en/latest/cops_style/#styleblockcomments
|
8
42
|
Style/BlockComments:
|
9
43
|
Exclude:
|
data/rubocop-style.yml
CHANGED
@@ -6,34 +6,118 @@
|
|
6
6
|
Style/AsciiComments:
|
7
7
|
Enabled: false
|
8
8
|
|
9
|
-
# https://rubocop.readthedocs.io/en/latest/cops_style/#
|
10
|
-
Style/
|
11
|
-
|
9
|
+
# https://rubocop.readthedocs.io/en/latest/cops_style/#styleblockdelimiters
|
10
|
+
Style/BlockDelimiters:
|
11
|
+
EnforcedStyle: braces_for_chaining
|
12
12
|
|
13
|
-
# https://rubocop.
|
13
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#styledocumentation
|
14
14
|
Style/Documentation:
|
15
15
|
Enabled: false
|
16
16
|
|
17
|
-
# https://rubocop.
|
18
|
-
Style/
|
19
|
-
Enabled:
|
17
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#styleexponentialnotation
|
18
|
+
Style/ExponentialNotation:
|
19
|
+
Enabled: true
|
20
20
|
|
21
|
-
# https://rubocop.
|
22
|
-
Style/FormatStringToken:
|
23
|
-
Enabled: false
|
24
|
-
|
25
|
-
# https://rubocop.readthedocs.io/en/latest/cops_style/#stylefrozenstringliteralcomment
|
21
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#stylefrozenstringliteralcommetn
|
26
22
|
Style/FrozenStringLiteralComment:
|
27
23
|
Enabled: false
|
28
24
|
|
29
|
-
# https://rubocop.
|
30
|
-
Style/
|
31
|
-
Enabled:
|
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
32
|
|
33
|
-
# https://rubocop.
|
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
|
34
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
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#styleaccessorgrouping
|
46
|
+
Style/AccessorGrouping:
|
35
47
|
Enabled: false
|
36
48
|
|
37
|
-
# https://rubocop.
|
38
|
-
Style/
|
39
|
-
|
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
|
+
# https://docs.rubocop.org/rubocop/cops_style.html#stylearraycoercion
|
70
|
+
Style/ArrayCoercion:
|
71
|
+
Enabled: true
|
72
|
+
|
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:
|
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
|
104
|
+
|
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
|
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
|
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.
|
4
|
+
version: 0.9.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-
|
11
|
+
date: 2020-09-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,42 +16,56 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.91'
|
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.
|
26
|
+
version: '0.91'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rubocop-faker
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.1'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.1'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: rubocop-performance
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
30
44
|
requirements:
|
31
45
|
- - "~>"
|
32
46
|
- !ruby/object:Gem::Version
|
33
|
-
version: '1.
|
47
|
+
version: '1.8'
|
34
48
|
type: :runtime
|
35
49
|
prerelease: false
|
36
50
|
version_requirements: !ruby/object:Gem::Requirement
|
37
51
|
requirements:
|
38
52
|
- - "~>"
|
39
53
|
- !ruby/object:Gem::Version
|
40
|
-
version: '1.
|
54
|
+
version: '1.8'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: rubocop-rails
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
44
58
|
requirements:
|
45
59
|
- - "~>"
|
46
60
|
- !ruby/object:Gem::Version
|
47
|
-
version: '2.
|
61
|
+
version: '2.8'
|
48
62
|
type: :runtime
|
49
63
|
prerelease: false
|
50
64
|
version_requirements: !ruby/object:Gem::Requirement
|
51
65
|
requirements:
|
52
66
|
- - "~>"
|
53
67
|
- !ruby/object:Gem::Version
|
54
|
-
version: '2.
|
68
|
+
version: '2.8'
|
55
69
|
- !ruby/object:Gem::Dependency
|
56
70
|
name: rubocop-rake
|
57
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,14 +86,14 @@ dependencies:
|
|
72
86
|
requirements:
|
73
87
|
- - "~>"
|
74
88
|
- !ruby/object:Gem::Version
|
75
|
-
version: '1.
|
89
|
+
version: '1.43'
|
76
90
|
type: :runtime
|
77
91
|
prerelease: false
|
78
92
|
version_requirements: !ruby/object:Gem::Requirement
|
79
93
|
requirements:
|
80
94
|
- - "~>"
|
81
95
|
- !ruby/object:Gem::Version
|
82
|
-
version: '1.
|
96
|
+
version: '1.43'
|
83
97
|
description: ''
|
84
98
|
email: jaranda@nosolosoftware.es
|
85
99
|
executables: []
|
@@ -94,10 +108,12 @@ files:
|
|
94
108
|
- rubocop-all.yml
|
95
109
|
- rubocop-bundler.yml
|
96
110
|
- rubocop-default.yml
|
111
|
+
- rubocop-faker.yml
|
97
112
|
- rubocop-gemspec.yml
|
98
113
|
- rubocop-layout.yml
|
99
114
|
- rubocop-lint.yml
|
100
115
|
- rubocop-metrics.yml
|
116
|
+
- rubocop-mongoid.yml
|
101
117
|
- rubocop-naming.yml
|
102
118
|
- rubocop-performance.yml
|
103
119
|
- rubocop-rails.yml
|
@@ -109,8 +125,8 @@ homepage: https://github.com/nosolosoftware/rubocop-nosolosoftware
|
|
109
125
|
licenses:
|
110
126
|
- MIT
|
111
127
|
metadata:
|
112
|
-
source_code_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware/tree/v0.
|
113
|
-
changelog_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware/blob/v0.
|
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
|
114
130
|
homepage_uri: https://github.com/nosolosoftware/rubocop-nosolosoftware
|
115
131
|
post_install_message:
|
116
132
|
rdoc_options:
|