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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8e3a5ce5a12d2ea3a451b8c963c7d532dab58d1b39c0d5efaa7ea281e8ca565e
4
- data.tar.gz: f224ae458040cc7ecb3001527eeb47b96e128b77f0c22ba75dbec963b8d239b6
3
+ metadata.gz: '0173181b888c7d3dc958943cd9d21718cfe4014e10ced214949d3ced30471e32'
4
+ data.tar.gz: 6ff78cc19dcffff46a74acac13d5722595324226e26f6ce25ac4c367f55b68d7
5
5
  SHA512:
6
- metadata.gz: 94c56d8ddbcecdcb3b1c98c548a092fcff14b8ad2d13de91ead16658b50dd8fa4d8ddad4acf409138b0f80eced44e7f34dffa3edd4d737ecbd61ca328be2037a
7
- data.tar.gz: 2eedd6e906d5cdec65f55d08d27bc177f66d5a8af079a21195c7d0dedf7b13b28d45b74ab43659573a850b56775c65082235dd62ac24a13d5cefe72b04d1167e
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
@@ -1,8 +1,4 @@
1
- Layout/AlignArguments:
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
@@ -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.0.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", "~> 3.0.2")
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.0.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: 2020-01-17 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: 3.0.2
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: 3.0.2
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.0.2
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,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