runger_style 2.0.0 → 2.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: cbe8e11717e697ae28b98b5cb6c8cf7c0ca3f34a4f2571aeec82e23f1c65000e
4
- data.tar.gz: 708521243629b416680f1dba060e97a51f4c7ba8ec02dcdb8839b0eaad90769a
3
+ metadata.gz: e9da120f840a0fe5a42286f47218c17f22ff2e3681d75db38e19625dacf3542c
4
+ data.tar.gz: 5fef7927f5ee66884d93809a41553613517a11da897d52bb8f48af9116a0f7fc
5
5
  SHA512:
6
- metadata.gz: f1c50e622f0a9794ae8d9c2476c2fa7447758faf25039b512117723ab299e7c4d07e2a3cbfb51d4901f241c83ef7479489b1614527a2ac447a6e9e65914cdff0
7
- data.tar.gz: 8482982b9cd3e673dc4984f05db15da0dcf8d57e76414ee945b8eff762b1ffe59a58aaea1d37299e69652df88b5a6c79ce1707516b9080a93fd2a32fdb07c491
6
+ metadata.gz: e8b5a825172db15b733a0bcce9ebed1a5ec00b3c1955e67d1ab4461bd1eeed559145bc3cd8af5dd834c533397b7b734c5fae159a1a83159eed0f0896192b271c
7
+ data.tar.gz: 6256faeec1e2474c57d5dd04209ca242cd9c7d86fac78f182158c12c4c210ead8ea4f1653ad79f88b38cea9953ab639506846a4ee35c74ae39160b68a443122d
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## v2.1.0 (2024-03-15)
2
+ - Remove global exclusions and lint db/schema.rb except for some cops
3
+
1
4
  ## v2.0.0 (2024-03-08)
2
5
  - Use prism as parser
3
6
 
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- runger_style (2.0.0)
4
+ runger_style (2.1.0)
5
5
  prism (>= 0.24.0)
6
6
  rubocop (>= 1.38.0, < 2)
7
7
 
@@ -42,7 +42,7 @@ GEM
42
42
  rake (13.1.0)
43
43
  regexp_parser (2.9.0)
44
44
  rexml (3.2.6)
45
- rubocop (1.60.2)
45
+ rubocop (1.62.1)
46
46
  json (~> 2.3)
47
47
  language_server-protocol (>= 3.17.0)
48
48
  parallel (~> 1.10)
@@ -50,10 +50,10 @@ GEM
50
50
  rainbow (>= 2.2.2, < 4.0)
51
51
  regexp_parser (>= 1.8, < 3.0)
52
52
  rexml (>= 3.2.5, < 4.0)
53
- rubocop-ast (>= 1.30.0, < 2.0)
53
+ rubocop-ast (>= 1.31.1, < 2.0)
54
54
  ruby-progressbar (~> 1.7)
55
55
  unicode-display_width (>= 2.4.0, < 3.0)
56
- rubocop-ast (1.31.1)
56
+ rubocop-ast (1.31.2)
57
57
  parser (>= 3.3.0.4)
58
58
  rubocop-capybara (2.20.0)
59
59
  rubocop (~> 1.41)
data/bin/release CHANGED
@@ -16,8 +16,8 @@ if File.file?(bundle_binstub)
16
16
  if File.read(bundle_binstub, 300).include?('This file was generated by Bundler')
17
17
  load(bundle_binstub)
18
18
  else
19
- abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
20
- Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
19
+ abort('Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
20
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.')
21
21
  end
22
22
  end
23
23
 
data/bin/rubocop CHANGED
@@ -17,8 +17,8 @@ if File.file?(bundle_binstub)
17
17
  if File.read(bundle_binstub, 300).include?('This file was generated by Bundler')
18
18
  load(bundle_binstub)
19
19
  else
20
- abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
21
- Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
20
+ abort('Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
21
+ Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.')
22
22
  end
23
23
  end
24
24
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RungerStyle
4
- VERSION = '2.0.0'
4
+ VERSION = '2.1.0'
5
5
  end
data/rulesets/default.yml CHANGED
@@ -1,9 +1,5 @@
1
1
  AllCops:
2
2
  EnabledByDefault: true
3
- Exclude:
4
- - db/schema.rb # auto-generated file; best to leave as-is
5
- - node_modules/**/*
6
- - vendor/bundle/**/*
7
3
  ParserEngine: parser_prism
8
4
  TargetRubyVersion: 3.3
9
5
  UseCache: true
@@ -11,6 +7,9 @@ Bundler/GemComment:
11
7
  Enabled: false
12
8
  Bundler/GemVersion:
13
9
  Enabled: false
10
+ Layout:
11
+ Exclude:
12
+ - db/schema.rb
14
13
  Layout/ArgumentAlignment:
15
14
  EnforcedStyle: with_fixed_indentation
16
15
  Layout/ClassStructure:
@@ -84,6 +83,9 @@ Naming/RescuedExceptionsVariableName:
84
83
  Enabled: false
85
84
  Naming/VariableNumber:
86
85
  Enabled: false
86
+ Style:
87
+ Exclude:
88
+ - db/schema.rb
87
89
  Style/ArgumentsForwarding:
88
90
  Enabled: false
89
91
  Style/ArrayFirstLast:
data/rulesets/rails.yml CHANGED
@@ -12,6 +12,7 @@ Rails/BulkChangeTable:
12
12
  Rails/CreateTableWithTimestamps:
13
13
  Exclude:
14
14
  - !ruby/regexp /db/migrate/201[1-9].*\.rb\z/
15
+ - db/schema.rb
15
16
  Rails/EnvironmentVariableAccess:
16
17
  AllowReads: true
17
18
  Rails/I18nLocaleTexts:
data/runger_style.gemspec CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |spec|
25
25
  end
26
26
  spec.require_paths = ['lib']
27
27
 
28
- spec.required_ruby_version = Gem::Requirement.new(">= #{File.read('.ruby-version').rstrip}")
28
+ spec.required_ruby_version = ">= #{File.read('.ruby-version').rstrip}"
29
29
 
30
30
  spec.add_runtime_dependency('prism', '>= 0.24.0')
31
31
  spec.add_runtime_dependency('rubocop', '>= 1.38.0', '< 2')
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runger_style
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Runger
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-03-08 00:00:00.000000000 Z
11
+ date: 2024-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: prism