rubocop-katalyst 1.1.4 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +1 -1
- data/config/default.yml +18 -6
- data/config/rubocop-bundler.yml +3 -0
- data/config/rubocop-rails.yml +8 -0
- data/config/rubocop-rspec.yml +4 -0
- data/lib/rubocop/katalyst/erb_lint_task.rb +8 -3
- data/lib/rubocop/katalyst/prettier_task.rb +3 -5
- data/lib/rubocop/katalyst/rake_task.rb +1 -1
- data/lib/rubocop/katalyst.rb +0 -2
- data/lib/rubocop-katalyst.rb +0 -1
- data/package.json +1 -1
- metadata +50 -12
- data/lib/rubocop/katalyst/version.rb +0 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 728f313a67cbfc6a84de24c0b735da29c94e35df87e00140ba561a51c9d30030
|
4
|
+
data.tar.gz: 48ff11dce02f4b6543a26ed2ac771c45dc02b5d24748ac793bd81f3c9e3ee9a3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9950c2818e4bd7835ba03b73f8fade998018b7f1267b49610f72757c880af5ac24d1b430c217c75d442db5babedac9d80b341887432ee2f17b02945c49d6176
|
7
|
+
data.tar.gz: bdd112f03aafa07fa4f8a16da306cd6576298f835bebf2f88659d9242aecadda444ce090ecbe481544edd5faad5416bfb7f3f2fff9394eefb8e801ed767cddd3
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -64,7 +64,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
64
64
|
|
65
65
|
## Contributing
|
66
66
|
|
67
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
67
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/katalyst/rubocop-katalyst. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/katalyst/rubocop-katalyst/blob/main/CODE_OF_CONDUCT.md).
|
68
68
|
|
69
69
|
## License
|
70
70
|
|
data/config/default.yml
CHANGED
@@ -1,9 +1,12 @@
|
|
1
1
|
# Configuration for all cops and global extension configuration
|
2
2
|
require:
|
3
|
+
- rubocop-capybara
|
4
|
+
- rubocop-factory_bot
|
3
5
|
- rubocop-performance
|
4
6
|
- rubocop-rails
|
5
7
|
- rubocop-rake
|
6
8
|
- rubocop-rspec
|
9
|
+
- rubocop-rspec_rails
|
7
10
|
|
8
11
|
inherit_mode:
|
9
12
|
merge:
|
@@ -24,12 +27,18 @@ inherit_from:
|
|
24
27
|
|
25
28
|
AllCops:
|
26
29
|
Exclude:
|
27
|
-
-
|
28
|
-
-
|
29
|
-
-
|
30
|
-
-
|
31
|
-
NewCops:
|
32
|
-
TargetRubyVersion:
|
30
|
+
- .git/**/*
|
31
|
+
- node_modules/**/*
|
32
|
+
- tmp/**/*
|
33
|
+
- vendor/**/*
|
34
|
+
NewCops: enable
|
35
|
+
TargetRubyVersion: 3.3
|
36
|
+
|
37
|
+
Capybara:
|
38
|
+
Enabled: true
|
39
|
+
|
40
|
+
FactoryBot:
|
41
|
+
Enabled: true
|
33
42
|
|
34
43
|
Performance:
|
35
44
|
Enabled: true
|
@@ -42,3 +51,6 @@ Rake:
|
|
42
51
|
|
43
52
|
RSpec:
|
44
53
|
Enabled: true
|
54
|
+
|
55
|
+
RSpecRails:
|
56
|
+
Enabled: true
|
data/config/rubocop-bundler.yml
CHANGED
data/config/rubocop-rails.yml
CHANGED
@@ -53,6 +53,14 @@ Rails/TimeZone:
|
|
53
53
|
Reference: 'https://danilenko.org/2012/7/6/rails_timezones'
|
54
54
|
Enabled: false
|
55
55
|
|
56
|
+
Rails/UnknownEnv:
|
57
|
+
Environments:
|
58
|
+
- production
|
59
|
+
- staging
|
60
|
+
- development
|
61
|
+
- test
|
62
|
+
Enabled: true
|
63
|
+
|
56
64
|
Rails/Validation:
|
57
65
|
Description: 'Use validates :attribute, hash of validations.'
|
58
66
|
Enabled: false
|
data/config/rubocop-rspec.yml
CHANGED
@@ -13,6 +13,7 @@ RSpec/ContextWording:
|
|
13
13
|
- without
|
14
14
|
|
15
15
|
RSpec/ExampleLength:
|
16
|
+
CountAsOne: ["array", "heredoc", "method_call"]
|
16
17
|
Exclude:
|
17
18
|
- spec/features/**/*
|
18
19
|
- spec/system/**/*
|
@@ -22,6 +23,9 @@ RSpec/MultipleExpectations:
|
|
22
23
|
- spec/features/**/*
|
23
24
|
- spec/system/**/*
|
24
25
|
|
26
|
+
RSpec/MultipleMemoizedHelpers:
|
27
|
+
Enabled: false
|
28
|
+
|
25
29
|
RSpec/RepeatedExample:
|
26
30
|
Exclude:
|
27
31
|
- spec/policies/**/*
|
@@ -31,9 +31,10 @@ module RuboCop
|
|
31
31
|
def run_cli(verbose, *options)
|
32
32
|
require "erb_lint/cli"
|
33
33
|
|
34
|
+
options.unshift("--config", config.to_path, "--allow-no-files")
|
34
35
|
cli = ERBLint::CLI.new
|
35
|
-
puts "Running
|
36
|
-
result = cli.run(
|
36
|
+
puts "Running erbLint #{options.join(' ')}" if verbose
|
37
|
+
result = cli.run(options)
|
37
38
|
abort("ERBLint failed!") unless result
|
38
39
|
end
|
39
40
|
|
@@ -52,7 +53,7 @@ module RuboCop
|
|
52
53
|
end
|
53
54
|
|
54
55
|
def config
|
55
|
-
config =
|
56
|
+
config = Pathname.new(root).join(".erb-lint.yml")
|
56
57
|
config = default_config unless config.exist?
|
57
58
|
config
|
58
59
|
end
|
@@ -60,6 +61,10 @@ module RuboCop
|
|
60
61
|
def default_config
|
61
62
|
Pathname.new(__dir__).join("../../../.erb-lint.yml")
|
62
63
|
end
|
64
|
+
|
65
|
+
def root
|
66
|
+
@root ||= Dir.pwd
|
67
|
+
end
|
63
68
|
end
|
64
69
|
end
|
65
70
|
end
|
data/lib/rubocop/katalyst.rb
CHANGED
data/lib/rubocop-katalyst.rb
CHANGED
data/package.json
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-katalyst
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Katalyst Interactive
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-06-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -24,6 +24,34 @@ dependencies:
|
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '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: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '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: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
27
55
|
- !ruby/object:Gem::Dependency
|
28
56
|
name: rubocop-performance
|
29
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -80,7 +108,21 @@ dependencies:
|
|
80
108
|
- - ">="
|
81
109
|
- !ruby/object:Gem::Version
|
82
110
|
version: '0'
|
83
|
-
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rubocop-rspec_rails
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
description:
|
84
126
|
email:
|
85
127
|
- developers@katalyst.com.au
|
86
128
|
executables: []
|
@@ -111,7 +153,6 @@ files:
|
|
111
153
|
- lib/rubocop/katalyst/inject.rb
|
112
154
|
- lib/rubocop/katalyst/prettier_task.rb
|
113
155
|
- lib/rubocop/katalyst/rake_task.rb
|
114
|
-
- lib/rubocop/katalyst/version.rb
|
115
156
|
- lib/tasks/erb_lint.rake
|
116
157
|
- package.json
|
117
158
|
homepage: https://github.com/katalyst/rubocop-katalyst
|
@@ -119,11 +160,8 @@ licenses:
|
|
119
160
|
- MIT
|
120
161
|
metadata:
|
121
162
|
allowed_push_host: https://rubygems.org
|
122
|
-
homepage_uri: https://github.com/katalyst/rubocop-katalyst
|
123
|
-
source_code_uri: https://github.com/katalyst/rubocop-katalyst
|
124
|
-
changelog_uri: https://github.com/katalyst/rubocop-katalyst/blob/main/CHANGELOG.md
|
125
163
|
rubygems_mfa_required: 'true'
|
126
|
-
post_install_message:
|
164
|
+
post_install_message:
|
127
165
|
rdoc_options: []
|
128
166
|
require_paths:
|
129
167
|
- lib
|
@@ -131,15 +169,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
131
169
|
requirements:
|
132
170
|
- - ">="
|
133
171
|
- !ruby/object:Gem::Version
|
134
|
-
version:
|
172
|
+
version: '3.3'
|
135
173
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
136
174
|
requirements:
|
137
175
|
- - ">="
|
138
176
|
- !ruby/object:Gem::Version
|
139
177
|
version: '0'
|
140
178
|
requirements: []
|
141
|
-
rubygems_version: 3.
|
142
|
-
signing_key:
|
179
|
+
rubygems_version: 3.5.9
|
180
|
+
signing_key:
|
143
181
|
specification_version: 4
|
144
182
|
summary: Code standards for Katalyst
|
145
183
|
test_files: []
|