config/rubocop.yml in pulis-0.1.3 vs config/rubocop.yml in pulis-0.1.4

- old
+ new

@@ -8,157 +8,157 @@ - db/**/* - config/**/* - tmp/**/* - log/**/* TargetRubyVersion: 2.3 + # NOTE 4 系を利用している場合は書き換える + TargetRailsVersion: 5.0 -Rails: - Enabled: true +AndOr: + Enabled: false -Style/AsciiComments: +CommentAnnotation: Enabled: false -Style/Documentation: +Lint/EndAlignment: Enabled: false -Rails/ActionFilter: +Lint/UnderscorePrefixedVariableName: Enabled: false -Rails/Delegate: +Lint/AssignmentInCondition: + Enabled: false + +Lint/UnusedBlockArgument: Enabled: true -Rails/Validation: +Lint/UnusedMethodArgument: Enabled: true +Lint/UselessAssignment: + Enabled: true + +Lint/UselessComparison: + Enabled: true + +Lint/Void: + Enabled: true + Metrics/AbcSize: Max: 1000 +Metrics/BlockLength: + Max: 150 + CountComments: false + # NOTE RSpec のブロックは長くなるため + Exclude: + - "**/*_spec.rb" + - "spec/support/*.rb" + Metrics/ClassLength: Max: 1000 Metrics/CyclomaticComplexity: Max: 50 -Metrics/MethodLength: - # Max: 30 +Metrics/LineLength: Enabled: false -Metrics/LineLength: - # Max: 180 +Metrics/MethodLength: Enabled: false -Metrics/BlockLength: - Max: 150 - CountComments: false +NumericLiterals: + MinDigits: 12 -Lint/UnusedBlockArgument: +Rails: Enabled: true -Lint/UnusedMethodArgument: - Enabled: true +Rails/ActionFilter: + Enabled: false -Lint/UselessAssignment: +Rails/Delegate: Enabled: true -Lint/UselessComparison: - Enabled: true +Rails/HttpPositionalArguments: + Enabled: false -Lint/Void: +Rails/Validation: Enabled: true -Style/MultilineBlockChain: +RedundantSelf: Enabled: false -Style/SpaceInsideHashLiteralBraces: - EnforcedStyle: no_space +Style/AlignParameters: + EnforcedStyle: with_fixed_indentation -Style/SpaceBeforeBlockBraces: - EnforcedStyle: space +Style/AsciiComments: + Enabled: false -Style/SpaceInsideBlockBraces: - EnforcedStyle: space - SpaceBeforeBlockParameters: false +Style/BlockDelimiters: + Enabled: false Style/BracesAroundHashParameters: EnforcedStyle: no_braces +Style/CaseEquality: + Enabled: false + +Style/ClassAndModuleChildren: + Enabled: false + Style/CollectionMethods: Enabled: false Style/Documentation: Enabled: false -Style/AlignParameters: - EnforcedStyle: with_fixed_indentation +Style/EmptyLiteral: + Enabled: false +Style/GuardClause: + MinBodyLength: 3 + Style/IfUnlessModifier: MaxLineLength: 60 -Style/GuardClause: - MinBodyLength: 3 +Style/IndentHash: + Enabled: false -RedundantSelf: +Style/IndentationWidth: Enabled: false Style/Lambda: Enabled: false -Lint/EndAlignment: +Style/MultilineBlockChain: Enabled: false -Style/IndentationWidth: - Enabled: false -AndOr: +Style/MultilineOperationIndentation: Enabled: false -Style/IndentHash: +Style/PredicateName: Enabled: false -Style/CaseEquality: +Style/Semicolon: Enabled: false Style/SignalException: EnforcedStyle: only_raise -NumericLiterals: - MinDigits: 12 +Style/SpaceBeforeBlockBraces: + EnforcedStyle: space -CommentAnnotation: - Enabled: false +Style/SpaceInsideBlockBraces: + EnforcedStyle: space + SpaceBeforeBlockParameters: false -Style/BlockDelimiters: - Enabled: false +Style/SpaceInsideHashLiteralBraces: + EnforcedStyle: no_space -Style/EmptyLiteral: - Enabled: false - Style/TrailingUnderscoreVariable: Enabled: false -Style/Semicolon: - Enabled: false Style/WhenThen: - Enabled: false - -Style/MultilineOperationIndentation: Enabled: false -Style/ClassAndModuleChildren: - Enabled: false - -Lint/UnderscorePrefixedVariableName: - Enabled: false - -Lint/AssignmentInCondition: - Enabled: false - SingleLineMethods: - Enabled: false - -Style/PredicateName: - Enabled: false - -Rails/HttpPositionalArguments: - Enabled: false - -Style/AlignParameters: Enabled: false