renuocop 0.8.6 → 0.8.8

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: 56c7e18befdd8145d1856850352b56dd784e4e4a1c1e8dd9b150c34ef4aa0577
4
- data.tar.gz: 33fa2a33eaf0f81c84a818681c7089890d3123c42e89b51d2653c9cbd9c331f2
3
+ metadata.gz: dc90bb3c87437ed5d0ba9ea3abb9be81a14b7c66198c1a88f20dac51e6242ba0
4
+ data.tar.gz: 71e550248fa15c4d30d11c7fbb70f1d5bb8d9f4195c6078dbc56ac0ee970d63b
5
5
  SHA512:
6
- metadata.gz: b03beed53ba8f1cf73f04fe6fc1a789ea873b27cb987aaa50179379f5be37406a1435f32f4ec64caad508fe44fb36f415f8fb29c032aaecedb3d21dbbf34e9d7
7
- data.tar.gz: 8f8a3a0ea2b3871a12bcc3be258266fb74c3ac8afb731de7fb6921872f8158acfca14a0c82fbd5c5535151be2b532a6f9cf54c45be67c76ff01fdd1d21b5dbd8
6
+ metadata.gz: 423e2c7495cde072d58080aab3f87046b530908eef542d448d411ffcfaa7e5594c7c9869d31ed0492b98bc9d3e8acb25890dd53acb8a341436f12273e5664140
7
+ data.tar.gz: 9d74ed87afa42724d8446174f12aef6ae486da3040f024b0bf528711558b210af9d3c70ab6b7ecb0c0ee466c683a3b919486c4a829be48d31f0405905189dca7
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## [0.8.8]
2
+ - Remove GuardClause cop
3
+ - Exclude all schema files
4
+
5
+ ## [0.8.7]
6
+ - Add `CountAsOne` option to `Metrics/BlockLength` cop
7
+
1
8
  ## [0.8.6]
2
9
  - Set `Layout/FirstArrayElementIndentation` and `Layout/FirstHashElementIndentation` to `consistent`
3
10
 
data/config/base.yml CHANGED
@@ -212,6 +212,10 @@ Metrics/AbcSize:
212
212
 
213
213
  Metrics/BlockLength:
214
214
  Enabled: true
215
+ CountAsOne:
216
+ - array
217
+ - hash
218
+ - heredoc
215
219
  Exclude:
216
220
  - 'spec/**/*.rb'
217
221
  - 'config/environments/**/*.rb'
@@ -235,12 +239,12 @@ Metrics/CyclomaticComplexity:
235
239
 
236
240
  Metrics/MethodLength:
237
241
  Enabled: true
238
- Exclude:
239
- - 'spec/system/**/*.rb'
240
242
  CountAsOne:
241
243
  - array
242
244
  - hash
243
245
  - heredoc
246
+ Exclude:
247
+ - 'spec/system/**/*.rb'
244
248
 
245
249
  Metrics/ModuleLength:
246
250
  Enabled: true
@@ -537,9 +541,6 @@ Style/FormatStringToken:
537
541
  Style/FrozenStringLiteralComment:
538
542
  Enabled: true
539
543
 
540
- Style/GuardClause:
541
- Enabled: true
542
-
543
544
  Style/HashEachMethods:
544
545
  Enabled: true
545
546
 
@@ -747,7 +748,7 @@ AllCops:
747
748
  - 'log/**/*'
748
749
  - 'public/**/*'
749
750
  - 'tmp/**/*'
750
- - 'db/schema.rb'
751
+ - 'db/*schema.rb'
751
752
  - 'db/migrate/**/*'
752
753
  - 'vendor/**/*'
753
754
  - 'node_modules/**/*'
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Renuocop
4
- VERSION = "0.8.6"
4
+ VERSION = "0.8.8"
5
5
  end
data/renuocop.gemspec ADDED
@@ -0,0 +1,44 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/renuocop/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "renuocop"
7
+ spec.version = Renuocop::VERSION
8
+ spec.authors = ["Alessandro Rodi"]
9
+ spec.email = ["alessandro.rodi@renuo.ch"]
10
+
11
+ spec.summary = "Renuo default style guide, linter, and formatter."
12
+ spec.description = "Renuo default style guide, linter, and formatter."
13
+ spec.homepage = "https://www.renuo.ch"
14
+ spec.license = "MIT"
15
+ spec.required_ruby_version = ">= 3.0.0"
16
+
17
+ spec.metadata["homepage_uri"] = spec.homepage
18
+ spec.metadata["source_code_uri"] = "https://github.com/renuo/renuocop"
19
+ spec.metadata["changelog_uri"] = "https://github.com/renuo/renuocop/CHANGELOG.md"
20
+
21
+ # Specify which files should be added to the gem when it is released.
22
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
23
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
24
+ `git ls-files -z`.split("\x0").reject do |f|
25
+ (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
26
+ end
27
+ end
28
+ spec.bindir = "exe"
29
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
30
+ spec.require_paths = ["lib"]
31
+
32
+ spec.add_dependency "rubocop", ">= 1.72"
33
+ spec.add_dependency "rubocop-capybara"
34
+ spec.add_dependency "rubocop-factory_bot"
35
+ spec.add_dependency "rubocop-performance"
36
+ spec.add_dependency "rubocop-rails", "!= 2.20.0", "!= 2.20.1"
37
+ spec.add_dependency "rubocop-rspec"
38
+ spec.add_dependency "rubocop-rspec_rails"
39
+ spec.add_dependency "standard", ">= 1.35.1"
40
+
41
+ # For more information and examples about making a new gem, check out our
42
+ # guide at: https://bundler.io/guides/creating_gem.html
43
+ spec.metadata["rubygems_mfa_required"] = "true"
44
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: renuocop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.6
4
+ version: 0.8.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Rodi
@@ -145,6 +145,7 @@ files:
145
145
  - config/base.yml
146
146
  - lib/renuocop.rb
147
147
  - lib/renuocop/version.rb
148
+ - renuocop.gemspec
148
149
  - sig/renuocop.rbs
149
150
  homepage: https://www.renuo.ch
150
151
  licenses:
@@ -168,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
169
  - !ruby/object:Gem::Version
169
170
  version: '0'
170
171
  requirements: []
171
- rubygems_version: 3.7.2
172
+ rubygems_version: 3.6.9
172
173
  specification_version: 4
173
174
  summary: Renuo default style guide, linter, and formatter.
174
175
  test_files: []