.rubocop.yml in whatup-0.1.0 vs .rubocop.yml in whatup-0.2.0

- old
+ new

@@ -1,3 +1,42 @@ +# Rubocop linting options + +AllCops: + TargetRubyVersion: 2.4 # Modern Ruby + +# Gemspecs are just a giant block, anyway Metrics/BlockLength: Exclude: - 'whatup.gemspec' + +Metrics/MethodLength: + Max: 20 # 10 is a bit too low + +# Don't type unneccesary () +Style/MethodDefParentheses: + EnforcedStyle: require_no_parentheses + +# { } for blocks, {} for hashes +Layout/SpaceInsideHashLiteralBraces: + EnforcedStyle: no_space + +# while line = gets do +# ... +# end +Lint/AssignmentInCondition: + Enabled: false + +# outcome = some_really_long_event \ +# ? choice_a +# : choice_a +Style/MultilineTernaryOperator: + Enabled: false + +# Encouraging a comment above every single module or class oftentimes leads to +# redundant comments that are odds with the design principle of writing +# simple, readable code +Style/Documentation: + Enabled: false + +# [a, b, c].map &:to_f +Lint/AmbiguousOperator: + Enabled: false