rubocop-rickselby 0.8.0 → 0.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -11
- data/config/default.yml +124 -2
- data/config/rails.yml +3 -0
- data/lib/rubocop/rickselby/version.rb +1 -1
- metadata +59 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c183caa264d0e5ac9cae5d6f909f581e9ea199e763a55a8f8f1ac23b996599da
|
4
|
+
data.tar.gz: 32fd3941230bf76987ff184d3de81cf850eaf406a3eeeb0497ecffe2473a10b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d2963bc9b99a07be1f50f119c03d8a8050b964588263b8c058229ae19c102e6554e2c06fe4cc5f30677513643f5940f312b7b2bdaee2bbeb14eab8d9e7d31839
|
7
|
+
data.tar.gz: ae3ed41ebe243f7fe02a1bfe09bbe67d4e5741d66eceb6633dda02e10205dcbc0f3bba47fc0a3f9239059fb9cc944ec967a2c14fc1a9ce2e2f4c63970becc68e
|
data/README.md
CHANGED
@@ -9,17 +9,7 @@ Add `rubocop-rickselby` to your Gemfile:
|
|
9
9
|
```ruby
|
10
10
|
|
11
11
|
group :development, :test do
|
12
|
-
gem "rubocop-rickselby", "~> 0.
|
13
|
-
|
14
|
-
# If you are using rails:
|
15
|
-
gem "rubocop-rails", require: false
|
16
|
-
gem "rubocop-rails-accessibility", require: false
|
17
|
-
|
18
|
-
# If you are using rspec:
|
19
|
-
gem "rubocop-rspec", require: false
|
20
|
-
|
21
|
-
# If you are using capybara:
|
22
|
-
gem "rubocop-capybara", require: false
|
12
|
+
gem "rubocop-rickselby", "~> 0.10", require: false
|
23
13
|
end
|
24
14
|
```
|
25
15
|
|
data/config/default.yml
CHANGED
@@ -10,10 +10,132 @@ AllCops:
|
|
10
10
|
Bundler/GemVersion:
|
11
11
|
Enabled: true
|
12
12
|
|
13
|
-
|
13
|
+
Gemspec/DependencyVersion:
|
14
|
+
Enabled: true
|
15
|
+
|
16
|
+
Layout/BlockAlignment:
|
17
|
+
EnforcedStyleAlignWith: start_of_block
|
18
|
+
|
19
|
+
Layout/FirstArrayElementLineBreak:
|
20
|
+
Enabled: true
|
21
|
+
|
22
|
+
Layout/FirstHashElementLineBreak:
|
23
|
+
Enabled: true
|
24
|
+
|
25
|
+
Layout/HashAlignment:
|
26
|
+
EnforcedColonStyle: table
|
27
|
+
EnforcedHashRocketStyle: table
|
28
|
+
|
29
|
+
Layout/MultilineArrayLineBreaks:
|
30
|
+
Enabled: true
|
31
|
+
|
32
|
+
Layout/MultilineAssignmentLayout:
|
33
|
+
Enabled: true
|
34
|
+
EnforcedStyle: same_line
|
35
|
+
|
36
|
+
Layout/MultilineHashKeyLineBreaks:
|
37
|
+
Enabled: true
|
38
|
+
|
39
|
+
Layout/RedundantLineBreak:
|
40
|
+
Enabled: true
|
41
|
+
InspectBlocks: true
|
42
|
+
|
43
|
+
# Allow coordinate parameter names (along with the rest of the defaults, which must be redefined here)
|
14
44
|
Naming/MethodParameterName:
|
15
|
-
|
45
|
+
AllowedNames:
|
46
|
+
- as
|
47
|
+
- at
|
48
|
+
- by
|
49
|
+
- cc
|
50
|
+
- db
|
51
|
+
- id
|
52
|
+
- if
|
53
|
+
- in
|
54
|
+
- io
|
55
|
+
- ip
|
56
|
+
- of
|
57
|
+
- 'on'
|
58
|
+
- os
|
59
|
+
- pp
|
60
|
+
- to
|
61
|
+
- x
|
62
|
+
- y
|
63
|
+
- z
|
64
|
+
|
65
|
+
Style/AsciiComments:
|
66
|
+
Enabled: true
|
67
|
+
|
68
|
+
Style/AutoResourceCleanup:
|
69
|
+
Enabled: true
|
70
|
+
|
71
|
+
Style/CaseLikeIf:
|
72
|
+
MinBranchesCount: 2
|
73
|
+
|
74
|
+
Style/ClassMethodsDefinitions:
|
75
|
+
Enabled: true
|
76
|
+
EnforcedStyle: self_class
|
77
|
+
|
78
|
+
Style/CollectionMethods:
|
79
|
+
Enabled: true
|
80
|
+
|
81
|
+
Style/DateTime:
|
82
|
+
Enabled: true
|
83
|
+
|
84
|
+
Style/FloatDivision:
|
85
|
+
EnforcedStyle: fdiv
|
86
|
+
|
87
|
+
Style/IpAddresses:
|
88
|
+
Enabled: true
|
89
|
+
|
90
|
+
Style/MethodCallWithArgsParentheses:
|
91
|
+
Enabled: true
|
92
|
+
AllowParenthesesInCamelCaseMethod: true
|
93
|
+
AllowParenthesesInChaining: true
|
94
|
+
AllowParenthesesInMultilineCall: true
|
95
|
+
EnforcedStyle: omit_parentheses
|
96
|
+
|
97
|
+
Style/MethodCalledOnDoEndBlock:
|
98
|
+
Enabled: true
|
99
|
+
|
100
|
+
Style/OptionHash:
|
101
|
+
Enabled: true
|
102
|
+
|
103
|
+
Style/Send:
|
104
|
+
Enabled: true
|
105
|
+
|
106
|
+
Style/StaticClass:
|
107
|
+
Enabled: true
|
16
108
|
|
17
109
|
# Double quotes everywhere so they don't have to change if interpolation is added to a string
|
18
110
|
Style/StringLiterals:
|
19
111
|
EnforcedStyle: double_quotes
|
112
|
+
|
113
|
+
Style/StringMethods:
|
114
|
+
Enabled: true
|
115
|
+
|
116
|
+
Style/SymbolArray:
|
117
|
+
MinSize: 1
|
118
|
+
|
119
|
+
Style/StringLiteralsInInterpolation:
|
120
|
+
EnforcedStyle: double_quotes
|
121
|
+
|
122
|
+
Style/TernaryParentheses:
|
123
|
+
EnforcedStyle: require_parentheses_when_complex
|
124
|
+
|
125
|
+
Style/TopLevelMethodDefinition:
|
126
|
+
Enabled: true
|
127
|
+
|
128
|
+
Style/TrailingCommaInArguments:
|
129
|
+
EnforcedStyleForMultiline: consistent_comma
|
130
|
+
|
131
|
+
Style/TrailingCommaInArrayLiteral:
|
132
|
+
EnforcedStyleForMultiline: consistent_comma
|
133
|
+
|
134
|
+
Style/TrailingCommaInHashLiteral:
|
135
|
+
EnforcedStyleForMultiline: consistent_comma
|
136
|
+
|
137
|
+
Style/UnlessLogicalOperators:
|
138
|
+
Enabled: true
|
139
|
+
|
140
|
+
Style/WordArray:
|
141
|
+
MinSize: 1
|
data/config/rails.yml
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-rickselby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rick Selby
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 1.59.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rubocop-capybara
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 2.20.0
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 2.20.0
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: rubocop-performance
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,6 +52,34 @@ dependencies:
|
|
38
52
|
- - "~>"
|
39
53
|
- !ruby/object:Gem::Version
|
40
54
|
version: 1.20.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rubocop-rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 2.23.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 2.23.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rubocop-rails-accessibility
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - "~>"
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.2.0
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - "~>"
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: 0.2.0
|
41
83
|
- !ruby/object:Gem::Dependency
|
42
84
|
name: rubocop-rake
|
43
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,6 +94,20 @@ dependencies:
|
|
52
94
|
- - "~>"
|
53
95
|
- !ruby/object:Gem::Version
|
54
96
|
version: 0.6.0
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rubocop-rspec
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: 2.26.0
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: 2.26.0
|
55
111
|
description:
|
56
112
|
email:
|
57
113
|
- rick@selby-family.co.uk
|
@@ -88,7 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
88
144
|
- !ruby/object:Gem::Version
|
89
145
|
version: '0'
|
90
146
|
requirements: []
|
91
|
-
rubygems_version: 3.
|
147
|
+
rubygems_version: 3.5.3
|
92
148
|
signing_key:
|
93
149
|
specification_version: 4
|
94
150
|
summary: Code styling for my projects
|