rubocop-athix 0.0.1 → 0.0.6
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 +15 -0
- data/config/_layout.yml +14 -7
- data/config/_naming.yml +8 -0
- data/config/default.yml +11 -3
- data/config/gems.yml +4 -1
- data/config/rails.yml +48 -4
- metadata +47 -5
- data/config/_metrics.yml +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64af873e16212eaf3e6d879d170bf7128d9da56b5e56ebeb1b0602fe46c08137
|
4
|
+
data.tar.gz: d1622a356dc3a7616ae152e7d3a8ed00f57213b6291d3b07fc54d0117e079042
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4000b91283f761e7e788733cef485d994f449a597878a36105fa14211a3812ba478e4a32fc13e667811a4cc3dc4377d11ab83f64c478b6ca56c4f5eb59c1222e
|
7
|
+
data.tar.gz: b1c044695f0235d79cbd5a9c1838fc17b5bb8ffaf2f289c002a91994f7ed69553019840644dc51c6bb250d5c5a29c4eea125190709f7440ec1c4e1fb5ba4a91f
|
data/README.md
CHANGED
@@ -10,7 +10,9 @@ Contains my commonly used styling overrides for Rubocop.
|
|
10
10
|
|
11
11
|
```ruby
|
12
12
|
gem 'rubocop-athix'
|
13
|
+
gem 'rubocop-i18n'
|
13
14
|
gem 'rubocop-rails'
|
15
|
+
gem 'rubocop-rake'
|
14
16
|
gem 'rubocop-rspec'
|
15
17
|
```
|
16
18
|
|
@@ -24,8 +26,19 @@ inherit_gem:
|
|
24
26
|
|
25
27
|
### Ruby Gems
|
26
28
|
|
29
|
+
**Gemspec**
|
30
|
+
|
31
|
+
```ruby
|
32
|
+
s.add_development_dependency 'rubocop-athix'
|
33
|
+
s.add_development_dependency 'rubocop-rake'
|
34
|
+
s.add_development_dependency 'rubocop-rspec'
|
35
|
+
```
|
36
|
+
|
37
|
+
**Gemfile**
|
38
|
+
|
27
39
|
```ruby
|
28
40
|
gem 'rubocop-athix'
|
41
|
+
gem 'rubocop-rake'
|
29
42
|
gem 'rubocop-rspec'
|
30
43
|
```
|
31
44
|
|
@@ -39,6 +52,8 @@ inherit_gem:
|
|
39
52
|
|
40
53
|
### Other Ruby code
|
41
54
|
|
55
|
+
**Gemfile**
|
56
|
+
|
42
57
|
```ruby
|
43
58
|
gem 'rubocop-athix'
|
44
59
|
```
|
data/config/_layout.yml
CHANGED
@@ -10,24 +10,31 @@ Layout/LineLength:
|
|
10
10
|
IgnoredPatterns: ['it { should']
|
11
11
|
Max: 80
|
12
12
|
|
13
|
+
##
|
13
14
|
# Variable assignment can be indented weirdly, so align to the ending statement
|
14
|
-
# instead
|
15
|
+
# instead.
|
16
|
+
#
|
15
17
|
Layout/CaseIndentation:
|
16
18
|
EnforcedStyle: end
|
17
|
-
|
19
|
+
|
20
|
+
##
|
21
|
+
# Lines can get stupidly long if we indent it to the other params/args.
|
22
|
+
#
|
18
23
|
Layout/ParameterAlignment:
|
19
24
|
EnforcedStyle: with_fixed_indentation
|
20
25
|
Layout/ArgumentAlignment:
|
21
26
|
EnforcedStyle: with_fixed_indentation
|
22
|
-
|
27
|
+
|
28
|
+
##
|
29
|
+
# Force prettier hash alignment.
|
30
|
+
#
|
23
31
|
Layout/HashAlignment:
|
24
32
|
EnforcedHashRocketStyle: table
|
25
33
|
EnforcedColonStyle: table
|
26
|
-
|
27
|
-
|
28
|
-
Layout/DotPosition:
|
29
|
-
EnforcedStyle: trailing
|
34
|
+
|
35
|
+
##
|
30
36
|
# Allow extra spaces when aligning to other operators...
|
31
37
|
# (doesn't seem to work all the time though)
|
38
|
+
#
|
32
39
|
Layout/SpaceAroundOperators:
|
33
40
|
AllowForAlignment: true
|
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,13 +1,21 @@
|
|
1
1
|
inherit_from:
|
2
2
|
- _layout.yml
|
3
|
-
-
|
4
|
-
- _rspec.yml
|
3
|
+
- _naming.yml
|
5
4
|
- _style.yml
|
6
5
|
|
7
6
|
require:
|
7
|
+
- rubocop-packaging
|
8
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
|
9
18
|
|
10
19
|
AllCops:
|
11
20
|
NewCops: enable
|
12
|
-
SuggestExtensions: false
|
13
21
|
TargetRubyVersion: 3.0.0
|
data/config/gems.yml
CHANGED
data/config/rails.yml
CHANGED
@@ -1,17 +1,61 @@
|
|
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
|
|
7
11
|
AllCops:
|
8
12
|
Exclude:
|
9
13
|
- 'bin/**/*'
|
10
|
-
- 'config/**/*'
|
11
14
|
- 'coverage/**/*'
|
12
|
-
- 'db
|
15
|
+
- 'db/schema.rb'
|
13
16
|
- 'lib/templates/**/*'
|
14
17
|
- 'log/**/*'
|
15
18
|
- 'tmp/**/*'
|
16
19
|
- 'vendor/**/*'
|
17
|
-
|
20
|
+
|
21
|
+
##
|
22
|
+
# Use Rails I18n instead of GetText.
|
23
|
+
#
|
24
|
+
I18n/GetText:
|
25
|
+
Enabled: false
|
26
|
+
|
27
|
+
##
|
28
|
+
# Use Rails I18n instead of GetText.
|
29
|
+
#
|
30
|
+
I18n/RailsI18n:
|
31
|
+
Enabled: true
|
32
|
+
|
33
|
+
##
|
34
|
+
# Translating the specs themselves doesn't make sense.
|
35
|
+
#
|
36
|
+
I18n/RailsI18n/DecorateString:
|
37
|
+
Exclude: 'spec/**/*'
|
38
|
+
|
39
|
+
##
|
40
|
+
# In the rest of the app, using the logger makes sense. However, it seems to
|
41
|
+
# not play nicely when generating the seeds, and `puts` is pretty
|
42
|
+
# straight-forward.
|
43
|
+
#
|
44
|
+
Rails/Output:
|
45
|
+
Exclude:
|
46
|
+
- 'db/seeds/*.rb'
|
47
|
+
- 'db/seeds.rb'
|
48
|
+
|
49
|
+
##
|
50
|
+
# This cop makes no sense in the context of migrations.
|
51
|
+
#
|
52
|
+
Metrics/AbcSize:
|
53
|
+
Exclude:
|
54
|
+
- 'db/migrate/*.rb'
|
55
|
+
|
56
|
+
##
|
57
|
+
# This cop makes no sense in the context of migrations.
|
58
|
+
#
|
59
|
+
Metrics/MethodLength:
|
60
|
+
Exclude:
|
61
|
+
- 'db/migrate/*.rb'
|
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.6
|
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,7 +117,7 @@ files:
|
|
75
117
|
- LICENSE.md
|
76
118
|
- README.md
|
77
119
|
- config/_layout.yml
|
78
|
-
- config/
|
120
|
+
- config/_naming.yml
|
79
121
|
- config/_rspec.yml
|
80
122
|
- config/_style.yml
|
81
123
|
- config/default.yml
|
@@ -86,8 +128,8 @@ licenses:
|
|
86
128
|
- MIT
|
87
129
|
metadata:
|
88
130
|
bug_tracker_uri: https://github.com/athix/rubocop-athix/issues
|
89
|
-
changelog_uri: https://github.com/athix/rubocop-athix/releases/tag/v0.0.
|
90
|
-
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.6
|
132
|
+
source_code_uri: https://github.com/athix/rubocop-athix/tree/v0.0.6
|
91
133
|
post_install_message:
|
92
134
|
rdoc_options: []
|
93
135
|
require_paths:
|
data/config/_metrics.yml
DELETED