From ac61834f0bb31a170d548fd9ba42c13cd7354902 Mon Sep 17 00:00:00 2001 From: Steve Kemp Date: Mon, 9 Mar 2015 13:32:20 +0000 Subject: Record the style/formatting guides we use. These might change in the future, but for the moment the formatting codes are useful to ensure consistent code. --- .rubocop.yml | 465 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 465 insertions(+) create mode 100644 .rubocop.yml diff --git a/.rubocop.yml b/.rubocop.yml new file mode 100644 index 0000000..26a8f81 --- /dev/null +++ b/.rubocop.yml @@ -0,0 +1,465 @@ +# This configuration was generated by `rubocop --auto-gen-config` +# on 2015-03-09 12:28:32 +0000 using RuboCop version 0.29.1. +# The point is for the user to remove these configuration records +# one by one as the offenses are removed from the code base. +# Note that changes in the inspected code, or installation of new +# versions of RuboCop, may require this file to be generated again. + +# Offense count: 1 +# Configuration parameters: AlignWith, SupportedStyles. +Lint/DefEndAlignment: + Enabled: false + +# Offense count: 4 +# Cop supports --auto-correct. +Lint/DeprecatedClassMethods: + Enabled: true + +# Offense count: 2 +# Configuration parameters: AlignWith, SupportedStyles. +Lint/EndAlignment: + Enabled: false + +# Offense count: 4 +Lint/HandleExceptions: + Enabled: false + +# Offense count: 2 +Lint/LiteralInCondition: + Enabled: false + +# Offense count: 1 +Lint/RescueException: + Enabled: true + +# Offense count: 1 +Lint/ShadowingOuterLocalVariable: + Enabled: false + +# Offense count: 9 +# Cop supports --auto-correct. +Lint/StringConversionInInterpolation: + Enabled: true + +# Offense count: 1 +Lint/UnreachableCode: + Enabled: true + +# Offense count: 2 +# Cop supports --auto-correct. +Lint/UnusedBlockArgument: + Enabled: true + +# Offense count: 3 +# Cop supports --auto-correct. +Lint/UnusedMethodArgument: + Enabled: true + +# Offense count: 30 +Lint/UselessAssignment: + Enabled: false + +# Offense count: 46 +Metrics/AbcSize: + Max: 72 + +# Offense count: 8 +# Configuration parameters: CountComments. +Metrics/ClassLength: + Max: 202 + +# Offense count: 22 +Metrics/CyclomaticComplexity: + Max: 19 + +# Offense count: 118 +# Configuration parameters: AllowURI, URISchemes. +Metrics/LineLength: + Max: 216 + +# Offense count: 78 +# Configuration parameters: CountComments. +Metrics/MethodLength: + Max: 87 + +# Offense count: 20 +Metrics/PerceivedComplexity: + Max: 21 + +# Offense count: 8 +Style/AccessorMethodName: + Enabled: false + +# Offense count: 1 +# Cop supports --auto-correct. +Style/Alias: + Enabled: false + +# Offense count: 30 +# Cop supports --auto-correct. +# Configuration parameters: EnforcedStyle, SupportedStyles. +Style/AndOr: + Enabled: false + +# Offense count: 1 +# Cop supports --auto-correct. +Style/Blocks: + Enabled: false + +# Offense count: 1 +Style/CaseEquality: + Enabled: false + +# Offense count: 5 +# Configuration parameters: IndentWhenRelativeTo, SupportedStyles, IndentOneStep. +Style/CaseIndentation: + Enabled: false + +# Offense count: 30 +# Cop supports --auto-correct. +# Configuration parameters: EnforcedStyle, SupportedStyles. +Style/ClassCheck: + Enabled: false + +# Offense count: 6 +# Cop supports --auto-correct. +Style/ClassMethods: + Enabled: false + +# Offense count: 2 +Style/ClassVars: + Enabled: false + +# Offense count: 14 +# Cop supports --auto-correct. +Style/ColonMethodCall: + Enabled: true + +# Offense count: 2 +# Cop supports --auto-correct. +Style/CommentIndentation: + Enabled: true + +# Offense count: 5 +# Cop supports --auto-correct. +Style/DefWithParentheses: + Enabled: true + +# Offense count: 38 +Style/Documentation: + Enabled: false + +# Offense count: 1 +# Cop supports --auto-correct. +# Configuration parameters: EnforcedStyle, SupportedStyles. +Style/DotPosition: + Enabled: true + +# Offense count: 1 +Style/EmptyElse: + Enabled: false + +# Offense count: 778 +# Cop supports --auto-correct. +Style/EmptyLines: + Enabled: false + +# Offense count: 37 +# Cop supports --auto-correct. +# Configuration parameters: EnforcedStyle, SupportedStyles. +Style/EmptyLinesAroundBlockBody: + Enabled: false + +# Offense count: 97 +# Cop supports --auto-correct. +# Configuration parameters: EnforcedStyle, SupportedStyles. +Style/EmptyLinesAroundClassBody: + Enabled: false + +# Offense count: 133 +# Cop supports --auto-correct. +Style/EmptyLinesAroundMethodBody: + Enabled: false + +# Offense count: 75 +# Cop supports --auto-correct. +# Configuration parameters: EnforcedStyle, SupportedStyles. +Style/EmptyLinesAroundModuleBody: + Enabled: false + +# Offense count: 22 +# Cop supports --auto-correct. +Style/EmptyLiteral: + Enabled: true + +# Offense count: 17 +# Configuration parameters: Exclude. +Style/FileName: + Enabled: false + +# Offense count: 4 +# Cop supports --auto-correct. +# Configuration parameters: EnforcedStyle, SupportedStyles. +Style/FirstParameterIndentation: + Enabled: false + +# Offense count: 7 +# Configuration parameters: EnforcedStyle, SupportedStyles. +Style/For: + Enabled: false + +# Offense count: 44 +# Configuration parameters: AllowedVariables. +Style/GlobalVars: + Enabled: false + +# Offense count: 2 +# Configuration parameters: MinBodyLength. +Style/GuardClause: + Enabled: false + +# Offense count: 4 +# Cop supports --auto-correct. +# Configuration parameters: SupportedStyles. +Style/HashSyntax: + EnforcedStyle: hash_rockets + +# Offense count: 27 +# Configuration parameters: MaxLineLength. +Style/IfUnlessModifier: + Enabled: false + +# Offense count: 1 +# Cop supports --auto-correct. +Style/IndentArray: + Enabled: false + +# Offense count: 22 +# Cop supports --auto-correct. +Style/IndentationConsistency: + Enabled: false + +# Offense count: 34 +# Cop supports --auto-correct. +# Configuration parameters: Width. +Style/IndentationWidth: + Enabled: false + +# Offense count: 120 +# Cop supports --auto-correct. +Style/MethodCallParentheses: + Enabled: true + +# Offense count: 3 +# Cop supports --auto-correct. +# Configuration parameters: EnforcedStyle, SupportedStyles. +Style/MethodDefParentheses: + Enabled: true + +# Offense count: 1 +# Configuration parameters: EnforcedStyle, SupportedStyles. +Style/MethodName: + Enabled: true + +# Offense count: 5 +# Cop supports --auto-correct. +Style/MultilineIfThen: + Enabled: false + +# Offense count: 1 +# Cop supports --auto-correct. +# Configuration parameters: EnforcedStyle, SupportedStyles. +Style/MultilineOperationIndentation: + Enabled: false + +# Offense count: 1 +Style/MultilineTernaryOperator: + Enabled: false + +# Offense count: 14 +# Cop supports --auto-correct. +Style/NegatedIf: + Enabled: false + +# Offense count: 4 +# Configuration parameters: EnforcedStyle, MinBodyLength, SupportedStyles. +Style/Next: + Enabled: false + +# Offense count: 185 +# Cop supports --auto-correct. +# Configuration parameters: AllowSafeAssignment. +Style/ParenthesesAroundCondition: + Enabled: true + +# Offense count: 48 +# Cop supports --auto-correct. +Style/PerlBackrefs: + Enabled: false + +# Offense count: 3 +# Configuration parameters: NamePrefix, NamePrefixBlacklist. +Style/PredicateName: + Enabled: false + +# Offense count: 2 +# Cop supports --auto-correct. +Style/RedundantBegin: + Enabled: false + +# Offense count: 20 +# Cop supports --auto-correct. +# Configuration parameters: AllowMultipleReturnValues. +Style/RedundantReturn: + Enabled: true + +# Offense count: 50 +# Cop supports --auto-correct. +Style/RedundantSelf: + Enabled: false + +# Offense count: 4 +Style/RegexpLiteral: + MaxSlashes: 4 + +# Offense count: 16 +# Cop supports --auto-correct. +# Configuration parameters: AllowAsExpressionSeparator. +Style/Semicolon: + Enabled: true + +# Offense count: 42 +# Cop supports --auto-correct. +# Configuration parameters: EnforcedStyle, SupportedStyles. +Style/SignalException: + Enabled: false + +# Offense count: 4 +# Cop supports --auto-correct. +Style/SingleSpaceBeforeFirstArg: + Enabled: true + +# Offense count: 1 +# Cop supports --auto-correct. +Style/SpaceAfterColon: + Enabled: true + +# Offense count: 20 +# Cop supports --auto-correct. +Style/SpaceAfterComma: + Enabled: true + +# Offense count: 29 +# Cop supports --auto-correct. +Style/SpaceAfterControlKeyword: + Enabled: true + +# Offense count: 1 +# Cop supports --auto-correct. +Style/SpaceAfterMethodName: + Enabled: true + +# Offense count: 36 +# Cop supports --auto-correct. +Style/SpaceAfterNot: + Enabled: true + +# Offense count: 16 +# Cop supports --auto-correct. +Style/SpaceAroundOperators: + Enabled: true + +# Offense count: 14 +# Cop supports --auto-correct. +# Configuration parameters: EnforcedStyle, SupportedStyles. +Style/SpaceBeforeBlockBraces: + Enabled: false + +# Offense count: 2 +# Cop supports --auto-correct. +Style/SpaceBeforeComma: + Enabled: true + +# Offense count: 21 +# Cop supports --auto-correct. +# Configuration parameters: EnforcedStyle, SupportedStyles, EnforcedStyleForEmptyBraces, SpaceBeforeBlockParameters. +Style/SpaceInsideBlockBraces: + Enabled: false + +# Offense count: 41 +# Cop supports --auto-correct. +Style/SpaceInsideBrackets: + Enabled: true + +# Offense count: 2 +# Cop supports --auto-correct. +# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces, SupportedStyles. +Style/SpaceInsideHashLiteralBraces: + Enabled: true + +# Offense count: 1596 +# Cop supports --auto-correct. +Style/SpaceInsideParens: + Enabled: true + +# Offense count: 6 +# Cop supports --auto-correct. +Style/SpecialGlobalVars: + Enabled: true + +# Offense count: 368 +# Cop supports --auto-correct. +# Configuration parameters: EnforcedStyle, SupportedStyles. +Style/StringLiterals: + Enabled: true + +# Offense count: 3 +# Cop supports --auto-correct. +# Configuration parameters: EnforcedStyle, SupportedStyles. +Style/StringLiteralsInInterpolation: + Enabled: true + +# Offense count: 1 +# Cop supports --auto-correct. +# Configuration parameters: IgnoredMethods. +Style/SymbolProc: + Enabled: false + +# Offense count: 3 +# Cop supports --auto-correct. +Style/Tab: + Enabled: false + +# Offense count: 4 +# Cop supports --auto-correct. +# Configuration parameters: EnforcedStyle, SupportedStyles. +Style/TrailingBlankLines: + Enabled: false + +# Offense count: 7 +# Cop supports --auto-correct. +# Configuration parameters: EnforcedStyleForMultiline, SupportedStyles. +Style/TrailingComma: + Enabled: false + +# Offense count: 12 +# Cop supports --auto-correct. +Style/TrailingWhitespace: + Enabled: false + +# Offense count: 38 +# Cop supports --auto-correct. +# Configuration parameters: ExactNameMatch, AllowPredicates, AllowDSLWriters, Whitelist. +Style/TrivialAccessors: + Enabled: false + +# Offense count: 2 +# Configuration parameters: EnforcedStyle, SupportedStyles. +Style/VariableName: + Enabled: false + +# Offense count: 1 +# Cop supports --auto-correct. +# Configuration parameters: WordRegex. +Style/WordArray: + MinSize: 2 -- cgit v1.2.1