rubocop-traitify 0.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ee5d28cd9101958b565f26ad578d9a7b26ce7f191d88d25d9be3d5c654934ab5
4
- data.tar.gz: f48d12434fb23251651b48551c12a2507fe164b21632440dce5b3cf1e9edd8a2
3
+ metadata.gz: feda3746b63620b9eb532f8d1196d0ad0244a1fe601c295c3114dc8da374ca17
4
+ data.tar.gz: ffbd4c54880b60291905ac69967933fd70c3e399c8953b8468d067f661d11110
5
5
  SHA512:
6
- metadata.gz: 8795dcd9894ce3e88cca451eae41bbb841dd7376980c712e4c88a0f58cd8be202f422ed632a4a3a7e50b7b652bdbbe8d7f003ec450fe15eaa75a5b8a125b54e1
7
- data.tar.gz: f06641d401eab8f6c289b8c0d1e11398ef695c8b2ded898508d2e23ce0275a7d9c6de9355a377bf47a0f8dff3ea2171fd6b191a4b4e532a37ea2e011b5a47854
6
+ metadata.gz: c33aaaac1de66a37590caed20a0ceca2f540a1a62321e243e8278853faaf4583dd60a8fd2fa9ab64bc8d7996f9dff1751957b9e919c93dc9e7395946eb06ae0f
7
+ data.tar.gz: 199004e84c0d41784620b59cb0781c51774f68072681d30471d7987a92fd9274e2c99ecb001eb929923360664c3a8783251cd2820ef94e5f5dea52bb4cc4f5eb
@@ -0,0 +1,2 @@
1
+ require:
2
+ - ./lib/rubocop-traitify.rb
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
 
data/config/default.yml CHANGED
@@ -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,4 +1,4 @@
1
- Layout/AlignParameters:
1
+ Layout/ArgumentAlignment:
2
2
  Enabled: true
3
3
  EnforcedStyle: with_fixed_indentation
4
4
 
@@ -14,6 +14,10 @@ Layout/EndAlignment:
14
14
  Enabled: true
15
15
  EnforcedStyleAlignWith: start_of_line
16
16
 
17
+ Layout/ParameterAlignment:
18
+ Enabled: true
19
+ EnforcedStyle: with_fixed_indentation
20
+
17
21
  Layout/SpaceBeforeBlockBraces:
18
22
  Enabled: true
19
23
  EnforcedStyle: no_space
@@ -0,0 +1,2 @@
1
+ Rails/HelperInstanceVariable:
2
+ Enabled: false
@@ -1,11 +1,7 @@
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:
5
+ # Disabled until rubocop 1.7.0
6
+ Lint/BinaryOperatorWithIdenticalOperands:
11
7
  Enabled: false
@@ -1,5 +1,5 @@
1
1
  module RuboCop
2
2
  module Traitify
3
- VERSION = "0.0.0"
3
+ VERSION = "1.1.0"
4
4
  end
5
5
  end
@@ -14,15 +14,15 @@ 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}/**/*",
21
21
  "*.md",
22
22
  "*.gemspec",
23
+ ".rubocop_traitify.yml",
23
24
  "Gemfile"
24
25
  ]
25
26
 
26
- spec.add_dependency("rubocop", "~> 0.62.0")
27
- spec.add_dependency("rubocop-airbnb", "~> 2.0.0")
27
+ spec.add_dependency("rubocop-airbnb", "~> 4.0.0")
28
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.0
4
+ version: 1.1.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: 2022-03-23 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: 4.0.0
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: 4.0.0
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
@@ -47,11 +33,13 @@ executables: []
47
33
  extensions: []
48
34
  extra_rdoc_files: []
49
35
  files:
36
+ - ".rubocop_traitify.yml"
50
37
  - README.md
51
38
  - config/default.yml
52
39
  - config/rubocop-airbnb.yml
53
40
  - config/rubocop-layout.yml
54
41
  - config/rubocop-lint.yml
42
+ - config/rubocop-rails.yml
55
43
  - config/rubocop-style.yml
56
44
  - config/rubocop-todo.yml
57
45
  - lib/rubocop-traitify.rb
@@ -71,14 +59,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
71
59
  requirements:
72
60
  - - ">="
73
61
  - !ruby/object:Gem::Version
74
- version: '2.1'
62
+ version: '2.3'
75
63
  required_rubygems_version: !ruby/object:Gem::Requirement
76
64
  requirements:
77
65
  - - ">="
78
66
  - !ruby/object:Gem::Version
79
67
  version: '0'
80
68
  requirements: []
81
- rubygems_version: 3.0.2
69
+ rubygems_version: 3.1.6
82
70
  signing_key:
83
71
  specification_version: 4
84
72
  summary: Default Rubocop config for Traitify Apps