config/chefstyle.yml in lcgstyle-0.0.6 vs config/chefstyle.yml in lcgstyle-0.0.7

- old
+ new

@@ -12,20 +12,24 @@ Enabled: true Lint/Debugger: Enabled: true Lint/DefEndAlignment: Enabled: true +Lint/DuplicateCaseCondition: + Enabled: true Lint/DuplicateMethods: Enabled: true Lint/DuplicatedKey: Enabled: true Lint/EachWithObjectArgument: Enabled: true Lint/ElseLayout: Enabled: true Lint/EmptyEnsure: Enabled: true +Lint/EmptyExpression: + Enabled: true Lint/EmptyInterpolation: Enabled: true Lint/EndAlignment: Enabled: true Lint/EndInMethod: @@ -36,10 +40,12 @@ Enabled: true Lint/FormatParameterMismatch: Enabled: true Lint/ImplicitStringConcatenation: Enabled: true +Lint/InheritException: + Enabled: true Lint/InvalidCharacterLiteral: Enabled: true Lint/LiteralInCondition: Enabled: true Lint/LiteralInInterpolation: @@ -58,10 +64,12 @@ Enabled: true Lint/StringConversionInInterpolation: Enabled: true Lint/UnderscorePrefixedVariableName: Enabled: true +Lint/UnifiedInteger: + Enabled: true Lint/UnreachableCode: Enabled: true Lint/UselessAccessModifier: Enabled: true Lint/UselessComparison: @@ -136,10 +144,12 @@ Enabled: true Performance/Sample: Enabled: true Performance/Size: Enabled: true +Performance/SortWithBlock: + Enabled: true Performance/StartWith: Enabled: true Performance/StringReplacement: Enabled: true Performance/TimesMap: @@ -182,10 +192,12 @@ # work to do and we have much higher priorities. Metrics/AbcSize: Enabled: false Metrics/BlockNesting: Enabled: false +Metrics/BlockLength: + Enabled: false Metrics/ClassLength: Enabled: false Metrics/CyclomaticComplexity: Enabled: false Metrics/LineLength: @@ -228,10 +240,12 @@ Enabled: true Style/CommandLiteral: Enabled: true Style/ConstantName: Enabled: true +Style/DefWithParenthesis: + Enabled: true Style/ElseAlignment: Enabled: true Style/EmptyLineBetweenDefs: Enabled: true Style/EmptyLines: @@ -272,12 +286,16 @@ Enabled: true Style/MethodDefParentheses: Enabled: true Style/MultilineBlockLayout: Enabled: true +Style/MultilineIfModifer: + Enabled: true Style/MultilineIfThen: Enabled: true +Style/MultilineMemoization: + Enabled: true Style/MultilineMethodDefinitionBraceLayout: Enabled: true Style/MultilineOperationIndentation: Enabled: true EnforcedStyle: indented @@ -287,10 +305,18 @@ Enabled: true Style/NestedModifier: Enabled: true Style/NestedTernaryOperator: Enabled: true +Style/NilComparison: + Enabled: true +Style/NonNilCheck: + Enabled: true +# `foo.zero?` is slower and substantially more annoying to read than `foo == 0` +Style/NumericPredicate: + Enabled: true + EnforcedStyle: comparison Style/OneLineConditional: Enabled: true Style/OpMethod: Enabled: true Style/OptionalArguments: @@ -305,10 +331,11 @@ Style/PercentLiteralDelimiters: Enabled: true PreferredDelimiters: '%': '{}' '%i': '{}' + '%I': '{}' '%q': '{}' '%Q': '{}' '%r': '{}' '%s': '{}' '%w': '{}' @@ -320,10 +347,14 @@ Enabled: true Style/RedundantFreeze: Enabled: true Style/RescueEnsureAlignment: Enabled: true +Style/SafeNavigation: + Enabled: true +Style/SelfAssignment: + Enabled: true Style/Semicolon: AllowAsExpressionSeparator: true Enabled: true # we only 'raise' and do not 'fail' Style/SignalException: @@ -351,16 +382,22 @@ Enabled: true Style/SpaceBeforeSemicolon: Enabled: true Style/SpaceAroundKeyword: Enabled: true +Style/SpaceInLambdaLiteral: + Enabled: true +Style/SpaceInsideArrayPercentLiteral: + Enabled: true Style/SpaceInsideBlockBraces: Enabled: true Style/SpaceInsideHashLiteralBraces: Enabled: true Style/SpaceInsideRangeLiteral: Enabled: true +Style/SpaceInsideStringInterpolation: + Enabled: true Style/StabbyLambdaParentheses: Enabled: true # core chef community prefers double quotes over single quotes Style/StringLiterals: EnforcedStyle: double_quotes @@ -389,10 +426,12 @@ Enabled: true #Style/UnneededPercentQ: # would like to enable this one but its buggy as of 0.35.1 # Enabled: true Style/VariableName: Enabled: true +Style/VariableInterpolation: + Enabled: true Style/WhenThen: Enabled: true Style/WhileUntilDo: Enabled: true Style/WhileUntilModifier: @@ -406,10 +445,12 @@ # As of this commit we have 686 modules and classes without docs. # This is a cop that we /should/ have enabled, but tactically we can't really enable. Style/Documentation: Enabled: false +Style/DocumentationMethod: + Enabled: false # this makes whitespace formatting of DSL code impossible Style/SpaceBeforeFirstArg: Enabled: false @@ -465,5 +506,19 @@ Enabled: false # Parens around ternaries often make them more readable and reduces cognitive load over operator precidence Style/TernaryParentheses: Enabled: false + +# Underscores in numbers are super ugly for port numbers, freebsd versions, etc. +# If we could mandate that this gets turned on only for numbers >= 1e9 which require three _'s then maybe. +Style/NumericLiterals: + Enabled: false + +# I tend to find this more readable than long elsif chains +Style/EmptyCaseCondition: + Enabled: false + +# This didn't quite do what we need +Style/MultilineArrayBraceLayout: + Enabled: false +