rubocop-traitify 1.1.0 → 1.3.0.pre.alpha.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: 0d0a9b6b2cee2cc2bbb71673cc85b1d4600abea2223825ceaa586a39ef15e8f4
4
+ data.tar.gz: e469ef26a60dbe8c342bf30f2ee9c03faabd299c719daf91df22de492bb8699f
5
5
  SHA512:
6
- metadata.gz: c33aaaac1de66a37590caed20a0ceca2f540a1a62321e243e8278853faaf4583dd60a8fd2fa9ab64bc8d7996f9dff1751957b9e919c93dc9e7395946eb06ae0f
7
- data.tar.gz: 199004e84c0d41784620b59cb0781c51774f68072681d30471d7987a92fd9274e2c99ecb001eb929923360664c3a8783251cd2820ef94e5f5dea52bb4cc4f5eb
6
+ metadata.gz: 82363b0dfa4c5b8e28286dc19e99e7951f9f71bbebb5ddb9f023d045f9da1539a3ef4df8934ed956ade0799684c197ecb87d38610aa0f35c3bd7a2d2fc66e9b3
7
+ data.tar.gz: ed02d999eb27ba04edeed43aa39a59253140646db70317ea5328038b825a9e6a8a65c256c153834abc1ff4e146c228024002bf6cd68e5230842f0c844c850dcf
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.3.0.pre.alpha.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.7"
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", "~> 7.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.3.0.pre.alpha.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tom Prats
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-23 00:00:00.000000000 Z
11
+ date: 2024-10-02 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: 7.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: 7.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
@@ -51,7 +50,7 @@ homepage: https://github.com/traitify/rubocop-traitify
51
50
  licenses:
52
51
  - MIT
53
52
  metadata: {}
54
- post_install_message:
53
+ post_install_message:
55
54
  rdoc_options: []
56
55
  require_paths:
57
56
  - lib
@@ -59,15 +58,15 @@ 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.7'
63
62
  required_rubygems_version: !ruby/object:Gem::Requirement
64
63
  requirements:
65
- - - ">="
64
+ - - ">"
66
65
  - !ruby/object:Gem::Version
67
- version: '0'
66
+ version: 1.3.1
68
67
  requirements: []
69
- rubygems_version: 3.1.6
70
- signing_key:
68
+ rubygems_version: 3.1.4
69
+ signing_key:
71
70
  specification_version: 4
72
71
  summary: Default Rubocop config for Traitify Apps
73
72
  test_files: []
@@ -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