mirror of
https://github.com/athityakumar/colorls.git
synced 2024-09-19 05:31:23 +02:00
made rubocop happy by simplifying init_contents and increasing class
length limit
This commit is contained in:
parent
e4e794a39d
commit
0cc9e16609
2 changed files with 5 additions and 4 deletions
|
@ -45,7 +45,7 @@ Metrics/ModuleLength:
|
|||
Max: 200
|
||||
|
||||
Metrics/ClassLength:
|
||||
Max: 200
|
||||
Max: 250
|
||||
|
||||
Metrics/ParameterLists:
|
||||
Max: 10
|
||||
|
|
|
@ -46,8 +46,9 @@ module ColorLS
|
|||
|
||||
@total_content_length = @contents.length
|
||||
|
||||
init_user_lengths if @long
|
||||
init_group_lengths if @long
|
||||
return unless @long
|
||||
init_user_lengths
|
||||
init_group_lengths
|
||||
end
|
||||
|
||||
def init_user_lengths
|
||||
|
|
Loading…
Reference in a new issue