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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b1b9dd66d1ad14afa05e07d1efe793626c5585781e8b1b836ed527d5cf6238a6
4
- data.tar.gz: b15ebbd0ab986dfd32936338b14af5a53ae7a56bc7d77cb5bec7680367cf8f0c
3
+ metadata.gz: 8e3a5ce5a12d2ea3a451b8c963c7d532dab58d1b39c0d5efaa7ea281e8ca565e
4
+ data.tar.gz: f224ae458040cc7ecb3001527eeb47b96e128b77f0c22ba75dbec963b8d239b6
5
5
  SHA512:
6
- metadata.gz: 84ea9ec694dba73e070d35bb7d7f4a37e5584187f22feb1567c816836b4193a8dc1bb4ada5670aca446858ae6d7a2d58fb5a67d0d053d24fc0179b82d3723a4b
7
- data.tar.gz: 9745a65d7710cb51a174ef31bff2872a0ab234bcdc5b78987addbc6edd04efeee8c54704fa694541dcd8dfd153595020cfc4c77ef8793452656eed98ef44253a
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
 
@@ -7,6 +7,7 @@ inherit_from:
7
7
  - ./rubocop-airbnb.yml
8
8
  - ./rubocop-layout.yml
9
9
  - ./rubocop-lint.yml
10
+ - ./rubocop-rails.yml
10
11
  - ./rubocop-style.yml
11
12
  - ./rubocop-todo.yml
12
13
 
@@ -1,3 +1,7 @@
1
+ Layout/AlignArguments:
2
+ Enabled: true
3
+ EnforcedStyle: with_fixed_indentation
4
+
1
5
  Layout/AlignParameters:
2
6
  Enabled: true
3
7
  EnforcedStyle: with_fixed_indentation
@@ -0,0 +1,2 @@
1
+ Rails/HelperInstanceVariable:
2
+ Enabled: false
@@ -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: Disabled until rule fixed
10
- Layout/RescueEnsureAlignment:
11
- Enabled: false
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
@@ -1,5 +1,5 @@
1
1
  module RuboCop
2
2
  module Traitify
3
- VERSION = "0.0.1"
3
+ VERSION = "1.0.0"
4
4
  end
5
5
  end
@@ -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.1"
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.62.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.1
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: 2019-07-29 00:00:00.000000000 Z
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: 2.0.0
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: 2.0.0
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.1'
62
+ version: '2.3'
76
63
  required_rubygems_version: !ruby/object:Gem::Requirement
77
64
  requirements:
78
65
  - - ">="