File tree Expand file tree Collapse file tree 6 files changed +15
-21
lines changed Expand file tree Collapse file tree 6 files changed +15
-21
lines changed Original file line number Diff line number Diff line change @@ -22,12 +22,6 @@ I18n/GetText/DecorateStringFormattingUsingPercent:
22
22
I18n/RailsI18n/DecorateString :
23
23
Enabled : false
24
24
25
- # This cop supports safe auto-correction (--auto-correct).
26
- # Configuration parameters: EnforcedStyleAlignWith, Severity.
27
- # SupportedStylesAlignWith: keyword, variable, start_of_line
28
- Layout/EndAlignment :
29
- Enabled : false
30
-
31
25
# This cop supports safe auto-correction (--auto-correct).
32
26
# Configuration parameters: AllowForAlignment, AllowBeforeTrailingComments, ForceEqualSignAlignment.
33
27
Layout/ExtraSpacing :
Original file line number Diff line number Diff line change @@ -181,7 +181,7 @@ def validate_name(name)
181
181
_ ( "the module name must begin with a letter" )
182
182
else
183
183
_ ( "the namespace contains non-alphanumeric characters" )
184
- end
184
+ end
185
185
186
186
raise ArgumentError , _ ( "Invalid 'name' field in metadata.json: %{err}" ) % { err : err }
187
187
end
Original file line number Diff line number Diff line change @@ -300,7 +300,7 @@ def exist?(name)
300
300
else # rubocop:disable Layout/ElseAlignment
301
301
next_scope = inherited_scope || enclosing_scope
302
302
effective_symtable ( true ) . include? ( name ) || next_scope && next_scope . exist? ( name ) || BUILT_IN_VARS . include? ( name )
303
- end
303
+ end # rubocop:disable Layout/EndAlignment
304
304
end
305
305
306
306
# Returns true if the given name is bound in the current (most nested) scope for assignments.
Original file line number Diff line number Diff line change @@ -65,10 +65,10 @@ def self.blastsplit(line)
65
65
hash = { }
66
66
hash [ :name ] = $1
67
67
hash [ :ensure ] = if $2 == "[Not installed]"
68
- :absent
69
- else
70
- $2
71
- end
68
+ :absent
69
+ else
70
+ $2
71
+ end
72
72
hash [ :avail ] = $5
73
73
74
74
hash [ :avail ] = hash [ :ensure ] if hash [ :avail ] == "SAME"
Original file line number Diff line number Diff line change @@ -129,10 +129,10 @@ def self.pkgsplit(line)
129
129
hash = { }
130
130
hash [ :name ] = $1
131
131
hash [ :ensure ] = if $2 == "notinst"
132
- :absent
133
- else
134
- $2
135
- end
132
+ :absent
133
+ else
134
+ $2
135
+ end
136
136
hash [ :avail ] = $3
137
137
138
138
if hash [ :avail ] =~ /^SAME\s *$/
Original file line number Diff line number Diff line change @@ -378,12 +378,12 @@ def scan_options(options, key)
378
378
379
379
values = options . map do | repo |
380
380
value = if repo . is_a? ( String )
381
- next unless repo . include? ( '=' )
381
+ next unless repo . include? ( '=' )
382
382
383
- Hash [ *repo . strip . split ( '=' ) ] # make it a hash
384
- else
385
- repo
386
- end
383
+ Hash [ *repo . strip . split ( '=' ) ] # make it a hash
384
+ else
385
+ repo
386
+ end
387
387
value [ key ]
388
388
end
389
389
values . compact . uniq
You can’t perform that action at this time.
0 commit comments