boxt_ruby_style_guide 7.0.4 → 7.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/default.yml +24 -18
- data/pending.yml +101 -90
- data/rails.yml +18 -22
- metadata +30 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: db37fda2704f058428f66ef3227058dc67c4abd08df1829c5674ff827079bbf6
|
4
|
+
data.tar.gz: 90302060b3ae806b43f4cce6165744e6b5af59566176dffbc878875a876038c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5e2bcb595827b288a7d6f9d068ff46036f25fc93bd3e39f3f481d8e5eb6ddbe94f23f65dd8554383cfc009dc4ff9ecf19d00a6564aa45181af77971660826bf3
|
7
|
+
data.tar.gz: 147a875753ac204afb7b063f00e10047ec7ef1c8a39c28827ded7d2515b0f6076c418a1e11fb9b3c2ab2a93b2220200bc573fa04f96c9523bf545a90b1f4e223
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
7.0
|
1
|
+
7.3.0
|
data/default.yml
CHANGED
@@ -1,33 +1,39 @@
|
|
1
1
|
AllCops:
|
2
|
-
TargetRubyVersion: 2.7.1
|
3
2
|
Exclude:
|
4
3
|
- "**/*/schema.rb"
|
5
|
-
-
|
6
|
-
-
|
7
|
-
-
|
8
|
-
-
|
4
|
+
- Gemfile.lock
|
5
|
+
- node_modules/**/*
|
6
|
+
- tmp/**/*
|
7
|
+
- vendor/**/*
|
8
|
+
TargetRubyVersion: 2.7.1
|
9
9
|
Layout/LineLength:
|
10
|
-
Max: 120 # Increase line length to 120
|
11
10
|
Exclude:
|
12
|
-
-
|
11
|
+
- config/routes.rb
|
12
|
+
Max: 120
|
13
|
+
Metrics/AbcSize:
|
14
|
+
Exclude:
|
15
|
+
- db/migrate/**/*
|
13
16
|
Metrics/BlockLength:
|
14
17
|
Exclude:
|
15
18
|
- "*.gemspec"
|
16
|
-
-
|
17
|
-
-
|
18
|
-
-
|
19
|
-
-
|
19
|
+
- Gemfile
|
20
|
+
- config/routes.rb
|
21
|
+
- db/migrate/**/*
|
22
|
+
- spec/**/*
|
23
|
+
- test/**/*
|
20
24
|
Metrics/ClassLength:
|
21
25
|
Exclude:
|
22
|
-
-
|
23
|
-
-
|
26
|
+
- db/migrate/**/*
|
27
|
+
- spec/**/*
|
28
|
+
- test/**/*
|
24
29
|
Metrics/MethodLength:
|
25
30
|
Exclude:
|
26
|
-
-
|
27
|
-
-
|
31
|
+
- db/migrate/**/*
|
32
|
+
- spec/**/*
|
33
|
+
- test/**/*
|
34
|
+
Style/Documentation:
|
35
|
+
Enabled: false
|
28
36
|
Style/DoubleNegation:
|
29
37
|
Enabled: false
|
30
|
-
Style/Documentation:
|
31
|
-
Enabled: false # Disable Style/Documentation because...
|
32
38
|
Style/StringLiterals:
|
33
|
-
EnforcedStyle: double_quotes
|
39
|
+
EnforcedStyle: double_quotes
|
data/pending.yml
CHANGED
@@ -1,92 +1,103 @@
|
|
1
1
|
# These cops are currently pending and will be enabled by default at some point, but adding for now to stop Rubocop
|
2
2
|
# or VSCode complaining...
|
3
|
-
|
4
|
-
|
5
|
-
Layout/
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
Lint/
|
12
|
-
|
13
|
-
Lint/
|
14
|
-
|
15
|
-
Lint/
|
16
|
-
|
17
|
-
Lint/
|
18
|
-
|
19
|
-
Lint/
|
20
|
-
|
21
|
-
Lint/
|
22
|
-
|
23
|
-
Lint/
|
24
|
-
|
25
|
-
Lint/
|
26
|
-
|
27
|
-
Lint/
|
28
|
-
|
29
|
-
Lint/
|
30
|
-
|
31
|
-
Lint/
|
32
|
-
|
33
|
-
Lint/
|
34
|
-
|
35
|
-
Lint/
|
36
|
-
|
37
|
-
Lint/
|
38
|
-
|
39
|
-
Lint/
|
40
|
-
|
41
|
-
Lint/
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
Style/
|
54
|
-
|
55
|
-
Style/
|
56
|
-
|
57
|
-
Style/
|
58
|
-
|
59
|
-
Style/
|
60
|
-
|
61
|
-
Style/
|
62
|
-
|
63
|
-
Style/
|
64
|
-
|
65
|
-
Style/
|
66
|
-
|
67
|
-
Style/
|
68
|
-
|
69
|
-
Style/
|
70
|
-
|
71
|
-
Style/
|
72
|
-
|
73
|
-
Style/
|
74
|
-
|
75
|
-
Style/
|
76
|
-
|
77
|
-
Style/
|
78
|
-
|
79
|
-
Style/
|
80
|
-
|
81
|
-
Style/
|
82
|
-
|
83
|
-
Style/
|
84
|
-
|
85
|
-
Style/
|
86
|
-
|
87
|
-
Style/
|
88
|
-
|
89
|
-
Style/
|
90
|
-
|
91
|
-
Style/
|
92
|
-
|
3
|
+
AllCops:
|
4
|
+
NewCops: enable
|
5
|
+
# Layout/BeginEndAlignment: # (new in 0.91)
|
6
|
+
# Enabled: true
|
7
|
+
# Layout/EmptyLinesAroundAttributeAccessor: # (new in 0.83)
|
8
|
+
# Enabled: true
|
9
|
+
# Layout/SpaceAroundMethodCallOperator: # (new in 0.82)
|
10
|
+
# Enabled: true
|
11
|
+
# Lint/BinaryOperatorWithIdenticalOperands: # (new in 0.89)
|
12
|
+
# Enabled: true
|
13
|
+
# Lint/ConstantDefinitionInBlock: # (new in 0.91)
|
14
|
+
# Enabled: true
|
15
|
+
# Lint/DeprecatedOpenSSLConstant: # (new in 0.84)
|
16
|
+
# Enabled: true
|
17
|
+
# Lint/DuplicateElsifCondition: # (new in 0.88)
|
18
|
+
# Enabled: true
|
19
|
+
# Lint/DuplicateRequire: # (new in 0.90)
|
20
|
+
# Enabled: true
|
21
|
+
# Lint/DuplicateRescueException: # (new in 0.89)
|
22
|
+
# Enabled: true
|
23
|
+
# Lint/EmptyConditionalBody: # (new in 0.89)
|
24
|
+
# Enabled: true
|
25
|
+
# Lint/EmptyFile: # (new in 0.90)
|
26
|
+
# Enabled: true
|
27
|
+
# Lint/FloatComparison: # (new in 0.89)
|
28
|
+
# Enabled: true
|
29
|
+
# Lint/IdentityComparison: # (new in 0.91)
|
30
|
+
# Enabled: true
|
31
|
+
# Lint/MissingSuper: # (new in 0.89)
|
32
|
+
# Enabled: true
|
33
|
+
# Lint/MixedRegexpCaptureTypes: # (new in 0.85)
|
34
|
+
# Enabled: true
|
35
|
+
# Lint/OutOfRangeRegexpRef: # (new in 0.89)
|
36
|
+
# Enabled: true
|
37
|
+
# Lint/RaiseException: # (new in 0.81)
|
38
|
+
# Enabled: true
|
39
|
+
# Lint/SelfAssignment: # (new in 0.89)
|
40
|
+
# Enabled: true
|
41
|
+
# Lint/StructNewOverride: # (new in 0.81)
|
42
|
+
# Enabled: true
|
43
|
+
# Lint/TopLevelReturnWithArgument: # (new in 0.89)
|
44
|
+
# Enabled: true
|
45
|
+
# Lint/TrailingCommaInAttributeDeclaration: # (new in 0.90)
|
46
|
+
# Enabled: true
|
47
|
+
# Lint/UnreachableLoop: # (new in 0.89)
|
48
|
+
# Enabled: true
|
49
|
+
# Lint/UselessMethodDefinition: # (new in 0.90)
|
50
|
+
# Enabled: true
|
51
|
+
# Lint/UselessTimes: # (new in 0.91)
|
52
|
+
# Enabled: true
|
53
|
+
# Style/AccessorGrouping: # (new in 0.87)
|
54
|
+
# Enabled: true
|
55
|
+
# Style/ArrayCoercion: # (new in 0.88)
|
56
|
+
# Enabled: true
|
57
|
+
# Style/BisectedAttrAccessor: # (new in 0.87)
|
58
|
+
# Enabled: true
|
59
|
+
# Style/CaseLikeIf: # (new in 0.88)
|
60
|
+
# Enabled: true
|
61
|
+
# Style/CombinableLoops: # (new in 0.90)
|
62
|
+
# Enabled: true
|
63
|
+
# Style/ExplicitBlockArgument: # (new in 0.89)
|
64
|
+
# Enabled: true
|
65
|
+
# Style/ExponentialNotation: # (new in 0.82)
|
66
|
+
# Enabled: true
|
67
|
+
# Style/GlobalStdStream: # (new in 0.89)
|
68
|
+
# Enabled: true
|
69
|
+
# Style/HashAsLastArrayItem: # (new in 0.88)
|
70
|
+
# Enabled: true
|
71
|
+
# Style/HashEachMethods: # (new in 0.80)
|
72
|
+
# Enabled: true
|
73
|
+
# Style/HashLikeCase: # (new in 0.88)
|
74
|
+
# Enabled: true
|
75
|
+
# Style/HashTransformKeys: # (new in 0.80)
|
76
|
+
# Enabled: true
|
77
|
+
# Style/HashTransformValues: # (new in 0.80)
|
78
|
+
# Enabled: true
|
79
|
+
# Style/KeywordParametersOrder: # (new in 0.90)
|
80
|
+
# Enabled: true
|
81
|
+
# Style/OptionalBooleanParameter: # (new in 0.89)
|
82
|
+
# Enabled: true
|
83
|
+
# Style/RedundantAssignment: # (new in 0.87)
|
84
|
+
# Enabled: true
|
85
|
+
# Style/RedundantFetchBlock: # (new in 0.86)
|
86
|
+
# Enabled: true
|
87
|
+
# Style/RedundantFileExtensionInRequire: # (new in 0.88)
|
88
|
+
# Enabled: true
|
89
|
+
# Style/RedundantRegexpCharacterClass: # (new in 0.85)
|
90
|
+
# Enabled: true
|
91
|
+
# Style/RedundantRegexpEscape: # (new in 0.85)
|
92
|
+
# Enabled: true
|
93
|
+
# Style/RedundantSelfAssignment: # (new in 0.90)
|
94
|
+
# Enabled: true
|
95
|
+
# Style/SingleArgumentDig: # (new in 0.89)
|
96
|
+
# Enabled: true
|
97
|
+
# Style/SlicingWithRange: # (new in 0.83)
|
98
|
+
# Enabled: true
|
99
|
+
# Style/SoleNestedConditional: # (new in 0.89)
|
100
|
+
# Enabled: true
|
101
|
+
# Style/StringConcatenation: # (new in 0.89)
|
102
|
+
# Enabled: true
|
103
|
+
# For more information: https://docs.rubocop.org/rubocop/versioning.html
|
data/rails.yml
CHANGED
@@ -1,29 +1,11 @@
|
|
1
|
-
# Rails specific cops
|
2
|
-
Rails/ApplicationController:
|
3
|
-
Exclude:
|
4
|
-
- "spec/**/*"
|
5
|
-
- "test/**/*"
|
6
|
-
Rails/SkipsModelValidations:
|
7
|
-
Exclude:
|
8
|
-
- "db/migrate/**/*"
|
9
|
-
- "lib/tasks/**/*"
|
10
|
-
- "spec/**/*"
|
11
|
-
- "test/**/*"
|
12
|
-
Rails/UnknownEnv:
|
13
|
-
Environments:
|
14
|
-
- cucumber
|
15
|
-
- development
|
16
|
-
- production
|
17
|
-
- qa
|
18
|
-
- test
|
19
|
-
- uat
|
20
|
-
|
21
|
-
# These rails cops are currently pending and will be enabled by default at some point, but adding for now to stop
|
22
|
-
# Rubocop or VSCode complaining...
|
23
1
|
Rails/ActiveRecordCallbacksOrder:
|
24
2
|
Enabled: true
|
25
3
|
Rails/AfterCommitOverride:
|
26
4
|
Enabled: true
|
5
|
+
Rails/ApplicationController:
|
6
|
+
Exclude:
|
7
|
+
- spec/**/*
|
8
|
+
- test/**/*
|
27
9
|
Rails/FindById:
|
28
10
|
Enabled: true
|
29
11
|
Rails/Inquiry:
|
@@ -44,8 +26,22 @@ Rails/RenderPlainText:
|
|
44
26
|
Enabled: true
|
45
27
|
Rails/ShortI18n:
|
46
28
|
Enabled: true
|
29
|
+
Rails/SkipsModelValidations:
|
30
|
+
Exclude:
|
31
|
+
- db/migrate/**/*
|
32
|
+
- lib/tasks/**/*
|
33
|
+
- spec/**/*
|
34
|
+
- test/**/*
|
47
35
|
Rails/SquishedSQLHeredocs:
|
48
36
|
Enabled: true
|
37
|
+
Rails/UnknownEnv:
|
38
|
+
Environments:
|
39
|
+
- cucumber
|
40
|
+
- development
|
41
|
+
- production
|
42
|
+
- qa
|
43
|
+
- test
|
44
|
+
- uat
|
49
45
|
Rails/WhereExists:
|
50
46
|
Enabled: true
|
51
47
|
Rails/WhereNot:
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: boxt_ruby_style_guide
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.0
|
4
|
+
version: 7.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Boxt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-09-
|
11
|
+
date: 2020-09-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -16,56 +16,56 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.92.0
|
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.92.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubocop-faker
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 1.1.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 1.1.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rubocop-rails
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - '='
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 2.8.1
|
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:
|
54
|
+
version: 2.8.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rubocop-rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 1.43.2
|
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:
|
68
|
+
version: 1.43.2
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: bundler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,6 +94,20 @@ dependencies:
|
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '13.0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '3.9'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '3.9'
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: rspec-nc
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|