rubocop-rubyfmt 0.1.0 → 0.1.2

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: 9f586cfd1ffc7386de88b57de617856b9167ead93e62265cddeb165daefa159d
4
- data.tar.gz: 852bed5eb157c8bebf8b48c47749923a92d510f6b96c8ca4f1faf1365b7c4b22
3
+ metadata.gz: 32cc837a7e036e4b9d85ab30c4e7af462d34c7b37dcf5f31b2a6a5ba753e4c93
4
+ data.tar.gz: 4433f231896b1be5eea4a1fcc414341d38eab783d87fe25451ee273afe956af5
5
5
  SHA512:
6
- metadata.gz: 41819404358b145c83c7aab4c4beb1e911d0b00ec544e0a416856a3bd247ab8a392939a8c7440dcf71f280fd148bdcd6855df86fa14e10a70423841b4f4f83d5
7
- data.tar.gz: 0abe8016a1adad552574f0ed43f8e42764e847b85af68c1466ee9adebb9107c25d89cabf454704ee7301eea25e7383f597dc52c4c4e1fb416e07d9e0a5c882fd
6
+ metadata.gz: 97dd23e1b464a90808874e895902321a3fd391c04958be6d2db401191b82f413e2aca5d3dfb7c91d145766d531d6eb97ecfc828f015d5456375f2fbe00f34af9
7
+ data.tar.gz: 43ffbe71f4efec20f49c7c0d61ca2a0357e7e4372ce3b5abd19df9a61cdfd159ab8421ae50a9e1bce41c90fd344581cb9db90c27a58d627dc8b141ddeaae2c15
data/.rubocop.yml CHANGED
@@ -5,6 +5,7 @@ plugins:
5
5
  - rubocop-rspec
6
6
 
7
7
  AllCops:
8
+ TargetRubyVersion: 3.2.0
8
9
  NewCops: enable
9
10
 
10
11
  Naming/FileName:
data/CHANGELOG.md CHANGED
@@ -1,4 +1,15 @@
1
- # 0.1.0
1
+ # Changelog
2
+
3
+ ## 0.1.2
4
+
5
+ - Disabled `Style/MethodCallWithoutArgsParentheses`. `rubyfmt` will handle parens in the vast majority
6
+ of cases, and it occasionally requires calls with parens when local variables shadow method names.
7
+
8
+ ## 0.1.1
9
+
10
+ - Disabled `Style/QuotedSymbols`, since `rubyfmt` always double-quotes quoted symbols.
11
+
12
+ ## 0.1.0
2
13
 
3
14
  - Initial project setup
4
15
  - Add a custom lint for enforcing multiline rubocop disables
data/Rakefile CHANGED
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "bundler/gem_tasks"
3
4
  require "rubocop/rake_task"
4
5
 
5
6
  require "rspec/core/rake_task"
data/config/default.yml CHANGED
@@ -15,6 +15,8 @@ Style/StringLiterals:
15
15
  Enabled: false
16
16
  Style/StringLiteralsInInterpolation:
17
17
  Enabled: false
18
+ Style/QuotedSymbols: # Quoted symbols too!
19
+ Enabled: false
18
20
 
19
21
  # %Q/%q/% literals are transformed into quoted strings
20
22
  Style/PercentQLiterals:
@@ -102,6 +104,11 @@ Style/PercentLiteralDelimiters:
102
104
  Style/NestedParenthesizedCalls:
103
105
  Enabled: false
104
106
 
107
+ # A no-arg call gets `()` when a local variable shares its name, so that the call
108
+ # stays a call: `foo = self.foo()`
109
+ Style/MethodCallWithoutArgsParentheses:
110
+ Enabled: false
111
+
105
112
  # Statements on the same line as `else` will always be moved
106
113
  Lint/ElseLayout:
107
114
  Enabled: false
@@ -34,7 +34,7 @@ module RuboCop
34
34
  extend AutoCorrector
35
35
 
36
36
  MSG = "Use multiline rubocop directives instead of end-of-line comments."
37
- DISABLE_PATTERN = /# rubocop:(disable|todo) .*/.freeze
37
+ DISABLE_PATTERN = /# rubocop:(disable|todo) .*/
38
38
 
39
39
  def on_new_investigation
40
40
  processed_source.comments.each do |comment|
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Rubyfmt
5
- VERSION = "0.1.0"
5
+ VERSION = "0.1.2"
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-rubyfmt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Reese Williams
@@ -74,14 +74,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
74
74
  requirements:
75
75
  - - ">="
76
76
  - !ruby/object:Gem::Version
77
- version: 2.7.0
77
+ version: 3.2.0
78
78
  required_rubygems_version: !ruby/object:Gem::Requirement
79
79
  requirements:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  requirements: []
84
- rubygems_version: 4.0.3
84
+ rubygems_version: 4.0.10
85
85
  specification_version: 4
86
86
  summary: Rubocop rules for adopting `rubyfmt`
87
87
  test_files: []