Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@
/pkg/
/spec/reports/
/tmp/
/.idea/
/spec/examples.txt
9 changes: 0 additions & 9 deletions .idea/message_bus-client.iml

This file was deleted.

161 changes: 76 additions & 85 deletions .rubocop.unhound.yml
Original file line number Diff line number Diff line change
@@ -1,244 +1,235 @@
AccessorMethodName:
Style/AccessorMethodName:
Enabled: true

ActionFilter:
Style/Alias:
Enabled: true

Alias:
Style/ArrayJoin:
Enabled: true

ArrayJoin:
Style/AsciiComments:
Enabled: true

AsciiComments:
Style/AsciiIdentifiers:
Enabled: true

AsciiIdentifiers:
Style/Attr:
Enabled: true

Attr:
Metrics/BlockNesting:
Enabled: true

BlockNesting:
Style/CaseEquality:
Enabled: true

CaseEquality:
Style/CharacterLiteral:
Enabled: true

CharacterLiteral:
Enabled: true

ClassAndModuleChildren:
Style/ClassAndModuleChildren:
Enabled: true
EnforcedStyle: compact

ClassLength:
Metrics/ClassLength:
Enabled: true

ClassVars:
Style/ClassVars:
Enabled: true

CollectionMethods:
Style/CollectionMethods:
Enabled: true
PreferredMethods:
reduce:
inject: 'reduce'
find:
detect: 'find'

ColonMethodCall:
Enabled: true

CommentAnnotation:
Style/ColonMethodCall:
Enabled: true

CyclomaticComplexity:
Style/CommentAnnotation:
Enabled: true

Delegate:
Metrics/CyclomaticComplexity:
Enabled: true

DeprecatedHashMethods:
Style/PreferredHashMethods:
Enabled: true

DoubleNegation:
Style/DoubleNegation:
Enabled: true

EachWithObject:
Style/EachWithObject:
Enabled: true

EmptyLiteral:
Style/EmptyLiteral:
Enabled: true

Encoding:
Style/Encoding:
Enabled: false

EvenOdd:
Style/EvenOdd:
Enabled: true

ExtraSpacing:
Layout/ExtraSpacing:
Enabled: false

FileName:
Style/FileName:
Enabled: true

FlipFlop:
Style/FlipFlop:
Enabled: true

FormatString:
Style/FormatString:
Enabled: true

GlobalVars:
Style/GlobalVars:
Enabled: true

GuardClause:
Style/GuardClause:
Enabled: true

IfUnlessModifier:
Style/IfUnlessModifier:
Enabled: true

IfWithSemicolon:
Style/IfWithSemicolon:
Enabled: true

InlineComment:
Style/InlineComment:
Enabled: false

Lambda:
Style/Lambda:
Enabled: true

LambdaCall:
Style/LambdaCall:
Enabled: true

LineEndConcatenation:
Style/LineEndConcatenation:
Enabled: true

MethodLength:
Metrics/MethodLength:
Enabled: true

ModuleFunction:
Style/ModuleFunction:
Enabled: true

NegatedIf:
Style/NegatedIf:
Enabled: true

NegatedWhile:
Style/NegatedWhile:
Enabled: true

Next:
Style/Next:
Enabled: true

NilComparison:
Style/NilComparison:
Enabled: true

Not:
Style/Not:
Enabled: true

NumericLiterals:
Style/NumericLiterals:
Enabled: true

OneLineConditional:
Style/OneLineConditional:
Enabled: true

OpMethod:
Style/OpMethod:
Enabled: true

ParameterLists:
Metrics/ParameterLists:
Enabled: true

PercentLiteralDelimiters:
Style/PercentLiteralDelimiters:
Enabled: true

PerlBackrefs:
Style/PerlBackrefs:
Enabled: true

PredicateName:
Style/PredicateName:
NamePrefixBlacklist: []

Proc:
Style/Proc:
Enabled: true

RaiseArgs:
Style/RaiseArgs:
Enabled: true

RegexpLiteral:
Style/RegexpLiteral:
Enabled: true

SelfAssignment:
Style/SelfAssignment:
Enabled: true

SingleLineBlockParams:
Style/SingleLineBlockParams:
Enabled: true

SingleLineMethods:
Style/SingleLineMethods:
Enabled: true

SignalException:
Style/SignalException:
Enabled: true

SpecialGlobalVars:
Style/SpecialGlobalVars:
Enabled: true

VariableInterpolation:
Style/VariableInterpolation:
Enabled: true

TrailingComma:
Style/TrailingCommaInLiteral:
Enabled: true

TrivialAccessors:
Style/TrivialAccessors:
Enabled: true

VariableInterpolation:
Style/VariableInterpolation:
Enabled: true

WhenThen:
Style/WhenThen:
Enabled: true

WhileUntilModifier:
Style/WhileUntilModifier:
Enabled: true

# Lint

AmbiguousOperator:
Enabled: true

AmbiguousRegexpLiteral:
Lint/AmbiguousOperator:
Enabled: true

AssignmentInCondition:
Lint/AmbiguousRegexpLiteral:
Enabled: true

ConditionPosition:
Lint/AssignmentInCondition:
Enabled: true

DeprecatedClassMethods:
Lint/ConditionPosition:
Enabled: true

ElseLayout:
Lint/ElseLayout:
Enabled: true

HandleExceptions:
Lint/HandleExceptions:
Enabled: true

InvalidCharacterLiteral:
Lint/InvalidCharacterLiteral:
Enabled: true

LiteralInCondition:
Lint/LiteralInCondition:
Enabled: true

LiteralInInterpolation:
Lint/LiteralInInterpolation:
Enabled: true

Loop:
Lint/Loop:
Enabled: true

ParenthesesAsGroupedExpression:
Lint/ParenthesesAsGroupedExpression:
Enabled: true

RequireParentheses:
Lint/RequireParentheses:
Enabled: true

UnderscorePrefixedVariableName:
Lint/UnderscorePrefixedVariableName:
Enabled: true

Void:
Lint/Void:
Enabled: true
18 changes: 16 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,19 @@
inherit_from:
- .rubocop.unhound.yml

AllCops:
TargetRubyVersion: 2.3

Metrics/LineLength:
Max: 100

Style/DotPosition:
Layout/DotPosition:
EnforcedStyle: trailing

Style/Documentation:
Enabled: false

Style/IndentHash:
Layout/IndentHash:
EnforcedStyle: consistent

Style/StringLiterals:
Expand All @@ -24,3 +27,14 @@ Style/RegexpLiteral:

Style/ClassAndModuleChildren:
EnforcedStyle: compact

Metrics/BlockLength:
Exclude:
- 'Rakefile'
- '**/*.rake'
- 'spec/**/*_spec.rb'

Style/FrozenStringLiteralComment:
Enabled: true
Exclude:
- 'spec/**/*.rb'
3 changes: 1 addition & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
language: ruby
rvm:
- 2.1.9
- 2.2.5
- 2.3.1
- 2.4.1
before_install: gem update bundler
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
source 'https://rubygems.org'

# Specify your gem's dependencies in message_bus-client.gemspec
# Specify your gem's dependencies in message_bus_client.gemspec
gemspec
Loading