rubocop-athix 0.0.5 → 0.0.9
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 +25 -1
- data/config/_style.yml +8 -0
- data/config/default.yml +8 -1
- data/config/gems.yml +8 -0
- data/config/rails.yml +16 -2
- metadata +4 -5
- data/config/_naming.yml +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 375846d07acaa1815afea10779581765f5ea451d53a6e26c38f0b5801e8f6be6
|
4
|
+
data.tar.gz: 69c5be677d4bdc46e80d2d17fe606242e3a572231027cef1f330368fb4e6f432
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b82af39a4a271391562ff174acb764d4ae11e32e80b348d16f1372d93e0d26d6e7b7fe1fc54c050434364fd411a885453f3c37eb82e6945c3430975fdfc9776b
|
7
|
+
data.tar.gz: d7a52e3b7124e748d58e473cc3698349ae2e7a9de3ecf943df5b5f25b2da6fcfa0d38b553129469427f64f57da68dad4c2dcacf977d72a8a0138a92f3c6426b0
|
data/README.md
CHANGED
@@ -2,6 +2,22 @@
|
|
2
2
|
|
3
3
|
Contains my commonly used styling overrides for Rubocop.
|
4
4
|
|
5
|
+
## Adding additional Excludes
|
6
|
+
|
7
|
+
Inherit mode does not get inherited, meaning you'll need to add the following to
|
8
|
+
your config if you overwrite the Exclude and want it to append rather than
|
9
|
+
replace:
|
10
|
+
|
11
|
+
```yaml
|
12
|
+
##
|
13
|
+
# Merge instead of overwriting. For more details, see:
|
14
|
+
# https://docs.rubocop.org/rubocop/configuration.html#merging-arrays-using-inherit_mode
|
15
|
+
#
|
16
|
+
inherit_mode:
|
17
|
+
merge:
|
18
|
+
- Exclude
|
19
|
+
```
|
20
|
+
|
5
21
|
## Usage
|
6
22
|
|
7
23
|
### Rails Applications
|
@@ -10,10 +26,10 @@ Contains my commonly used styling overrides for Rubocop.
|
|
10
26
|
|
11
27
|
```ruby
|
12
28
|
gem 'rubocop-athix'
|
29
|
+
gem 'rubocop-i18n'
|
13
30
|
gem 'rubocop-rails'
|
14
31
|
gem 'rubocop-rake'
|
15
32
|
gem 'rubocop-rspec'
|
16
|
-
gem 'rubocop-i18n'
|
17
33
|
```
|
18
34
|
|
19
35
|
**.rubocop.yml**
|
@@ -26,6 +42,14 @@ inherit_gem:
|
|
26
42
|
|
27
43
|
### Ruby Gems
|
28
44
|
|
45
|
+
**Gemspec**
|
46
|
+
|
47
|
+
```ruby
|
48
|
+
s.add_development_dependency 'rubocop-athix'
|
49
|
+
s.add_development_dependency 'rubocop-rake'
|
50
|
+
s.add_development_dependency 'rubocop-rspec'
|
51
|
+
```
|
52
|
+
|
29
53
|
**Gemfile**
|
30
54
|
|
31
55
|
```ruby
|
data/config/_style.yml
CHANGED
@@ -19,3 +19,11 @@ Style/ModuleFunction:
|
|
19
19
|
#
|
20
20
|
Style/SymbolArray:
|
21
21
|
EnforcedStyle: brackets
|
22
|
+
|
23
|
+
##
|
24
|
+
# `has_key?` while more verbose, is more explicit on what it is saying. This is
|
25
|
+
# valuable for this particular scenario, as otherwise it could be reasonable to
|
26
|
+
# assume `key?` is specifying if the calling object is or is not a key.
|
27
|
+
#
|
28
|
+
Style/PreferredHashMethods:
|
29
|
+
EnforcedStyle: verbose
|
data/config/default.yml
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
inherit_from:
|
2
2
|
- _layout.yml
|
3
|
-
- _naming.yml
|
4
3
|
- _style.yml
|
5
4
|
|
6
5
|
require:
|
@@ -8,6 +7,14 @@ require:
|
|
8
7
|
- rubocop-performance
|
9
8
|
- rubocop-thread_safety
|
10
9
|
|
10
|
+
##
|
11
|
+
# Merge instead of overwriting. For more details, see:
|
12
|
+
# https://docs.rubocop.org/rubocop/configuration.html#merging-arrays-using-inherit_mode
|
13
|
+
#
|
14
|
+
inherit_mode:
|
15
|
+
merge:
|
16
|
+
- Exclude
|
17
|
+
|
11
18
|
AllCops:
|
12
19
|
NewCops: enable
|
13
20
|
TargetRubyVersion: 3.0.0
|
data/config/gems.yml
CHANGED
data/config/rails.yml
CHANGED
@@ -3,10 +3,18 @@ inherit_from:
|
|
3
3
|
- _rspec.yml
|
4
4
|
|
5
5
|
require:
|
6
|
+
- rubocop-i18n
|
6
7
|
- rubocop-rails
|
7
8
|
- rubocop-rake
|
8
9
|
- rubocop-rspec
|
9
|
-
|
10
|
+
|
11
|
+
##
|
12
|
+
# Merge instead of overwriting. For more details, see:
|
13
|
+
# https://docs.rubocop.org/rubocop/configuration.html#merging-arrays-using-inherit_mode
|
14
|
+
#
|
15
|
+
inherit_mode:
|
16
|
+
merge:
|
17
|
+
- Exclude
|
10
18
|
|
11
19
|
AllCops:
|
12
20
|
Exclude:
|
@@ -18,7 +26,6 @@ AllCops:
|
|
18
26
|
- 'tmp/**/*'
|
19
27
|
- 'vendor/**/*'
|
20
28
|
|
21
|
-
|
22
29
|
##
|
23
30
|
# Use Rails I18n instead of GetText.
|
24
31
|
#
|
@@ -31,6 +38,13 @@ I18n/GetText:
|
|
31
38
|
I18n/RailsI18n:
|
32
39
|
Enabled: true
|
33
40
|
|
41
|
+
##
|
42
|
+
# Translating the specs themselves doesn't make sense.
|
43
|
+
#
|
44
|
+
I18n/RailsI18n/DecorateString:
|
45
|
+
Exclude:
|
46
|
+
- 'spec/**/*'
|
47
|
+
|
34
48
|
##
|
35
49
|
# In the rest of the app, using the logger makes sense. However, it seems to
|
36
50
|
# not play nicely when generating the seeds, and `puts` is pretty
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-athix
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Buker
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-06
|
11
|
+
date: 2021-11-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -117,7 +117,6 @@ files:
|
|
117
117
|
- LICENSE.md
|
118
118
|
- README.md
|
119
119
|
- config/_layout.yml
|
120
|
-
- config/_naming.yml
|
121
120
|
- config/_rspec.yml
|
122
121
|
- config/_style.yml
|
123
122
|
- config/default.yml
|
@@ -128,8 +127,8 @@ licenses:
|
|
128
127
|
- MIT
|
129
128
|
metadata:
|
130
129
|
bug_tracker_uri: https://github.com/athix/rubocop-athix/issues
|
131
|
-
changelog_uri: https://github.com/athix/rubocop-athix/releases/tag/v0.0.
|
132
|
-
source_code_uri: https://github.com/athix/rubocop-athix/tree/v0.0.
|
130
|
+
changelog_uri: https://github.com/athix/rubocop-athix/releases/tag/v0.0.9
|
131
|
+
source_code_uri: https://github.com/athix/rubocop-athix/tree/v0.0.9
|
133
132
|
post_install_message:
|
134
133
|
rdoc_options: []
|
135
134
|
require_paths:
|
data/config/_naming.yml
DELETED
@@ -1,8 +0,0 @@
|
|
1
|
-
##
|
2
|
-
# Master/slave are technical terms that accurately describe the behavior of
|
3
|
-
# systems. The fact that human slavery existed and was a horrible practice does
|
4
|
-
# not mean that we should scrub those words from existance, nor their usage
|
5
|
-
# where they are the clearest words available to describe a type of behavior.
|
6
|
-
#
|
7
|
-
Naming/InclusiveLanguage:
|
8
|
-
Enabled: false
|