rubocop-traitify 0.0.1 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +0 -5
- data/config/default.yml +1 -0
- data/config/rubocop-layout.yml +4 -0
- data/config/rubocop-rails.yml +2 -0
- data/config/rubocop-todo.yml +30 -7
- data/lib/rubocop/traitify/version.rb +1 -1
- data/rubocop-traitify.gemspec +2 -3
- metadata +6 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8e3a5ce5a12d2ea3a451b8c963c7d532dab58d1b39c0d5efaa7ea281e8ca565e
|
4
|
+
data.tar.gz: f224ae458040cc7ecb3001527eeb47b96e128b77f0c22ba75dbec963b8d239b6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 94c56d8ddbcecdcb3b1c98c548a092fcff14b8ad2d13de91ead16658b50dd8fa4d8ddad4acf409138b0f80eced44e7f34dffa3edd4d737ecbd61ca328be2037a
|
7
|
+
data.tar.gz: 2eedd6e906d5cdec65f55d08d27bc177f66d5a8af079a21195c7d0dedf7b13b28d45b74ab43659573a850b56775c65082235dd62ac24a13d5cefe72b04d1167e
|
data/README.md
CHANGED
@@ -4,12 +4,7 @@ Traitify's default configuration for [RuboCop](https://github.com/rubocop-hq/rub
|
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
7
|
-
Until `rubocop-airbnb` is updated to support ruby 2.6 a fork is required
|
8
|
-
|
9
7
|
```
|
10
|
-
gem "rubocop-airbnb",
|
11
|
-
git: "https://github.com/mcamara/ruby.git",
|
12
|
-
glob: "rubocop-airbnb/*.gemspec" # Until airbnb supports ruby 2.6
|
13
8
|
gem "rubocop-traitify"
|
14
9
|
```
|
15
10
|
|
data/config/default.yml
CHANGED
data/config/rubocop-layout.yml
CHANGED
data/config/rubocop-todo.yml
CHANGED
@@ -1,11 +1,34 @@
|
|
1
|
-
# TODO: Disabled until rule fixed for symbols
|
2
|
-
Airbnb/ClassName:
|
3
|
-
Enabled: false
|
4
|
-
|
5
1
|
# TODO: Disabled until rule fixed for symbols
|
6
2
|
Airbnb/FactoryClassUseString:
|
7
3
|
Enabled: false
|
8
4
|
|
9
|
-
# TODO:
|
10
|
-
|
11
|
-
|
5
|
+
# TODO: Evaluate the following cops added between 0.58 and 0.76
|
6
|
+
# Gemspec/RubyVersionGlobalsUsage
|
7
|
+
# Layout/AlignArguments
|
8
|
+
# Layout/IndentFirstArgument
|
9
|
+
# Layout/IndentFirstArrayElement
|
10
|
+
# Layout/IndentFirstHashElement
|
11
|
+
# Lint/DisjunctiveAssignmentInConstructor
|
12
|
+
# Lint/RedundantCopDisableDirective
|
13
|
+
# Lint/RedundantCopEnableDirective
|
14
|
+
# Lint/RedundantRequireStatement
|
15
|
+
# Lint/RedundantSplatExpansion
|
16
|
+
# Lint/SafeNavigationWithEmpty
|
17
|
+
# Lint/SendWithMixinArgument
|
18
|
+
# Style/DoubleCopDisableDirective
|
19
|
+
# Style/FloatDivision
|
20
|
+
# Style/MultilineWhenThen
|
21
|
+
# Style/NegatedUnless
|
22
|
+
# Style/RedundantCapital
|
23
|
+
# Style/RedundantCondition
|
24
|
+
# Style/RedundantInterpolation
|
25
|
+
# Style/RedundantPercentQ
|
26
|
+
# Style/RedundantSort
|
27
|
+
# Also added but default to disabled
|
28
|
+
# Bundler/GemComment
|
29
|
+
# Layout/HeredocArgumentClosingParenthesis
|
30
|
+
# Layout/MultilineArrayLineBreaks
|
31
|
+
# Layout/MultilineMethodArgumentLineBreaks
|
32
|
+
# Lint/HeredocMethodCallPosition
|
33
|
+
# Style/ConstantVisibility
|
34
|
+
# Style/MultilineMethodSignature
|
data/rubocop-traitify.gemspec
CHANGED
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.license = "MIT"
|
15
15
|
spec.version = RuboCop::Traitify::VERSION
|
16
16
|
spec.platform = Gem::Platform::RUBY
|
17
|
-
spec.required_ruby_version = ">= 2.
|
17
|
+
spec.required_ruby_version = ">= 2.3"
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
spec.files = Dir[
|
20
20
|
"{config,lib}/**/*",
|
@@ -24,6 +24,5 @@ Gem::Specification.new do |spec|
|
|
24
24
|
"Gemfile"
|
25
25
|
]
|
26
26
|
|
27
|
-
spec.add_dependency("rubocop", "~> 0.
|
28
|
-
spec.add_dependency("rubocop-airbnb", "~> 2.0.0")
|
27
|
+
spec.add_dependency("rubocop-airbnb", "~> 3.0.2")
|
29
28
|
end
|
metadata
CHANGED
@@ -1,43 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-traitify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 1.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom Prats
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-17 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.62.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.62.0
|
27
13
|
- !ruby/object:Gem::Dependency
|
28
14
|
name: rubocop-airbnb
|
29
15
|
requirement: !ruby/object:Gem::Requirement
|
30
16
|
requirements:
|
31
17
|
- - "~>"
|
32
18
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
19
|
+
version: 3.0.2
|
34
20
|
type: :runtime
|
35
21
|
prerelease: false
|
36
22
|
version_requirements: !ruby/object:Gem::Requirement
|
37
23
|
requirements:
|
38
24
|
- - "~>"
|
39
25
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
26
|
+
version: 3.0.2
|
41
27
|
description: |2
|
42
28
|
Traitify's Ruby configuration for Rubocop. Heavily influenced by (as well as dependent on)
|
43
29
|
Airbnb's https://github.com/airbnb/ruby
|
@@ -53,6 +39,7 @@ files:
|
|
53
39
|
- config/rubocop-airbnb.yml
|
54
40
|
- config/rubocop-layout.yml
|
55
41
|
- config/rubocop-lint.yml
|
42
|
+
- config/rubocop-rails.yml
|
56
43
|
- config/rubocop-style.yml
|
57
44
|
- config/rubocop-todo.yml
|
58
45
|
- lib/rubocop-traitify.rb
|
@@ -72,7 +59,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
72
59
|
requirements:
|
73
60
|
- - ">="
|
74
61
|
- !ruby/object:Gem::Version
|
75
|
-
version: '2.
|
62
|
+
version: '2.3'
|
76
63
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
77
64
|
requirements:
|
78
65
|
- - ">="
|