rubocop-rickselby 0.12.0 → 0.14.0.pre.1
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 +3 -1
- data/config/default.yml +0 -9
- data/config/erb-lint.yml +22 -0
- data/config/factory-bot.yml +2 -0
- data/config/rails.yml +15 -0
- data/config/rspec.yml +9 -0
- data/config/sequel.yml +2 -0
- data/lib/rubocop/rickselby/version.rb +1 -1
- metadata +49 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3788d451bf4bdc030f969ad448ee186ea4409a3c037f74b92d1f71ebd31f70bd
|
4
|
+
data.tar.gz: b934ebe48d0b27d8a9f7f79be9c9af5474f4c4c389f851d64780418eda6014ca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f63de8608dca62d19a7684e1f439c7fe8acf7070f5a7ae991fc7377ec26fc442529263c5b56f8b334b3b90edd74a490a464eb496196419e15ff51bc09f5450d7
|
7
|
+
data.tar.gz: 817f63227a9ab264ebbb720bdb72640bd50d716ab88edf22c8a5d850a32ed3e1cd730ad0d35a952ad6ee3ba74f6972967e2d31a911300fc83564240eb5cb3dc7
|
data/README.md
CHANGED
@@ -20,9 +20,11 @@ Inherit the desired configuration in your `.rubocop.yml`:
|
|
20
20
|
inherit_gem:
|
21
21
|
rubocop-rickselby:
|
22
22
|
- config/default.yml # generic Ruby rules and cops
|
23
|
+
- config/capybara.yml # capybara-specific rules and cops
|
24
|
+
- config/factory_bot.yml # factory_bot-specific rules and cops
|
23
25
|
- config/rails.yml # Rails-specific rules and cops
|
24
26
|
- config/rspec.yml # RSpec-specific rules and cops
|
25
|
-
- config/
|
27
|
+
- config/sequel.yml # sequel-specific rules and cops
|
26
28
|
```
|
27
29
|
|
28
30
|
## Contributing
|
data/config/default.yml
CHANGED
@@ -83,15 +83,6 @@ Style/FloatDivision:
|
|
83
83
|
Style/IpAddresses:
|
84
84
|
Enabled: true
|
85
85
|
|
86
|
-
# I'd like this if we can declare a list of functions that should use parentheses.
|
87
|
-
# e.g. let() for rspec
|
88
|
-
#Style/MethodCallWithArgsParentheses:
|
89
|
-
# Enabled: true
|
90
|
-
# AllowParenthesesInCamelCaseMethod: true
|
91
|
-
# AllowParenthesesInChaining: true
|
92
|
-
# AllowParenthesesInMultilineCall: true
|
93
|
-
# EnforcedStyle: omit_parentheses
|
94
|
-
|
95
86
|
Style/MethodCalledOnDoEndBlock:
|
96
87
|
Enabled: true
|
97
88
|
|
data/config/erb-lint.yml
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
---
|
2
|
+
EnableDefaultLinters: true
|
3
|
+
linters:
|
4
|
+
ErbSafety:
|
5
|
+
enabled: true
|
6
|
+
RequireScriptNonce:
|
7
|
+
enabled: true
|
8
|
+
Rubocop:
|
9
|
+
enabled: true
|
10
|
+
rubocop_config:
|
11
|
+
inherit_from:
|
12
|
+
- .rubocop.yml
|
13
|
+
Layout/InitialIndentation:
|
14
|
+
Enabled: false
|
15
|
+
Layout/TrailingEmptyLines:
|
16
|
+
Enabled: false
|
17
|
+
Lint/UselessAssignment:
|
18
|
+
Enabled: false
|
19
|
+
Naming/FileName:
|
20
|
+
Enabled: false
|
21
|
+
Style/FrozenStringLiteralComment:
|
22
|
+
Enabled: false
|
data/config/rails.yml
CHANGED
@@ -26,6 +26,21 @@ Performance/Detect:
|
|
26
26
|
Performance/Sum:
|
27
27
|
Enabled: false
|
28
28
|
|
29
|
+
Rails/DefaultScope:
|
30
|
+
Enabled: true
|
31
|
+
|
32
|
+
Rails/EnvironmentVariableAccess:
|
33
|
+
Enabled: true
|
34
|
+
|
35
|
+
Rails/OrderById:
|
36
|
+
Enabled: true
|
37
|
+
|
38
|
+
Rails/PluckId:
|
39
|
+
Enabled: true
|
40
|
+
|
41
|
+
Rails/TableNameAssignment:
|
42
|
+
Enabled: true
|
43
|
+
|
29
44
|
Style/Documentation:
|
30
45
|
Exclude:
|
31
46
|
- app/controllers/**/*
|
data/config/rspec.yml
CHANGED
data/config/sequel.yml
ADDED
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-rickselby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.0.pre.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rick Selby
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-01-
|
11
|
+
date: 2024-01-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: erb_lint
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 0.5.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.5.0
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: rubocop
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,6 +52,20 @@ dependencies:
|
|
38
52
|
- - "~>"
|
39
53
|
- !ruby/object:Gem::Version
|
40
54
|
version: 2.20.0
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rubocop-factory_bot
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 2.25.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.25.0
|
41
69
|
- !ruby/object:Gem::Dependency
|
42
70
|
name: rubocop-performance
|
43
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -108,6 +136,20 @@ dependencies:
|
|
108
136
|
- - "~>"
|
109
137
|
- !ruby/object:Gem::Version
|
110
138
|
version: 2.26.0
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: rubocop-sequel
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 0.3.4
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 0.3.4
|
111
153
|
description:
|
112
154
|
email:
|
113
155
|
- rick@selby-family.co.uk
|
@@ -118,8 +160,11 @@ files:
|
|
118
160
|
- README.md
|
119
161
|
- config/capybara.yml
|
120
162
|
- config/default.yml
|
163
|
+
- config/erb-lint.yml
|
164
|
+
- config/factory-bot.yml
|
121
165
|
- config/rails.yml
|
122
166
|
- config/rspec.yml
|
167
|
+
- config/sequel.yml
|
123
168
|
- lib/rubocop/rickselby/version.rb
|
124
169
|
homepage: https://github.com/rickselby/rubocop-rickselby
|
125
170
|
licenses:
|
@@ -127,7 +172,7 @@ licenses:
|
|
127
172
|
metadata:
|
128
173
|
homepage_uri: https://github.com/rickselby/rubocop-rickselby
|
129
174
|
source_code_uri: https://github.com/rickselby/rubocop-rickselby
|
130
|
-
changelog_uri: https://github.com/rickselby/rubocop-rickselby/CHANGELOG.md
|
175
|
+
changelog_uri: https://github.com/rickselby/rubocop-rickselby/blob/main/CHANGELOG.md
|
131
176
|
rubygems_mfa_required: 'true'
|
132
177
|
post_install_message:
|
133
178
|
rdoc_options: []
|
@@ -144,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
189
|
- !ruby/object:Gem::Version
|
145
190
|
version: '0'
|
146
191
|
requirements: []
|
147
|
-
rubygems_version: 3.4
|
192
|
+
rubygems_version: 3.5.4
|
148
193
|
signing_key:
|
149
194
|
specification_version: 4
|
150
195
|
summary: Code styling for my projects
|