.hound.yml in kt-paperclip-5.4.0 vs .hound.yml in kt-paperclip-6.2.0
- old
+ new
@@ -77,11 +77,11 @@
- context_dependent
Style/CaseIndentation:
Description: Indentation of when in a case/when/[else/]end.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#indent-when-to-case
Enabled: true
- IndentWhenRelativeTo: case
+ EnforcedStyle: case
SupportedStyles:
- case
- end
IndentOneStep: false
Style/ClassAndModuleChildren:
@@ -155,23 +155,19 @@
- no_empty_lines
Style/Encoding:
Description: Use UTF-8 as the source file encoding.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#utf-8
Enabled: false
- EnforcedStyle: always
- SupportedStyles:
- - when_needed
- - always
Style/FileName:
Description: Use snake_case for source file names.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-files
Enabled: false
Exclude: []
Style/FirstParameterIndentation:
Description: Checks the indentation of the first parameter in a method call.
Enabled: true
- EnforcedStyle: special_for_inner_method_call_in_parentheses
+ EnforcedStyle: consistent
SupportedStyles:
- consistent
- special_for_inner_method_call
- special_for_inner_method_call_in_parentheses
Style/For:
@@ -208,15 +204,15 @@
Enabled: true
EnforcedStyle: ruby19
SupportedStyles:
- ruby19
- hash_rockets
-Style/IfUnlessModifier:
+Metrics/LineLength:
Description: Favor modifier if/unless usage when you have a single-line body.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#if-as-a-modifier
Enabled: false
- MaxLineLength: 80
+ Max: 80
Style/IndentationWidth:
Description: Use 2 spaces for indentation.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#spaces-indentation
Enabled: true
Width: 2
@@ -309,11 +305,11 @@
Enabled: true
NamePrefix:
- is_
- has_
- have_
- NamePrefixBlacklist:
+ ForbiddenPrefixes:
- is_
Style/RaiseArgs:
Description: Checks the arguments passed to raise/fail.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#exception-class-messages
Enabled: false
@@ -433,26 +429,34 @@
Enabled: true
EnforcedStyle: final_newline
SupportedStyles:
- final_newline
- final_blank_line
-Style/TrailingCommaInLiteral:
+Style/TrailingCommaInArrayLiteral:
Description: Checks for trailing comma in parameter lists and literals.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas
Enabled: false
EnforcedStyleForMultiline: no_comma
SupportedStyles:
- comma
- no_comma
+Style/TrailingCommaInHashLiteral:
+ Description: Checks for trailing comma in parameter lists and literals.
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas
+ Enabled: false
+ EnforcedStyleForMultiline: no_comma
+ SupportedStyles:
+ - comma
+ - no_comma
Style/TrivialAccessors:
Description: Prefer attr_* methods to trivial readers/writers.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#attr_family
Enabled: false
ExactNameMatch: false
AllowPredicates: false
AllowDSLWriters: false
- Whitelist:
+ AllowedMethods:
- to_ary
- to_a
- to_c
- to_enum
- to_h
@@ -474,15 +478,10 @@
Enabled: true
EnforcedStyle: snake_case
SupportedStyles:
- snake_case
- camelCase
-Style/WhileUntilModifier:
- Description: Favor modifier while/until usage when you have a single-line body.
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#while-as-a-modifier
- Enabled: false
- MaxLineLength: 80
Style/WordArray:
Description: Use %w or %W for arrays of words.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-w
Enabled: false
MinSize: 0
@@ -506,14 +505,14 @@
Description: A complexity metric that is strongly correlated to the number of test
cases needed to validate a method.
Enabled: false
Max: 6
Metrics/LineLength:
- Description: Limit lines to 80 characters.
- StyleGuide: https://github.com/bbatsov/ruby-style-guide#80-character-limits
+ Description: Limit lines to 120 characters.
+ StyleGuide: https://github.com/bbatsov/ruby-style-guide#120-character-limits
Enabled: true
- Max: 80
+ Max: 120
AllowURI: true
URISchemes:
- http
- https
Metrics/MethodLength:
@@ -539,18 +538,18 @@
Enabled: false
AllowSafeAssignment: true
Lint/EndAlignment:
Description: Align ends correctly.
Enabled: true
- AlignWith: keyword
+ EnforcedStyleAlignWith: keyword
SupportedStyles:
- keyword
- variable
Lint/DefEndAlignment:
Description: Align ends corresponding to defs correctly.
Enabled: true
- AlignWith: start_of_line
+ EnforcedStyleAlignWith: start_of_line
SupportedStyles:
- start_of_line
- def
Rails/ActionFilter:
Description: Enforces consistent use of action filter methods.
@@ -750,11 +749,11 @@
Enabled: true
Style/LineEndConcatenation:
Description: Use \ instead of + or << to concatenate two string literals at line
end.
Enabled: false
-Style/MethodCallParentheses:
+Style/MethodCallWithoutArgsParentheses:
Description: Do not use parentheses for method calls with no arguments.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-args-no-parens
Enabled: true
Style/ModuleFunction:
Description: Checks for usage of `extend self` in modules.
@@ -797,11 +796,11 @@
Enabled: false
Style/OneLineConditional:
Description: Favor the ternary operator(?:) over if/then/else/end constructs.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#ternary-operator
Enabled: false
-Style/OpMethod:
+Naming/BinaryOperatorParameterName:
Description: When defining binary operators, name the argument other.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#other-arg
Enabled: false
Style/PerlBackrefs:
Description: Avoid Perl-style regex back references.
@@ -903,14 +902,14 @@
Enabled: true
Style/UnlessElse:
Description: Do not use unless with else. Rewrite these with the positive case first.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-else-with-unless
Enabled: true
-Style/UnneededCapitalW:
+Style/RedundantCapitalW:
Description: Checks for %W when interpolation is not needed.
Enabled: true
-Style/UnneededPercentQ:
+Style/RedundantPercentQ:
Description: Checks for %q/%Q when single quotes or double quotes would do.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#percent-q
Enabled: true
Style/UnneededPercentX:
Description: Checks for %x when `` would do.
@@ -972,18 +971,14 @@
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-return-ensure
Enabled: true
Lint/Eval:
Description: The use of eval represents a serious security risk.
Enabled: true
-Lint/HandleExceptions:
+Lint/SuppressedException:
Description: Don't suppress exception.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#dont-hide-exceptions
Enabled: false
-Lint/InvalidCharacterLiteral:
- Description: Checks for invalid character literals with a non-escaped whitespace
- character.
- Enabled: false
Lint/LiteralInCondition:
Description: Checks of literals used in conditions.
Enabled: false
Lint/LiteralInInterpolation:
Description: Checks for literals used in interpolation.
@@ -1010,11 +1005,11 @@
Enabled: true
Lint/SpaceBeforeFirstArg:
Description: Put a space between a method name and the first argument in a method
call without parentheses.
Enabled: true
-Lint/StringConversionInInterpolation:
+Lint/RedundantStringCoercion:
Description: Checks for Object#to_s usage in string interpolation.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#no-to-s
Enabled: true
Lint/UnderscorePrefixedVariableName:
Description: Do not use prefix `_` for a variable that is used.
@@ -1035,10 +1030,10 @@
Enabled: true
Lint/UselessAssignment:
Description: Checks for useless assignment to a local variable.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#underscore-unused-vars
Enabled: true
-Lint/BinaryOperatorWithIdenticalOperands:
+Lint/UselessComparison:
Description: Checks for comparison of something with itself.
Enabled: true
Lint/UselessElseWithoutRescue:
Description: Checks for useless `else` in `begin..end` without `rescue`.
Enabled: true