Skip to content

Commit

Permalink
Fix Rubocop deprecations
Browse files Browse the repository at this point in the history
Signed-off-by: Rémy Coutable <remy@rymai.me>
  • Loading branch information
rymai committed Jun 4, 2018
1 parent 44e9a38 commit 648c64f
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 9 deletions.
2 changes: 1 addition & 1 deletion spec/lib/listen/event/loop_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
let(:blocks) do
{
thread_block: proc { fail 'thread block stub called' },
timer_block: proc { fail 'thread block stub called' },
timer_block: proc { fail 'thread block stub called' }
}
end

Expand Down
22 changes: 14 additions & 8 deletions vendor/hound/config/style_guides/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ Style/CollectionMethods:
find: detect
find_all: select
reduce: inject
Style/DotPosition:
Layout/DotPosition:
Description: Checks the position of the dot in multi-line method calls.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#consistent-multi-line-chains
Enabled: true
EnforcedStyle: trailing
SupportedStyles:
- leading
- trailing
Style/FileName:
Naming/FileName:
Description: Use snake_case for source file names.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#snake-case-files
Enabled: false
Expand All @@ -35,7 +35,6 @@ Style/IfUnlessModifier:
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
Style/OptionHash:
Description: Don't use option hashes when you can use keyword arguments.
Enabled: false
Expand All @@ -53,7 +52,7 @@ Style/PercentLiteralDelimiters:
"%w": "()"
"%W": "()"
"%x": "()"
Style/PredicateName:
Naming/PredicateName:
Description: Check the names of predicate methods.
StyleGuide: https://github.com/bbatsov/ruby-style-guide#bool-methods-qmark
Enabled: true
Expand Down Expand Up @@ -123,9 +122,16 @@ Style/TrailingCommaInArguments:
- comma
- consistent_comma
- no_comma
Style/TrailingCommaInLiteral:
Description: 'Checks for trailing comma in array and hash literals.'
StyleGuide: 'https://github.com/bbatsov/ruby-style-guide#no-trailing-array-commas'
Style/TrailingCommaInArrayLiteral:
Description: 'Checks for trailing comma in array literals.'
Enabled: false
EnforcedStyleForMultiline: no_comma
SupportedStyles:
- comma
- consistent_comma
- no_comma
Style/TrailingCommaInHashLiteral:
Description: 'Checks for trailing comma in hash literals.'
Enabled: false
EnforcedStyleForMultiline: no_comma
SupportedStyles:
Expand Down Expand Up @@ -177,7 +183,7 @@ Lint/AssignmentInCondition:
Style/InlineComment:
Description: Avoid inline comments.
Enabled: false
Style/AccessorMethodName:
Naming/AccessorMethodName:
Description: Check the naming of accessor methods for get_/set_.
Enabled: false
Style/Alias:
Expand Down

0 comments on commit 648c64f

Please sign in to comment.