rubocop-fnando 0.0.9 → 0.0.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop-rails.yml +9 -10
- data/.rubocop.yml +21 -4
- data/README.md +17 -5
- data/rubocop-fnando.gemspec +4 -1
- metadata +32 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1d2d1038dda9fd95df0c6917966c38d8a5ee44212efaa96136acff031ebd6b7
|
4
|
+
data.tar.gz: 300af58a06f96d535db84bf6ba2d2fba3962f0e0ef95204dae8fff7c7e195622
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 979a98c11e4eac9a785bce44368ebdb7df84188d3382d8bef8656159e3f1093e370a94f66d2f0262be99a535ca82a3141305301fd6893b7fcd661f02d5db2d6c
|
7
|
+
data.tar.gz: 939f133fc95ada6c03b06c8949d7b914314a279ed51832eb2211f518d2535e037b1d6e9b763d2a9a955d761a454262d552fbb962fb3c6cde41052952255a4ead
|
data/.rubocop-rails.yml
CHANGED
@@ -1,5 +1,4 @@
|
|
1
1
|
---
|
2
|
-
|
3
2
|
inherit_gem:
|
4
3
|
rubocop-fnando: .rubocop.yml
|
5
4
|
|
@@ -12,21 +11,21 @@ require:
|
|
12
11
|
|
13
12
|
Metrics/AbcSize:
|
14
13
|
Exclude:
|
15
|
-
- !ruby/regexp
|
16
|
-
- !ruby/regexp
|
17
|
-
- !ruby/regexp
|
14
|
+
- !ruby/regexp /db\/.*?\.rb$/
|
15
|
+
- !ruby/regexp /config\/config\.rb$/
|
16
|
+
- !ruby/regexp /test\/support\/.*?\.rb$/
|
18
17
|
|
19
18
|
Metrics/BlockLength:
|
20
19
|
Exclude:
|
21
|
-
- !ruby/regexp
|
22
|
-
- !ruby/regexp
|
23
|
-
- !ruby/regexp
|
24
|
-
- !ruby/regexp
|
20
|
+
- !ruby/regexp /config\/config\.rb$/
|
21
|
+
- !ruby/regexp /config\/routes\.rb$/
|
22
|
+
- !ruby/regexp /config\/routes\/.*?\.rb$/
|
23
|
+
- !ruby/regexp /test\/support\/factories\/.*?\.rb$/
|
25
24
|
|
26
25
|
Layout/LineLength:
|
27
26
|
Exclude:
|
28
|
-
- !ruby/regexp
|
29
|
-
- !ruby/regexp
|
27
|
+
- !ruby/regexp /db\/.*?\.rb$/
|
28
|
+
- !ruby/regexp /config\/environments\/.*?\.rb$/
|
30
29
|
|
31
30
|
Rails/Delegate:
|
32
31
|
Enabled: false
|
data/.rubocop.yml
CHANGED
@@ -1,9 +1,14 @@
|
|
1
1
|
---
|
2
|
+
require:
|
3
|
+
- rubocop-performance
|
4
|
+
|
2
5
|
AllCops:
|
3
6
|
Exclude:
|
4
|
-
- !ruby/regexp
|
5
|
-
- !ruby/regexp
|
6
|
-
- !ruby/regexp
|
7
|
+
- !ruby/regexp /\/node_modules\//
|
8
|
+
- !ruby/regexp /\/bin\//
|
9
|
+
- !ruby/regexp /\/db\/schema\.rb$/
|
10
|
+
- !ruby/regexp /\/vendor\//
|
11
|
+
- !ruby/regexp /\/gemfiles\//
|
7
12
|
|
8
13
|
Lint/DeprecatedOpenSSLConstant:
|
9
14
|
Enabled: true
|
@@ -14,6 +19,12 @@ Lint/RaiseException:
|
|
14
19
|
Lint/StructNewOverride:
|
15
20
|
Enabled: true
|
16
21
|
|
22
|
+
Lint/MixedRegexpCaptureTypes:
|
23
|
+
Enabled: true
|
24
|
+
|
25
|
+
Layout/EmptyLinesAroundAttributeAccessor:
|
26
|
+
Enabled: true
|
27
|
+
|
17
28
|
Layout/SpaceAroundMethodCallOperator:
|
18
29
|
Enabled: true
|
19
30
|
|
@@ -88,7 +99,7 @@ Style/HashEachMethods:
|
|
88
99
|
Enabled: true
|
89
100
|
|
90
101
|
Style/HashTransformKeys:
|
91
|
-
Enabled:
|
102
|
+
Enabled: false
|
92
103
|
|
93
104
|
Style/HashTransformValues:
|
94
105
|
Enabled: true
|
@@ -98,3 +109,9 @@ Style/ExponentialNotation:
|
|
98
109
|
|
99
110
|
Style/SlicingWithRange:
|
100
111
|
Enabled: false
|
112
|
+
|
113
|
+
Style/RedundantRegexpCharacterClass:
|
114
|
+
Enabled: true
|
115
|
+
|
116
|
+
Style/RedundantRegexpEscape:
|
117
|
+
Enabled: true
|
data/README.md
CHANGED
@@ -45,18 +45,30 @@ AllCops:
|
|
45
45
|
|
46
46
|
## Development
|
47
47
|
|
48
|
-
After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
48
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run
|
49
|
+
`rake test` to run the tests. You can also run `bin/console` for an interactive
|
50
|
+
prompt that will allow you to experiment.
|
49
51
|
|
50
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To
|
52
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To
|
53
|
+
release a new version, update the version number in `version.rb`, and then run
|
54
|
+
`bundle exec rake release`, which will create a git tag for the version, push
|
55
|
+
git commits and tags, and push the `.gem` file to
|
56
|
+
[rubygems.org](https://rubygems.org).
|
51
57
|
|
52
58
|
## Contributing
|
53
59
|
|
54
|
-
Bug reports and pull requests are welcome on GitHub at
|
60
|
+
Bug reports and pull requests are welcome on GitHub at
|
61
|
+
https://github.com/fnando/rubocop-fnando. This project is intended to be a safe,
|
62
|
+
welcoming space for collaboration, and contributors are expected to adhere to
|
63
|
+
the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
55
64
|
|
56
65
|
## License
|
57
66
|
|
58
|
-
The gem is available as open source under the terms of the
|
67
|
+
The gem is available as open source under the terms of the
|
68
|
+
[MIT License](https://opensource.org/licenses/MIT).
|
59
69
|
|
60
70
|
## Code of Conduct
|
61
71
|
|
62
|
-
Everyone interacting in the Rubocop::Fnando project’s codebases, issue trackers,
|
72
|
+
Everyone interacting in the Rubocop::Fnando project’s codebases, issue trackers,
|
73
|
+
chat rooms and mailing lists is expected to follow the
|
74
|
+
[code of conduct](https://github.com/fnando/rubocop-fnando/blob/main/CODE_OF_CONDUCT.md).
|
data/rubocop-fnando.gemspec
CHANGED
@@ -2,9 +2,10 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "rubocop-fnando"
|
5
|
-
spec.version = "0.0.
|
5
|
+
spec.version = "0.0.14"
|
6
6
|
spec.authors = ["Nando Vieira"]
|
7
7
|
spec.email = ["me@fnando.com"]
|
8
|
+
spec.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
8
9
|
|
9
10
|
spec.summary = "Rubocop configuration"
|
10
11
|
spec.description = spec.summary
|
@@ -20,6 +21,8 @@ Gem::Specification.new do |spec|
|
|
20
21
|
spec.executables = spec.files.grep(%r{^exe/}) {|f| File.basename(f) }
|
21
22
|
spec.require_paths = ["lib"]
|
22
23
|
|
24
|
+
spec.add_dependency "rubocop"
|
25
|
+
spec.add_dependency "rubocop-performance"
|
23
26
|
spec.add_development_dependency "bundler"
|
24
27
|
spec.add_development_dependency "rake"
|
25
28
|
end
|
metadata
CHANGED
@@ -1,15 +1,43 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-fnando
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nando Vieira
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rubocop
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rubocop-performance
|
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'
|
13
41
|
- !ruby/object:Gem::Dependency
|
14
42
|
name: bundler
|
15
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,14 +94,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
66
94
|
requirements:
|
67
95
|
- - ">="
|
68
96
|
- !ruby/object:Gem::Version
|
69
|
-
version:
|
97
|
+
version: 2.3.0
|
70
98
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
71
99
|
requirements:
|
72
100
|
- - ">="
|
73
101
|
- !ruby/object:Gem::Version
|
74
102
|
version: '0'
|
75
103
|
requirements: []
|
76
|
-
rubygems_version: 3.1.
|
104
|
+
rubygems_version: 3.1.4
|
77
105
|
signing_key:
|
78
106
|
specification_version: 4
|
79
107
|
summary: Rubocop configuration
|