gl_rubocop 0.2.16 → 0.2.18
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/default.yml +12 -0
- data/gl_rubocop.gemspec +1 -0
- data/lib/gl_rubocop/gl_cops/callback_method_names.rb +2 -0
- data/lib/gl_rubocop/version.rb +1 -1
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1be092e0c904dc4e2ded6a3871c945fbe7678c15c07b9dbfcb680992bd84bb23
|
4
|
+
data.tar.gz: 6aa02e9aa764cd51a2e270d1aa2ecbd43386f54a615e3b09ddd5bb586801bc6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 17ceb1644f3a66bff2d1c3ab4a944e580c387ca0dd8afe6ea2ad5566e5d135b687edb6a7e0b35071037fcb1374e7360183dfc68f1f77f875b1d15ece2a8229a4
|
7
|
+
data.tar.gz: 3cdf1c2d43ea3e094f2b91fcb76312dcfb698781d2dba5da691f22b6cac157e4f00a9b7548e04624ab426ed9696bb087d1a6a753ba96a9e3d5668b8b8368273a
|
data/default.yml
CHANGED
@@ -4,6 +4,7 @@ require:
|
|
4
4
|
- rubocop-rspec
|
5
5
|
- rubocop-magic_numbers
|
6
6
|
- rubocop-haml
|
7
|
+
- rubocop-i18n
|
7
8
|
- rubocop-rake
|
8
9
|
- rubocop-sorbet
|
9
10
|
- ./lib/gl_rubocop/gl_cops/callback_method_names.rb
|
@@ -66,6 +67,17 @@ GLCops/UniqueIdentifier:
|
|
66
67
|
Include:
|
67
68
|
- "app/components/**/*.haml"
|
68
69
|
|
70
|
+
I18n/GetText:
|
71
|
+
Enabled: false
|
72
|
+
|
73
|
+
I18n/RailsI18n:
|
74
|
+
Enabled: true
|
75
|
+
Exclude:
|
76
|
+
- "spec/**/*"
|
77
|
+
- "packs/*/spec/**/*"
|
78
|
+
- Gemfile
|
79
|
+
- "*.gemspec"
|
80
|
+
|
69
81
|
Layout/ClassStructure:
|
70
82
|
Enabled: true
|
71
83
|
|
data/gl_rubocop.gemspec
CHANGED
@@ -27,6 +27,7 @@ Gem::Specification.new do |spec|
|
|
27
27
|
|
28
28
|
spec.add_dependency 'rubocop', '~> 1.62.1'
|
29
29
|
spec.add_dependency 'rubocop-haml', '~> 0.2.4'
|
30
|
+
spec.add_dependency 'rubocop-i18n'
|
30
31
|
spec.add_dependency 'rubocop-magic_numbers'
|
31
32
|
spec.add_dependency 'rubocop-performance'
|
32
33
|
spec.add_dependency 'rubocop-rails'
|
@@ -1,3 +1,4 @@
|
|
1
|
+
# rubocop:disable I18n/RailsI18n/DecorateString
|
1
2
|
module GLRubocop
|
2
3
|
module GLCops
|
3
4
|
# This cop ensures that controller callbacks are named methods, not inline blocks.
|
@@ -21,3 +22,4 @@ module GLRubocop
|
|
21
22
|
end
|
22
23
|
end
|
23
24
|
end
|
25
|
+
# rubocop:enable I18n/RailsI18n/DecorateString
|
data/lib/gl_rubocop/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gl_rubocop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Give Lively
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-08
|
11
|
+
date: 2025-09-08 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: 0.2.4
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubocop-i18n
|
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'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: rubocop-magic_numbers
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -163,7 +177,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
163
177
|
- !ruby/object:Gem::Version
|
164
178
|
version: '0'
|
165
179
|
requirements: []
|
166
|
-
rubygems_version: 3.
|
180
|
+
rubygems_version: 3.4.19
|
167
181
|
signing_key:
|
168
182
|
specification_version: 4
|
169
183
|
summary: A shareable configuration of Give Lively's rubocop rules.
|