From efe03e6af4e63b1c6a98c22cfdbfee040b99c44b Mon Sep 17 00:00:00 2001 From: Tim Meusel Date: Mon, 11 Jul 2016 16:26:37 +0200 Subject: modulesync 0.9.1 --- .rubocop.yml | 480 +++++++++++++++++++++++++++++++++++++++++++++++++++++++---- 1 file changed, 453 insertions(+), 27 deletions(-) (limited to '.rubocop.yml') diff --git a/.rubocop.yml b/.rubocop.yml index 364b022..c834cd2 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -8,22 +8,53 @@ AllCops: - .vendor/**/* - pkg/**/* - spec/fixtures/**/* +Lint/ConditionPosition: + Enabled: true -# Configuration parameters: AllowURI, URISchemes. -Metrics/LineLength: - Max: 328 +Lint/ElseLayout: + Enabled: true -# 'Complexity' is very relative -Metrics/PerceivedComplexity: - Enabled: false +Lint/UnreachableCode: + Enabled: true -# 'Complexity' is very relative -Metrics/CyclomaticComplexity: - Enabled: false +Lint/UselessComparison: + Enabled: true -# 'Complexity' is very relative -Metrics/AbcSize: - Enabled: false +Lint/EnsureReturn: + Enabled: true + +Lint/HandleExceptions: + Enabled: true + +Lint/LiteralInCondition: + Enabled: true + +Lint/ShadowingOuterLocalVariable: + Enabled: true + +Lint/LiteralInInterpolation: + Enabled: true + +Style/HashSyntax: + Enabled: true + +Style/RedundantReturn: + Enabled: true + +Lint/AmbiguousOperator: + Enabled: true + +Lint/AssignmentInCondition: + Enabled: true + +Style/SpaceBeforeComment: + Enabled: true + +Style/AndOr: + Enabled: true + +Style/RedundantSelf: + Enabled: true # Method length is not necessarily an indicator of code quality Metrics/MethodLength: @@ -33,42 +64,437 @@ Metrics/MethodLength: Metrics/ModuleLength: Enabled: false +Style/WhileUntilModifier: + Enabled: true + +Lint/AmbiguousRegexpLiteral: + Enabled: true + +Lint/Eval: + Enabled: true + +Lint/BlockAlignment: + Enabled: true + +Lint/DefEndAlignment: + Enabled: true + +Lint/EndAlignment: + Enabled: true + +Lint/DeprecatedClassMethods: + Enabled: true + +Lint/Loop: + Enabled: true + +Lint/ParenthesesAsGroupedExpression: + Enabled: true + +Lint/RescueException: + Enabled: true + +Lint/StringConversionInInterpolation: + Enabled: true + +Lint/UnusedBlockArgument: + Enabled: true + +Lint/UnusedMethodArgument: + Enabled: true + +Lint/UselessAccessModifier: + Enabled: true + +Lint/UselessAssignment: + Enabled: true + +Lint/Void: + Enabled: true + +Style/AccessModifierIndentation: + Enabled: true + +Style/AccessorMethodName: + Enabled: true + +Style/Alias: + Enabled: true + +Style/AlignArray: + Enabled: true + +Style/AlignHash: + Enabled: true + +Style/AlignParameters: + Enabled: true + +Metrics/BlockNesting: + Enabled: true + +Style/AsciiComments: + Enabled: true + +Style/Attr: + Enabled: true + +Style/BracesAroundHashParameters: + Enabled: true + +Style/CaseEquality: + Enabled: true + +Style/CaseIndentation: + Enabled: true + +Style/CharacterLiteral: + Enabled: true + +Style/ClassAndModuleCamelCase: + Enabled: true + +Style/ClassAndModuleChildren: + Enabled: false + +Style/ClassCheck: + Enabled: true + # Class length is not necessarily an indicator of code quality Metrics/ClassLength: Enabled: false -# dealbreaker: -Style/TrailingCommaInArguments: +Style/ClassMethods: + Enabled: true + +Style/ClassVars: + Enabled: true + +Style/WhenThen: + Enabled: true + +Style/WordArray: + Enabled: true + +Style/UnneededPercentQ: + Enabled: true + +Style/Tab: + Enabled: true + +Style/SpaceBeforeSemicolon: + Enabled: true + +Style/TrailingBlankLines: + Enabled: true + +Style/SpaceInsideBlockBraces: + Enabled: true + +Style/SpaceInsideBrackets: + Enabled: true + +Style/SpaceInsideHashLiteralBraces: + Enabled: true + +Style/SpaceInsideParens: + Enabled: true + +Style/LeadingCommentSpace: + Enabled: true + +Style/SpaceBeforeFirstArg: + Enabled: true + +Style/SpaceAfterColon: + Enabled: true + +Style/SpaceAfterComma: + Enabled: true + +Style/SpaceAfterMethodName: + Enabled: true + +Style/SpaceAfterNot: + Enabled: true + +Style/SpaceAfterSemicolon: + Enabled: true + +Style/SpaceAroundEqualsInParameterDefault: + Enabled: true + +Style/SpaceAroundOperators: + Enabled: true + +Style/SpaceBeforeBlockBraces: + Enabled: true + +Style/SpaceBeforeComma: + Enabled: true + +Style/CollectionMethods: + Enabled: true + +Style/CommentIndentation: + Enabled: true + +Style/ColonMethodCall: + Enabled: true + +Style/CommentAnnotation: + Enabled: true + +# 'Complexity' is very relative +Metrics/CyclomaticComplexity: Enabled: false -Style/TrailingCommaInLiteral: + +Style/ConstantName: + Enabled: true + +Style/Documentation: Enabled: false -Style/ClosingParenthesisIndentation: + +Style/DefWithParentheses: + Enabled: true + +Style/PreferredHashMethods: + Enabled: true + +Style/DotPosition: + EnforcedStyle: trailing + +Style/DoubleNegation: + Enabled: true + +Style/EachWithObject: + Enabled: true + +Style/EmptyLineBetweenDefs: + Enabled: true + +Style/IndentArray: + Enabled: true + +Style/IndentHash: + Enabled: true + +Style/IndentationConsistency: + Enabled: true + +Style/IndentationWidth: + Enabled: true + +Style/EmptyLines: + Enabled: true + +Style/EmptyLinesAroundAccessModifier: + Enabled: true + +Style/EmptyLiteral: + Enabled: true + +# Configuration parameters: AllowURI, URISchemes. +Metrics/LineLength: Enabled: false -Lint/AmbiguousRegexpLiteral: +Style/MethodCallParentheses: + Enabled: true + +Style/MethodDefParentheses: + Enabled: true + +Style/LineEndConcatenation: + Enabled: true + +Style/TrailingWhitespace: + Enabled: true + +Style/StringLiterals: Enabled: true + +Style/TrailingCommaInArguments: + Enabled: true + +Style/TrailingCommaInLiteral: + Enabled: true + +Style/GlobalVars: + Enabled: true + +Style/GuardClause: + Enabled: true + +Style/IfUnlessModifier: + Enabled: true + +Style/MultilineIfThen: + Enabled: true + +Style/NegatedIf: + Enabled: true + +Style/NegatedWhile: + Enabled: true + +Style/Next: + Enabled: true + +Style/SingleLineBlockParams: + Enabled: true + +Style/SingleLineMethods: + Enabled: true + +Style/SpecialGlobalVars: + Enabled: true + +Style/TrivialAccessors: + Enabled: true + +Style/UnlessElse: + Enabled: true + +Style/VariableInterpolation: + Enabled: true + +Style/VariableName: + Enabled: true + +Style/WhileUntilDo: + Enabled: true + +Style/EvenOdd: + Enabled: true + +Style/FileName: + Enabled: true + +Style/For: + Enabled: true + +Style/Lambda: + Enabled: true + +Style/MethodName: + Enabled: true + +Style/MultilineTernaryOperator: + Enabled: true + +Style/NestedTernaryOperator: + Enabled: true + +Style/NilComparison: + Enabled: true + +Style/FormatString: + Enabled: true + +Style/MultilineBlockChain: + Enabled: true + +Style/Semicolon: + Enabled: true + +Style/SignalException: + Enabled: true + +Style/NonNilCheck: + Enabled: true + +Style/Not: + Enabled: true + +Style/NumericLiterals: + Enabled: true + +Style/OneLineConditional: + Enabled: true + +Style/OpMethod: + Enabled: true + +Style/ParenthesesAroundCondition: + Enabled: true + +Style/PercentLiteralDelimiters: + Enabled: true + +Style/PerlBackrefs: + Enabled: true + +Style/PredicateName: + Enabled: true + +Style/RedundantException: + Enabled: true + +Style/SelfAssignment: + Enabled: true + +Style/Proc: + Enabled: true + +Style/RaiseArgs: + Enabled: true + +Style/RedundantBegin: + Enabled: true + +Style/RescueModifier: + Enabled: true + +# based on https://github.com/voxpupuli/modulesync_config/issues/168 Style/RegexpLiteral: + EnforcedStyle: percent_r Enabled: true -Style/WordArray: + +Lint/UnderscorePrefixedVariableName: Enabled: true -# this catches the cases of using `module` for parser functions, types, or -# providers -Style/ClassAndModuleChildren: +Metrics/ParameterLists: Enabled: false -Style/Documentation: - Description: 'Document classes and non-namespace modules.' - Enabled: false +Lint/RequireParentheses: + Enabled: true + +Style/SpaceBeforeFirstArg: + Enabled: true + +Style/ModuleFunction: + Enabled: true + +Lint/Debugger: + Enabled: true + +Style/IfWithSemicolon: + Enabled: true + +Style/Encoding: + Enabled: true -# More comfortable block layouts Style/BlockDelimiters: - Enabled: False + Enabled: true Style/MultilineBlockLayout: + Enabled: true + +# 'Complexity' is very relative +Metrics/AbcSize: + Enabled: False + +# 'Complexity' is very relative +Metrics/PerceivedComplexity: Enabled: False -# Rspec +Lint/UselessAssignment: + Enabled: true + +Style/ClosingParenthesisIndentation: + Enabled: false + +# RSpec # We don't use rspec in this way RSpec/DescribeClass: -- cgit v1.2.3