rubocop-rickselby 0.12.0 → 0.13.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f3e0247700072b2c9aa222eb7533259dca6828196ef13db3438dea5724a5d2d9
4
- data.tar.gz: 9ff61f12243109f13137fa9e2cfa09617ae1bf9f127f6577fc71deb92153da5b
3
+ metadata.gz: 33cddc96bf07629f280e1f9f0e37aeef6f4b0575f3b90bb0003cefe7f8ed25f9
4
+ data.tar.gz: 3f5506b17671508ac5823d1e4cae2a3ee5fcecd5cab050c19c5ef58d4191cdf7
5
5
  SHA512:
6
- metadata.gz: c92afe29edd5de5b8daf2a057477a74d129350c7a7fafe8babc5556cf898b64cd98d223ed49f16f7fc6e1519f088361125f54f8372dbf86b66a5183815dc6a25
7
- data.tar.gz: ff3dfe1731fb3982972e19a9e0f0b539a54c1115eb924cc55c0e80f28d14377306e71739e35a4c8ad645e7fd016d3bc5928c75ed90d3e65cf24e60af8f278923
6
+ metadata.gz: b0fdcef4328b5140f1239d3cad466c9eb69c6a32a79689b99e23603bcfb4fa675d3ed3b0016ae92264abab791c66705625dcd0ef09718362f338128ffc8cfa1f
7
+ data.tar.gz: 4b37c89ce4a54b9a120bece1dc203a094abbb5a27cebb0b36d294c18efddccf8cb5881ecb6402330545cbfa551cc43ea3ce680627b946102b02ac188fa28ee28
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,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.13.0"
6
6
  end
7
7
  end
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.12.0
4
+ version: 0.13.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: 2024-01-08 00:00:00.000000000 Z
11
+ date: 2024-01-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: 2.20.0
41
+ - !ruby/object:Gem::Dependency
42
+ name: rubocop-factory_bot
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: 2.25.0
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: 2.25.0
41
55
  - !ruby/object:Gem::Dependency
42
56
  name: rubocop-performance
43
57
  requirement: !ruby/object:Gem::Requirement
@@ -108,6 +122,20 @@ dependencies:
108
122
  - - "~>"
109
123
  - !ruby/object:Gem::Version
110
124
  version: 2.26.0
125
+ - !ruby/object:Gem::Dependency
126
+ name: rubocop-sequel
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: 0.3.4
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: 0.3.4
111
139
  description:
112
140
  email:
113
141
  - rick@selby-family.co.uk
@@ -118,8 +146,10 @@ files:
118
146
  - README.md
119
147
  - config/capybara.yml
120
148
  - config/default.yml
149
+ - config/factory-bot.yml
121
150
  - config/rails.yml
122
151
  - config/rspec.yml
152
+ - config/sequel.yml
123
153
  - lib/rubocop/rickselby/version.rb
124
154
  homepage: https://github.com/rickselby/rubocop-rickselby
125
155
  licenses:
@@ -144,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
174
  - !ruby/object:Gem::Version
145
175
  version: '0'
146
176
  requirements: []
147
- rubygems_version: 3.4.10
177
+ rubygems_version: 3.5.3
148
178
  signing_key:
149
179
  specification_version: 4
150
180
  summary: Code styling for my projects