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 +4 -4
- data/.rubocop.yml +1 -0
- data/CHANGELOG.md +12 -1
- data/Rakefile +1 -0
- data/config/default.yml +7 -0
- data/lib/rubocop/cop/rubyfmt/no_end_of_line_rubocop_disables.rb +1 -1
- data/lib/rubocop/rubyfmt/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 32cc837a7e036e4b9d85ab30c4e7af462d34c7b37dcf5f31b2a6a5ba753e4c93
|
|
4
|
+
data.tar.gz: 4433f231896b1be5eea4a1fcc414341d38eab783d87fe25451ee273afe956af5
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 97dd23e1b464a90808874e895902321a3fd391c04958be6d2db401191b82f413e2aca5d3dfb7c91d145766d531d6eb97ecfc828f015d5456375f2fbe00f34af9
|
|
7
|
+
data.tar.gz: 43ffbe71f4efec20f49c7c0d61ca2a0357e7e4372ce3b5abd19df9a61cdfd159ab8421ae50a9e1bce41c90fd344581cb9db90c27a58d627dc8b141ddeaae2c15
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -1,4 +1,15 @@
|
|
|
1
|
-
#
|
|
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
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)
|
|
37
|
+
DISABLE_PATTERN = /# rubocop:(disable|todo) .*/
|
|
38
38
|
|
|
39
39
|
def on_new_investigation
|
|
40
40
|
processed_source.comments.each do |comment|
|
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.
|
|
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.
|
|
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.
|
|
84
|
+
rubygems_version: 4.0.10
|
|
85
85
|
specification_version: 4
|
|
86
86
|
summary: Rubocop rules for adopting `rubyfmt`
|
|
87
87
|
test_files: []
|