rubocop-traitify 1.0.0 → 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/config/default.yml +0 -1
- data/config/rubocop-airbnb.yml +2 -3
- data/config/rubocop-layout.yml +11 -5
- data/config/rubocop-lint.yml +1 -0
- data/config/rubocop-rails.yml +9 -0
- data/config/rubocop-style.yml +5 -0
- data/lib/rubocop/traitify/version.rb +1 -1
- data/rubocop-traitify.gemspec +3 -3
- metadata +7 -8
- data/config/rubocop-todo.yml +0 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '0173181b888c7d3dc958943cd9d21718cfe4014e10ced214949d3ced30471e32'
|
4
|
+
data.tar.gz: 6ff78cc19dcffff46a74acac13d5722595324226e26f6ce25ac4c367f55b68d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 43c6197ffa3326055f83ec781233ed21128b985a7155d0357f7fde6df4f20b20ce89ce506da5ccba33130329e0478dc8c87cd46b4d16bddf70283a681efe7654
|
7
|
+
data.tar.gz: ea165d2d02090dfe2c6c6b47e363ba52f451e08b0acd4d4c935b74e34add7c0e3e78326cfffdaecd4052b5430ba6b8384c5cbde4c446ccaa9565b1784d040d20
|
data/config/default.yml
CHANGED
data/config/rubocop-airbnb.yml
CHANGED
data/config/rubocop-layout.yml
CHANGED
@@ -1,8 +1,4 @@
|
|
1
|
-
Layout/
|
2
|
-
Enabled: true
|
3
|
-
EnforcedStyle: with_fixed_indentation
|
4
|
-
|
5
|
-
Layout/AlignParameters:
|
1
|
+
Layout/ArgumentAlignment:
|
6
2
|
Enabled: true
|
7
3
|
EnforcedStyle: with_fixed_indentation
|
8
4
|
|
@@ -18,6 +14,16 @@ Layout/EndAlignment:
|
|
18
14
|
Enabled: true
|
19
15
|
EnforcedStyleAlignWith: start_of_line
|
20
16
|
|
17
|
+
Layout/FirstMethodParameterLineBreak:
|
18
|
+
Enabled: true
|
19
|
+
|
20
|
+
Layout/MultilineMethodParameterLineBreaks:
|
21
|
+
Enabled: true
|
22
|
+
|
23
|
+
Layout/ParameterAlignment:
|
24
|
+
Enabled: true
|
25
|
+
EnforcedStyle: with_fixed_indentation
|
26
|
+
|
21
27
|
Layout/SpaceBeforeBlockBraces:
|
22
28
|
Enabled: true
|
23
29
|
EnforcedStyle: no_space
|
data/config/rubocop-lint.yml
CHANGED
data/config/rubocop-rails.yml
CHANGED
data/config/rubocop-style.yml
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
# NOTE: Helpful for chaining and simplicity
|
1
2
|
Style/BlockDelimiters:
|
2
3
|
Enabled: false
|
3
4
|
|
@@ -6,12 +7,15 @@ Style/MixinUsage:
|
|
6
7
|
Exclude:
|
7
8
|
- bin/*
|
8
9
|
|
10
|
+
# NOTE: Easy to understand
|
9
11
|
Style/MultilineIfModifier:
|
10
12
|
Enabled: false
|
11
13
|
|
14
|
+
# NOTE: Easy to understand
|
12
15
|
Style/MultilineTernaryOperator:
|
13
16
|
Enabled: false
|
14
17
|
|
18
|
+
# NOTE: Prefer an array
|
15
19
|
Style/PercentLiteralDelimiters:
|
16
20
|
Enabled: false
|
17
21
|
|
@@ -19,6 +23,7 @@ Style/RaiseArgs:
|
|
19
23
|
Enabled: true
|
20
24
|
EnforcedStyle: compact
|
21
25
|
|
26
|
+
# NOTE: Easy to understand
|
22
27
|
Style/RescueModifier:
|
23
28
|
Enabled: false
|
24
29
|
|
data/rubocop-traitify.gemspec
CHANGED
@@ -9,12 +9,12 @@ Gem::Specification.new do |spec|
|
|
9
9
|
Airbnb's https://github.com/airbnb/ruby
|
10
10
|
EOF
|
11
11
|
spec.authors = ["Tom Prats"]
|
12
|
-
spec.email = ["tom@
|
12
|
+
spec.email = ["tom.prats@paradox.ai"]
|
13
13
|
spec.homepage = "https://github.com/traitify/rubocop-traitify"
|
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.5"
|
18
18
|
spec.require_paths = ["lib"]
|
19
19
|
spec.files = Dir[
|
20
20
|
"{config,lib}/**/*",
|
@@ -24,5 +24,5 @@ Gem::Specification.new do |spec|
|
|
24
24
|
"Gemfile"
|
25
25
|
]
|
26
26
|
|
27
|
-
spec.add_dependency("rubocop-airbnb", "~>
|
27
|
+
spec.add_dependency("rubocop-airbnb", "~> 6.0.0")
|
28
28
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-traitify
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.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: 2024-01-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop-airbnb
|
@@ -16,19 +16,19 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 6.0.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 6.0.0
|
27
27
|
description: |2
|
28
28
|
Traitify's Ruby configuration for Rubocop. Heavily influenced by (as well as dependent on)
|
29
29
|
Airbnb's https://github.com/airbnb/ruby
|
30
30
|
email:
|
31
|
-
- tom@
|
31
|
+
- tom.prats@paradox.ai
|
32
32
|
executables: []
|
33
33
|
extensions: []
|
34
34
|
extra_rdoc_files: []
|
@@ -41,7 +41,6 @@ files:
|
|
41
41
|
- config/rubocop-lint.yml
|
42
42
|
- config/rubocop-rails.yml
|
43
43
|
- config/rubocop-style.yml
|
44
|
-
- config/rubocop-todo.yml
|
45
44
|
- lib/rubocop-traitify.rb
|
46
45
|
- lib/rubocop/traitify.rb
|
47
46
|
- lib/rubocop/traitify/inject.rb
|
@@ -59,14 +58,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
59
58
|
requirements:
|
60
59
|
- - ">="
|
61
60
|
- !ruby/object:Gem::Version
|
62
|
-
version: '2.
|
61
|
+
version: '2.5'
|
63
62
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
63
|
requirements:
|
65
64
|
- - ">="
|
66
65
|
- !ruby/object:Gem::Version
|
67
66
|
version: '0'
|
68
67
|
requirements: []
|
69
|
-
rubygems_version: 3.
|
68
|
+
rubygems_version: 3.1.4
|
70
69
|
signing_key:
|
71
70
|
specification_version: 4
|
72
71
|
summary: Default Rubocop config for Traitify Apps
|
data/config/rubocop-todo.yml
DELETED
@@ -1,34 +0,0 @@
|
|
1
|
-
# TODO: Disabled until rule fixed for symbols
|
2
|
-
Airbnb/FactoryClassUseString:
|
3
|
-
Enabled: false
|
4
|
-
|
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
|