rubocop-traitify 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: feda3746b63620b9eb532f8d1196d0ad0244a1fe601c295c3114dc8da374ca17
4
- data.tar.gz: ffbd4c54880b60291905ac69967933fd70c3e399c8953b8468d067f661d11110
3
+ metadata.gz: '0173181b888c7d3dc958943cd9d21718cfe4014e10ced214949d3ced30471e32'
4
+ data.tar.gz: 6ff78cc19dcffff46a74acac13d5722595324226e26f6ce25ac4c367f55b68d7
5
5
  SHA512:
6
- metadata.gz: c33aaaac1de66a37590caed20a0ceca2f540a1a62321e243e8278853faaf4583dd60a8fd2fa9ab64bc8d7996f9dff1751957b9e919c93dc9e7395946eb06ae0f
7
- data.tar.gz: 199004e84c0d41784620b59cb0781c51774f68072681d30471d7987a92fd9274e2c99ecb001eb929923360664c3a8783251cd2820ef94e5f5dea52bb4cc4f5eb
6
+ metadata.gz: 43c6197ffa3326055f83ec781233ed21128b985a7155d0357f7fde6df4f20b20ce89ce506da5ccba33130329e0478dc8c87cd46b4d16bddf70283a681efe7654
7
+ data.tar.gz: ea165d2d02090dfe2c6c6b47e363ba52f451e08b0acd4d4c935b74e34add7c0e3e78326cfffdaecd4052b5430ba6b8384c5cbde4c446ccaa9565b1784d040d20
data/config/default.yml CHANGED
@@ -9,7 +9,6 @@ inherit_from:
9
9
  - ./rubocop-lint.yml
10
10
  - ./rubocop-rails.yml
11
11
  - ./rubocop-style.yml
12
- - ./rubocop-todo.yml
13
12
 
14
13
  # TODO: Remove. Move to specific rules that need it
15
14
  inherit_mode:
@@ -1,11 +1,10 @@
1
1
  require:
2
2
  - rubocop-airbnb
3
3
 
4
- Airbnb/DefaultScope:
5
- Enabled: false
6
-
4
+ # NOTE: Cop is too restrictive
7
5
  Airbnb/SimpleModifierConditional:
8
6
  Enabled: false
9
7
 
8
+ # NOTE: Cop is too restrictive
10
9
  Airbnb/SimpleUnless:
11
10
  Enabled: false
@@ -14,6 +14,12 @@ Layout/EndAlignment:
14
14
  Enabled: true
15
15
  EnforcedStyleAlignWith: start_of_line
16
16
 
17
+ Layout/FirstMethodParameterLineBreak:
18
+ Enabled: true
19
+
20
+ Layout/MultilineMethodParameterLineBreaks:
21
+ Enabled: true
22
+
17
23
  Layout/ParameterAlignment:
18
24
  Enabled: true
19
25
  EnforcedStyle: with_fixed_indentation
@@ -1,2 +1,3 @@
1
+ # NOTE: Allows for concise readable code
1
2
  Lint/AssignmentInCondition:
2
3
  Enabled: false
@@ -1,2 +1,11 @@
1
+ # NOTE: Cop is too restrictive
1
2
  Rails/HelperInstanceVariable:
2
3
  Enabled: false
4
+
5
+ # NOTE: Rendering inline is useful for 1 line views
6
+ Rails/RenderInline:
7
+ Enabled: false
8
+
9
+ Rails/WhereExists:
10
+ Enabled: true
11
+ EnforcedStyle: where
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  module RuboCop
2
2
  module Traitify
3
- VERSION = "1.1.0"
3
+ VERSION = "1.2.0"
4
4
  end
5
5
  end
@@ -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@traitify.com"]
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.3"
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", "~> 4.0.0")
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.1.0
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: 2022-03-23 00:00:00.000000000 Z
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: 4.0.0
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: 4.0.0
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@traitify.com
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.3'
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.1.6
68
+ rubygems_version: 3.1.4
70
69
  signing_key:
71
70
  specification_version: 4
72
71
  summary: Default Rubocop config for Traitify Apps
@@ -1,7 +0,0 @@
1
- # TODO: Disabled until rule fixed for symbols
2
- Airbnb/FactoryClassUseString:
3
- Enabled: false
4
-
5
- # Disabled until rubocop 1.7.0
6
- Lint/BinaryOperatorWithIdenticalOperands:
7
- Enabled: false