diff --git a/.hound.yml b/.hound.yml index 20438df..b7945ab 100644 --- a/.hound.yml +++ b/.hound.yml @@ -1,41 +1,3 @@ -LineLength: - Description: 'Limit lines to 120 characters.' - Max: 120 - -StringLiterals: - EnforcedStyle: single_quotes - -RedundantSelf: - Enabled: false - -SpaceAroundEqualsInParameterDefault: - EnforcedStyle: no_space - -AlignParameters: - Enabled: false - -DotPosition: - EnforcedStyle: leading - -EmptyLinesAroundBody: - Enabled: false - -NumericLiterals: - Enabled: false - -CollectionMethods: - PreferredMethods: - collect: 'map' - collect!: 'map!' - inject: 'reduce' - detect: 'find' - find_all: 'select' - -CyclomaticComplexity: - Enabled: false - -MethodLength: - Enabled: false - -ClassLength: - Enabled: false +ruby: + enabled: true + config_file: .rubocop.yml diff --git a/.rubocop.yml b/.rubocop.yml new file mode 100644 index 0000000..2d1574e --- /dev/null +++ b/.rubocop.yml @@ -0,0 +1,46 @@ +AllCops: + Exclude: + - config/**/* + - db/**/* + +Metrics/LineLength: + Description: 'Limit lines to 120 characters.' + Max: 120 + +Metrics/CyclomaticComplexity: + Enabled: false + +Metrics/MethodLength: + Enabled: false + +Metrics/ClassLength: + Enabled: false + +Style/StringLiterals: + EnforcedStyle: single_quotes + +Style/SpaceAroundEqualsInParameterDefault: + EnforcedStyle: no_space + +Style/AlignParameters: + Enabled: with_fixed_indentation + +Style/DotPosition: + EnforcedStyle: leading + +Style/NumericLiterals: + Enabled: false + +Style/CollectionMethods: + PreferredMethods: + collect: 'map' + collect!: 'map!' + inject: 'reduce' + detect: 'find' + find_all: 'select' + +Style/RedundantSelf: + Enabled: false + +Style/Documentation: + Enabled: false