rubocop-athix 0.0.3 → 0.0.8
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 +27 -0
- data/config/_naming.yml +8 -0
- data/config/default.yml +11 -2
- data/config/gems.yml +12 -1
- data/config/rails.yml +32 -1
- metadata +47 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76aaf6dcd8f565a00f9fecc8a786a5b4840a8e8bc8ca04701a67c1297c258bd4
|
4
|
+
data.tar.gz: 998684715fd5e0a8b4c06513398c5c56de28cd1a6ca2011b9f6cc8f9236db031
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8679e4f588fb2b1498431f979d7f225e1cbebf1d1ca9111fab0dd5bb12f26acb32bad7c71f8a9f0443fd30567a03b1383df5cf8b266995d94a9d112e7c7a6d7b
|
7
|
+
data.tar.gz: b5e26756dcdfae17c48bc868d962a6c60d9d8b2e4d451a2864d2fd9ce66035fa1fc574d6368d360a8991030ef0bec2fd8b25b1de912e3244f7e7906553e43cf0
|
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,7 +26,9 @@ 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'
|
31
|
+
gem 'rubocop-rake'
|
14
32
|
gem 'rubocop-rspec'
|
15
33
|
```
|
16
34
|
|
@@ -24,10 +42,19 @@ inherit_gem:
|
|
24
42
|
|
25
43
|
### Ruby Gems
|
26
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
|
+
|
27
53
|
**Gemfile**
|
28
54
|
|
29
55
|
```ruby
|
30
56
|
gem 'rubocop-athix'
|
57
|
+
gem 'rubocop-rake'
|
31
58
|
gem 'rubocop-rspec'
|
32
59
|
```
|
33
60
|
|
data/config/_naming.yml
ADDED
@@ -0,0 +1,8 @@
|
|
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
|
data/config/default.yml
CHANGED
@@ -1,12 +1,21 @@
|
|
1
1
|
inherit_from:
|
2
2
|
- _layout.yml
|
3
|
-
-
|
3
|
+
- _naming.yml
|
4
4
|
- _style.yml
|
5
5
|
|
6
6
|
require:
|
7
|
+
- rubocop-packaging
|
7
8
|
- rubocop-performance
|
9
|
+
- rubocop-thread_safety
|
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
|
8
18
|
|
9
19
|
AllCops:
|
10
20
|
NewCops: enable
|
11
|
-
SuggestExtensions: false
|
12
21
|
TargetRubyVersion: 3.0.0
|
data/config/gems.yml
CHANGED
@@ -1,4 +1,15 @@
|
|
1
|
-
inherit_from:
|
1
|
+
inherit_from:
|
2
|
+
- default.yml
|
3
|
+
- _rspec.yml
|
2
4
|
|
3
5
|
require:
|
6
|
+
- rubocop-rake
|
4
7
|
- rubocop-rspec
|
8
|
+
|
9
|
+
##
|
10
|
+
# Merge instead of overwriting. For more details, see:
|
11
|
+
# https://docs.rubocop.org/rubocop/configuration.html#merging-arrays-using-inherit_mode
|
12
|
+
#
|
13
|
+
inherit_mode:
|
14
|
+
merge:
|
15
|
+
- Exclude
|
data/config/rails.yml
CHANGED
@@ -1,9 +1,21 @@
|
|
1
|
-
inherit_from:
|
1
|
+
inherit_from:
|
2
|
+
- default.yml
|
3
|
+
- _rspec.yml
|
2
4
|
|
3
5
|
require:
|
6
|
+
- rubocop-i18n
|
4
7
|
- rubocop-rails
|
8
|
+
- rubocop-rake
|
5
9
|
- rubocop-rspec
|
6
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
|
18
|
+
|
7
19
|
AllCops:
|
8
20
|
Exclude:
|
9
21
|
- 'bin/**/*'
|
@@ -14,6 +26,25 @@ AllCops:
|
|
14
26
|
- 'tmp/**/*'
|
15
27
|
- 'vendor/**/*'
|
16
28
|
|
29
|
+
##
|
30
|
+
# Use Rails I18n instead of GetText.
|
31
|
+
#
|
32
|
+
I18n/GetText:
|
33
|
+
Enabled: false
|
34
|
+
|
35
|
+
##
|
36
|
+
# Use Rails I18n instead of GetText.
|
37
|
+
#
|
38
|
+
I18n/RailsI18n:
|
39
|
+
Enabled: true
|
40
|
+
|
41
|
+
##
|
42
|
+
# Translating the specs themselves doesn't make sense.
|
43
|
+
#
|
44
|
+
I18n/RailsI18n/DecorateString:
|
45
|
+
Exclude:
|
46
|
+
- 'spec/**/*'
|
47
|
+
|
17
48
|
##
|
18
49
|
# In the rest of the app, using the logger makes sense. However, it seems to
|
19
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.8
|
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-
|
11
|
+
date: 2021-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '1.0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rubocop-packaging
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0.5'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0.5'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: rubocop-performance
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,6 +52,20 @@ dependencies:
|
|
38
52
|
- - "~>"
|
39
53
|
- !ruby/object:Gem::Version
|
40
54
|
version: '1.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rubocop-thread_safety
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0.4'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0.4'
|
41
69
|
- !ruby/object:Gem::Dependency
|
42
70
|
name: rake
|
43
71
|
requirement: !ruby/object:Gem::Requirement
|
@@ -52,6 +80,20 @@ dependencies:
|
|
52
80
|
- - "~>"
|
53
81
|
- !ruby/object:Gem::Version
|
54
82
|
version: '12.0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: rubocop-rake
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0.6'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0.6'
|
55
97
|
- !ruby/object:Gem::Dependency
|
56
98
|
name: rubocop-rspec
|
57
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -75,6 +117,7 @@ files:
|
|
75
117
|
- LICENSE.md
|
76
118
|
- README.md
|
77
119
|
- config/_layout.yml
|
120
|
+
- config/_naming.yml
|
78
121
|
- config/_rspec.yml
|
79
122
|
- config/_style.yml
|
80
123
|
- config/default.yml
|
@@ -85,8 +128,8 @@ licenses:
|
|
85
128
|
- MIT
|
86
129
|
metadata:
|
87
130
|
bug_tracker_uri: https://github.com/athix/rubocop-athix/issues
|
88
|
-
changelog_uri: https://github.com/athix/rubocop-athix/releases/tag/v0.0.
|
89
|
-
source_code_uri: https://github.com/athix/rubocop-athix/tree/v0.0.
|
131
|
+
changelog_uri: https://github.com/athix/rubocop-athix/releases/tag/v0.0.8
|
132
|
+
source_code_uri: https://github.com/athix/rubocop-athix/tree/v0.0.8
|
90
133
|
post_install_message:
|
91
134
|
rdoc_options: []
|
92
135
|
require_paths:
|