rubocop-ogat 1.51.0 → 2.0.0.rc1

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: 73f2086ec67187a748b2fa375770f18ac7498aaf8a30cd79fe78eb6981065929
4
- data.tar.gz: d7831e6eea29e5b878d10edc0ecacfdc079c71c43beebf0d1d1f6cbf2544477e
3
+ metadata.gz: 33e076d6576ef56d2971c3918d9122cebefe2937b2dc9edf2a02b80141b81b50
4
+ data.tar.gz: 2dd7839693c045f2faa1cfc95a002deeeaf2ff3bf41ccbc9b0d8a4a993604aac
5
5
  SHA512:
6
- metadata.gz: e1733ddc2f061e2f90be94e5dfb811d9591f705e9bc85d3c67dbb2b08289c3c1b9e0b6d982c75804669df1a774851907b09c87c23ae46ddb0ea8a2c8c194d140
7
- data.tar.gz: 9ce1bd4cb90b13790ad73f2741362ef928f271ee3bab444a5887f114ee8956f61392bca3e01dbf739973e096129e7b6fdae90e5ec9d1e2ac3eb364e55e09446e
6
+ metadata.gz: '0490f0f3aeb3ffa141c451b174997ab35af1e24a3912ba5843d24892ceeb1aec5c1592fc82d00f4b4b3e19b861e796e5ee6017d86cb5e61b7a139b14a5c1f079'
7
+ data.tar.gz: 84ae2017277944bcfadbfb30e099adb8cf8a23bfaca6df27c3f82a1958fd5be0f2c168049bf677299b11e96b250af5ac7141e91eff6cadbc9576058332ea070e
data/.rubocop.yml CHANGED
@@ -1,8 +1,9 @@
1
- inherit_from: config/default.yml
1
+ inherit_from:
2
+ - .rubocop_todo.yml
3
+ - config/default.yml
4
+
2
5
  AllCops:
3
6
  TargetRubyVersion: 2.4
4
- Metrics/LineLength:
5
- Max: 80
6
7
 
7
8
  Naming/FileName:
8
9
  Exclude:
data/.rubocop_todo.yml ADDED
@@ -0,0 +1,7 @@
1
+ # This configuration was generated by
2
+ # `rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit 10000 --no-offense-counts --no-auto-gen-timestamp`
3
+ # using RuboCop version 0.80.1.
4
+ # The point is for the user to remove these configuration records
5
+ # one by one as the offenses are removed from the code base.
6
+ # Note that changes in the inspected code, or installation of new
7
+ # versions of RuboCop, may require this file to be generated again.
data/.travis.yml CHANGED
@@ -2,6 +2,7 @@ sudo: false
2
2
  language: ruby
3
3
  cache: bundler
4
4
  rvm:
5
+ - 2.4.6
5
6
  - 2.5.5
6
7
  - 2.6.3
7
8
  - ruby-head
@@ -21,6 +22,6 @@ deploy:
21
22
  secure: kazURR5idcANlaYnqiGLnkXfsYWluTc3H87sg73H6s2JwEkA69FieZA3tUrDVX8kfbOxsqDphyv3fZmqrQtmG74ksUPVGsouoth7gpUMNh6Uj8Hr/e3Cgt/4b/SeGCAdpIsx869w8fA9kEKuf1NhQ0taazfiqToau3amyal6QblxMaalX8ThvWtO98ViJkEeIszxRK+uzd3t1aIEW/Lds9jWUm9Rf1tI/ajlRecwStA74pCQHJ2wuPQRcAB8DYz82pNjlyGwIZd14Gmbys0en+r+av3tYLjzwN+z9y7vlXwp1xAeRKU9GoJCHuevKmT1joRnFFfp3xGoKn63b6yS7KHVFT7v4l+qRbMnL+m/wrz5Xv3ZUyk0un9O3+MFLy0jIYP1adcvh+KkqenAktzSekjGstZn8oRk8lAEYfGLUD45nijdGjbYF7VAUPhoP5g6vxGlbZDCHslHuLGMjiEd/vP+SGEhtEMzk6cvir1yoMzryilRTfBfkut7iVsy/MaMvTShxF0qd1hdtx+Htfcq2zad98lAASsciz8su6u9vaqmqyxLKxdMptbWks4bCd0lB9g6fjIT79cIzjwQB6Hv3WNDpMLGDxWH8PkZf4ZEIlvV1goLlzt5t0SoZryn1hWbO4VJMvGLXtVj9MvdgskN95Ww9FTvO3wlm0PVK5iQWkU=
22
23
  gem: rubocop-ogat
23
24
  on:
24
- rvm: 2.5.5
25
+ rvm: 2.4.6
25
26
  tags: true
26
27
  repo: Outwood/rubocop-ogat
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- source 'https://rubygems.org'
3
+ source "https://rubygems.org"
4
4
 
5
5
  git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
6
6
 
data/Rakefile CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'bundler/gem_tasks'
4
- require 'rspec/core/rake_task'
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
5
 
6
6
  RSpec::Core::RakeTask.new(:spec)
7
7
 
data/config/default.yml CHANGED
@@ -1,11 +1,15 @@
1
1
  require:
2
- - rubocop-performance
2
+ - standard/cop/semantic_blocks
3
3
  - rubocop-rspec
4
4
  - rubocop-rails
5
5
  - 'test_prof/rubocop'
6
6
 
7
+ inherit_gem:
8
+ standard: config/base.yml
9
+ rubocop-rspec: config/default.yml
10
+ rubocop-rails: config/default.yml
11
+
7
12
  AllCops:
8
- EnabledByDefault: true
9
13
  DisplayStyleGuide: true
10
14
  DisplayCopNames: true
11
15
  Exclude:
@@ -13,135 +17,9 @@ AllCops:
13
17
  - 'vendor/**/*'
14
18
  - 'tmp/**/*'
15
19
 
16
- Layout/ArgumentAlignment:
17
- EnforcedStyle: with_fixed_indentation
18
-
19
- Lint/AmbiguousBlockAssociation:
20
- Exclude:
21
- - 'spec/**/*.rb'
22
-
23
- Layout/ClassStructure:
24
- Categories:
25
- module_inclusion:
26
- - include
27
- - prepend
28
- - extend
29
- attributes:
30
- - attribute
31
- - attr_reader
32
- - attr_writer
33
- - attr_accessor
34
- associations:
35
- - belongs_to
36
- - has_one
37
- - has_many
38
- - has_and_belongs_to_many
39
- validations:
40
- - validate
41
- - validates_presence_of
42
- - validates_uniqueness_of
43
- hooks:
44
- - after_save
45
- - after_create
46
- - after_initialize
47
- ExpectedOrder:
48
- - module_inclusion
49
- - constants
50
- - attributes
51
- - associations
52
- - validations
53
- - hooks
54
- - public_class_methods
55
- - initializer
56
- - public_methods
57
- - protected_methods
58
- - private_methods
59
-
60
20
  Layout/LineLength:
61
21
  AutoCorrect: true
62
-
63
- Layout/MultilineAssignmentLayout:
64
- EnforcedStyle: new_line
65
-
66
- Layout/MultilineMethodCallIndentation:
67
- EnforcedStyle: indented
68
-
69
- Layout/MultilineArrayLineBreaks:
70
- Enabled: false
71
-
72
- Layout/MultilineHashKeyLineBreaks:
73
- Enabled: false
74
-
75
- Layout/MultilineMethodArgumentLineBreaks:
76
- Enabled: false
77
-
78
- Lint/NumberConversion:
79
- Enabled: false
80
-
81
- Metrics/AbcSize:
82
- Exclude:
83
- - 'db/migrate/**/*'
84
-
85
- Metrics/BlockLength:
86
- Exclude:
87
- - 'config/routes.rb'
88
- - 'db/migrate/**/*'
89
- - 'spec/**/*.rb'
90
-
91
- Metrics/MethodLength:
92
- Exclude:
93
- - 'db/migrate/**/*'
94
-
95
- Style/ClassAndModuleChildren:
96
- Enabled: false
97
-
98
- Style/CollectionMethods:
99
- PreferredMethods:
100
- collect: 'map'
101
- collect!: 'map!'
102
- inject: 'reduce'
103
- detect: 'find'
104
- find_all: 'find_all'
105
-
106
- Style/ConstantVisibility:
107
- Enabled: false
108
-
109
- Style/Copyright:
110
- Enabled: false
111
-
112
- Style/DisableCopsWithinSourceCodeDirective:
113
- Enabled: false
114
-
115
- Style/Documentation:
116
- Exclude:
117
- - 'spec/**/*'
118
- - 'test/**/*'
119
- - 'db/migrate/**/*'
120
- - 'app/controllers/**/*'
121
-
122
- Style/DocumentationMethod:
123
- Enabled: false
124
-
125
- Style/Lambda:
126
- EnforcedStyle: literal
127
-
128
- Style/MethodCallWithArgsParentheses:
129
- Enabled: false
130
-
131
- Style/MissingElse:
132
- Enabled: false
133
-
134
- Style/RescueStandardError:
135
- EnforcedStyle: implicit
136
-
137
- Style/StringHashKeys:
138
- Enabled: false
139
-
140
- RSpec/AlignLeftLetBrace:
141
- Enabled: false
142
-
143
- RSpec/AlignRightLetBrace:
144
- Enabled: false
22
+ Max: 100
145
23
 
146
24
  RSpec/ImplicitSubject:
147
25
  Enabled: false
@@ -166,3 +44,6 @@ RSpec/AggregateExamples:
166
44
  Enabled: true
167
45
  Include:
168
46
  - 'spec/**/*.rb'
47
+
48
+ Metrics:
49
+ Enabled: true
data/lib/rubocop/ogat.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'rubocop/ogat/version'
3
+ require "rubocop/ogat/version"
4
4
 
5
5
  module Rubocop
6
6
  # ogat extentions to rubocop
@@ -3,7 +3,7 @@
3
3
  module Rubocop
4
4
  # Define version info for the gem
5
5
  module Ogat
6
- VERSION = '1.51.0'
6
+ VERSION = "2.0.0.rc1"
7
7
  public_constant :VERSION
8
8
  end
9
9
  end
data/rubocop-ogat.gemspec CHANGED
@@ -1,37 +1,35 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- lib = File.expand_path('lib', __dir__)
3
+ lib = File.expand_path("lib", __dir__)
4
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
- require 'rubocop/ogat/version'
5
+ require "rubocop/ogat/version"
6
6
 
7
7
  Gem::Specification.new do |spec|
8
- spec.name = 'rubocop-ogat'
9
- spec.version = Rubocop::Ogat::VERSION
10
- spec.authors = ['Elliot Bowes', 'Tom Crouch']
11
- spec.email = ['webmaster@outwood.com']
8
+ spec.name = "rubocop-ogat"
9
+ spec.version = Rubocop::Ogat::VERSION
10
+ spec.authors = ["Elliot Bowes", "Tom Crouch"]
11
+ spec.email = ["webmaster@outwood.com"]
12
12
 
13
- spec.summary = 'Default RuboCop configuration for OGAT Ruby projects'
14
- spec.homepage = 'https://github.com/Outwood/rubocop-ogat'
15
- spec.license = 'MIT'
13
+ spec.summary = "Default RuboCop configuration for OGAT Ruby projects"
14
+ spec.homepage = "https://github.com/Outwood/rubocop-ogat"
15
+ spec.license = "MIT"
16
16
 
17
- spec.files =
17
+ spec.files =
18
18
  `git ls-files -z`.split("\x0").reject do |f|
19
19
  f.match(%r{^(test|spec|features)/})
20
20
  end
21
- spec.bindir = 'exe'
22
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
- spec.require_paths = ['lib']
21
+ spec.bindir = "exe"
22
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
23
+ spec.require_paths = ["lib"]
24
24
 
25
- spec.add_development_dependency 'bundler', '~> 1.16'
26
- spec.add_development_dependency 'rake', '~> 13.0'
27
- spec.add_development_dependency 'rspec', '~> 3.0'
28
- spec.add_development_dependency 'rubocop', '0.82.0'
29
- spec.add_development_dependency 'rubocop-performance', '1.5.2'
30
- spec.add_development_dependency 'rubocop-rails', '2.5.2'
31
- spec.add_development_dependency 'rubocop-rspec', '1.38.1'
32
- spec.add_runtime_dependency 'rubocop', '0.82.0'
33
- spec.add_runtime_dependency 'rubocop-performance', '1.5.2'
34
- spec.add_runtime_dependency 'rubocop-rails', '2.5.2'
35
- spec.add_runtime_dependency 'rubocop-rspec', '1.38.1'
36
- spec.add_runtime_dependency 'test-prof', '0.11.3'
25
+ spec.add_development_dependency "bundler", "~> 1.16"
26
+ spec.add_development_dependency "rake", "~> 13.0"
27
+ spec.add_development_dependency "rspec", "~> 3.0"
28
+ spec.add_development_dependency "rubocop-rails", "2.5.2"
29
+ spec.add_development_dependency "rubocop-rspec", "1.38.1"
30
+ spec.add_development_dependency "standard", "0.2.3"
31
+ spec.add_runtime_dependency "rubocop-rails", "2.5.2"
32
+ spec.add_runtime_dependency "rubocop-rspec", "1.38.1"
33
+ spec.add_runtime_dependency "standard", "0.2.3"
34
+ spec.add_runtime_dependency "test-prof", "0.11.3"
37
35
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-ogat
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.51.0
4
+ version: 2.0.0.rc1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Elliot Bowes
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-04-17 00:00:00.000000000 Z
12
+ date: 2020-04-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -53,34 +53,6 @@ dependencies:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
55
  version: '3.0'
56
- - !ruby/object:Gem::Dependency
57
- name: rubocop
58
- requirement: !ruby/object:Gem::Requirement
59
- requirements:
60
- - - '='
61
- - !ruby/object:Gem::Version
62
- version: 0.82.0
63
- type: :development
64
- prerelease: false
65
- version_requirements: !ruby/object:Gem::Requirement
66
- requirements:
67
- - - '='
68
- - !ruby/object:Gem::Version
69
- version: 0.82.0
70
- - !ruby/object:Gem::Dependency
71
- name: rubocop-performance
72
- requirement: !ruby/object:Gem::Requirement
73
- requirements:
74
- - - '='
75
- - !ruby/object:Gem::Version
76
- version: 1.5.2
77
- type: :development
78
- prerelease: false
79
- version_requirements: !ruby/object:Gem::Requirement
80
- requirements:
81
- - - '='
82
- - !ruby/object:Gem::Version
83
- version: 1.5.2
84
56
  - !ruby/object:Gem::Dependency
85
57
  name: rubocop-rails
86
58
  requirement: !ruby/object:Gem::Requirement
@@ -110,61 +82,61 @@ dependencies:
110
82
  - !ruby/object:Gem::Version
111
83
  version: 1.38.1
112
84
  - !ruby/object:Gem::Dependency
113
- name: rubocop
85
+ name: standard
114
86
  requirement: !ruby/object:Gem::Requirement
115
87
  requirements:
116
88
  - - '='
117
89
  - !ruby/object:Gem::Version
118
- version: 0.82.0
119
- type: :runtime
90
+ version: 0.2.3
91
+ type: :development
120
92
  prerelease: false
121
93
  version_requirements: !ruby/object:Gem::Requirement
122
94
  requirements:
123
95
  - - '='
124
96
  - !ruby/object:Gem::Version
125
- version: 0.82.0
97
+ version: 0.2.3
126
98
  - !ruby/object:Gem::Dependency
127
- name: rubocop-performance
99
+ name: rubocop-rails
128
100
  requirement: !ruby/object:Gem::Requirement
129
101
  requirements:
130
102
  - - '='
131
103
  - !ruby/object:Gem::Version
132
- version: 1.5.2
104
+ version: 2.5.2
133
105
  type: :runtime
134
106
  prerelease: false
135
107
  version_requirements: !ruby/object:Gem::Requirement
136
108
  requirements:
137
109
  - - '='
138
110
  - !ruby/object:Gem::Version
139
- version: 1.5.2
111
+ version: 2.5.2
140
112
  - !ruby/object:Gem::Dependency
141
- name: rubocop-rails
113
+ name: rubocop-rspec
142
114
  requirement: !ruby/object:Gem::Requirement
143
115
  requirements:
144
116
  - - '='
145
117
  - !ruby/object:Gem::Version
146
- version: 2.5.2
118
+ version: 1.38.1
147
119
  type: :runtime
148
120
  prerelease: false
149
121
  version_requirements: !ruby/object:Gem::Requirement
150
122
  requirements:
151
123
  - - '='
152
124
  - !ruby/object:Gem::Version
153
- version: 2.5.2
125
+ version: 1.38.1
154
126
  - !ruby/object:Gem::Dependency
155
- name: rubocop-rspec
127
+ name: standard
156
128
  requirement: !ruby/object:Gem::Requirement
157
129
  requirements:
158
130
  - - '='
159
131
  - !ruby/object:Gem::Version
160
- version: 1.38.1
132
+ version: 0.2.3
161
133
  type: :runtime
162
134
  prerelease: false
163
135
  version_requirements: !ruby/object:Gem::Requirement
164
136
  requirements:
165
137
  - - '='
166
138
  - !ruby/object:Gem::Version
167
- version: 1.38.1
139
+ version: 0.2.3
168
140
  - !ruby/object:Gem::Dependency
169
141
  name: test-prof
170
142
  requirement: !ruby/object:Gem::Requirement
@@ -189,6 +161,7 @@ files:
189
161
  - ".gitignore"
190
162
  - ".rspec"
191
163
  - ".rubocop.yml"
164
+ - ".rubocop_todo.yml"
192
165
  - ".travis.yml"
193
166
  - Gemfile
194
167
  - LICENSE.txt
@@ -215,12 +188,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
215
188
  version: '0'
216
189
  required_rubygems_version: !ruby/object:Gem::Requirement
217
190
  requirements:
218
- - - ">="
191
+ - - ">"
219
192
  - !ruby/object:Gem::Version
220
- version: '0'
193
+ version: 1.3.1
221
194
  requirements: []
222
- rubyforge_project:
223
- rubygems_version: 2.7.7
195
+ rubygems_version: 3.0.3
224
196
  signing_key:
225
197
  specification_version: 4
226
198
  summary: Default RuboCop configuration for OGAT Ruby projects