runger_style 2.0.0 → 2.2.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: cbe8e11717e697ae28b98b5cb6c8cf7c0ca3f34a4f2571aeec82e23f1c65000e
4
- data.tar.gz: 708521243629b416680f1dba060e97a51f4c7ba8ec02dcdb8839b0eaad90769a
3
+ metadata.gz: d961100f02050251c7647cd9a7c61280e56575918f6e023718de5be8e22c922d
4
+ data.tar.gz: 32d1581ee761fcf7dbc13c6f61143adecb0e2337883410c3b235016d625dd4af
5
5
  SHA512:
6
- metadata.gz: f1c50e622f0a9794ae8d9c2476c2fa7447758faf25039b512117723ab299e7c4d07e2a3cbfb51d4901f241c83ef7479489b1614527a2ac447a6e9e65914cdff0
7
- data.tar.gz: 8482982b9cd3e673dc4984f05db15da0dcf8d57e76414ee945b8eff762b1ffe59a58aaea1d37299e69652df88b5a6c79ce1707516b9080a93fd2a32fdb07c491
6
+ metadata.gz: 21e766684a9ccc5f4e7dd4b972ec202cc6381229619a95892147aabe192e079b293ebb85d9caeca4229259f3593e943b45d577f901680691fc418bd4a0c8919c
7
+ data.tar.gz: 567289337ce4e7cf6646a9baa804d2b1e3d3c416a1d72a51b33189fa69f009ecc203eae30f0808487deecb975d2e2ee583e4254e33a2bd7bb8c1bf706c3a95de
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## v2.2.0 (2024-03-23)
2
+ - Limit ForbiddenPrefixes for Naming/PredicateName to "is_"
3
+
4
+ ## v2.1.0 (2024-03-15)
5
+ - Remove global exclusions and lint db/schema.rb except for some cops
6
+
1
7
  ## v2.0.0 (2024-03-08)
2
8
  - Use prism as parser
3
9
 
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.2.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.2.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:
@@ -80,10 +79,16 @@ Naming/BlockForwarding:
80
79
  Enabled: false
81
80
  Naming/InclusiveLanguage:
82
81
  Enabled: false
82
+ Naming/PredicateName:
83
+ ForbiddenPrefixes:
84
+ - is_
83
85
  Naming/RescuedExceptionsVariableName:
84
86
  Enabled: false
85
87
  Naming/VariableNumber:
86
88
  Enabled: false
89
+ Style:
90
+ Exclude:
91
+ - db/schema.rb
87
92
  Style/ArgumentsForwarding:
88
93
  Enabled: false
89
94
  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.2.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-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: prism
@@ -100,7 +100,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
100
100
  - !ruby/object:Gem::Version
101
101
  version: '0'
102
102
  requirements: []
103
- rubygems_version: 3.5.6
103
+ rubygems_version: 3.5.7
104
104
  signing_key:
105
105
  specification_version: 4
106
106
  summary: Shared rubocop rules for the preferred Ruby coding style of @davidrunger