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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f3e0247700072b2c9aa222eb7533259dca6828196ef13db3438dea5724a5d2d9
4
- data.tar.gz: 9ff61f12243109f13137fa9e2cfa09617ae1bf9f127f6577fc71deb92153da5b
3
+ metadata.gz: 3788d451bf4bdc030f969ad448ee186ea4409a3c037f74b92d1f71ebd31f70bd
4
+ data.tar.gz: b934ebe48d0b27d8a9f7f79be9c9af5474f4c4c389f851d64780418eda6014ca
5
5
  SHA512:
6
- metadata.gz: c92afe29edd5de5b8daf2a057477a74d129350c7a7fafe8babc5556cf898b64cd98d223ed49f16f7fc6e1519f088361125f54f8372dbf86b66a5183815dc6a25
7
- data.tar.gz: ff3dfe1731fb3982972e19a9e0f0b539a54c1115eb924cc55c0e80f28d14377306e71739e35a4c8ad645e7fd016d3bc5928c75ed90d3e65cf24e60af8f278923
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/capybara.yml # capybara-specific rules and cops
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
 
@@ -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
@@ -0,0 +1,2 @@
1
+ require:
2
+ - rubocop-factory_bot
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
@@ -1,2 +1,11 @@
1
1
  require:
2
2
  - rubocop-rspec
3
+
4
+ RSpec/AlignLeftLetBrace:
5
+ Enabled: true
6
+
7
+ RSpec/AlignRightLetBrace:
8
+ Enabled: true
9
+
10
+ RSpec/ExampleWithoutDescription:
11
+ EnforcedStyle: single_line_only
data/config/sequel.yml ADDED
@@ -0,0 +1,2 @@
1
+ require:
2
+ - rubocop-sequel
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Rubocop
4
4
  module Rickselby
5
- VERSION = "0.12.0"
5
+ VERSION = "0.14.0.pre.1"
6
6
  end
7
7
  end
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.12.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-08 00:00:00.000000000 Z
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.10
192
+ rubygems_version: 3.5.4
148
193
  signing_key:
149
194
  specification_version: 4
150
195
  summary: Code styling for my projects