MRAndrd / RubyHW

GeekHub
0 stars 0 forks source link

Rubocop found offenses. Need small updates #13

Open Kashoid23 opened 2 years ago

Kashoid23 commented 2 years ago

Need to rename the lowercase files

HW2/Cthulhumagochi/Cthulhu.rb:1:1: C: Naming/FileName: The name of this source file (Cthulhu.rb) should use snake_case.
class Cthulhu
^
HW3UT/Cthulhu.rb:1:1: C: Naming/FileName: The name of this source file (Cthulhu.rb) should use snake_case.
require 'bundler'
^

and

HW2/task1.rb:2:5: C: [Correctable] Layout/ArrayAlignment: Align the elements of an array literal if they span more than one line.
    446, 18, 36, 202, 574, 556, 458, 16, 139, 222, 220, 107, 82, 264, 366, 501, 319, 314, 430, 55, 336]
    ^^^
MRAndrd commented 2 years ago

@Kashoid23 how could I use the snake case in Cthulhu if this is the name of the file consisting of one word? I think this should be skipped

Kashoid23 commented 2 years ago

@MRAndrd You should not use snake case in Cthulhu. As I wrote earlier, the file name must be lowercase.

"cthulhu" instead of "Cthulhu"

Screenshot 2021-12-19 at 20 24 28