Skip to content

Instantly share code, notes, and snippets.

@bobvanderlinden
Created July 9, 2018 09:46
Show Gist options
  • Save bobvanderlinden/7df1f2495553b370f68c8cf6b48f0991 to your computer and use it in GitHub Desktop.
Save bobvanderlinden/7df1f2495553b370f68c8cf6b48f0991 to your computer and use it in GitHub Desktop.
Fix Rubocop configuration by replacing the category of cops
#!/usr/bin/env bash
RUBOCOP_CONF="$1"
cat "$RUBOCOP_CONF" | \
sed -e 's|^DuplicatedGem|Bundler/DuplicatedGem|g' | \
sed -e 's|^InsecureProtocolSource|Bundler/InsecureProtocolSource|g' | \
sed -e 's|^OrderedGems|Bundler/OrderedGems|g' | \
sed -e 's|^DuplicatedAssignment|Gemspec/DuplicatedAssignment|g' | \
sed -e 's|^OrderedDependencies|Gemspec/OrderedDependencies|g' | \
sed -e 's|^RequiredRubyVersion|Gemspec/RequiredRubyVersion|g' | \
sed -e 's|^AccessModifierIndentation|Layout/AccessModifierIndentation|g' | \
sed -e 's|^AlignArray|Layout/AlignArray|g' | \
sed -e 's|^AlignHash|Layout/AlignHash|g' | \
sed -e 's|^AlignParameters|Layout/AlignParameters|g' | \
sed -e 's|^BlockAlignment|Layout/BlockAlignment|g' | \
sed -e 's|^BlockEndNewline|Layout/BlockEndNewline|g' | \
sed -e 's|^CaseIndentation|Layout/CaseIndentation|g' | \
sed -e 's|^ClassStructure|Layout/ClassStructure|g' | \
sed -e 's|^ClosingParenthesisIndentation|Layout/ClosingParenthesisIndentation|g' | \
sed -e 's|^CommentIndentation|Layout/CommentIndentation|g' | \
sed -e 's|^ConditionPosition|Layout/ConditionPosition|g' | \
sed -e 's|^DefEndAlignment|Layout/DefEndAlignment|g' | \
sed -e 's|^DotPosition|Layout/DotPosition|g' | \
sed -e 's|^ElseAlignment|Layout/ElseAlignment|g' | \
sed -e 's|^EmptyComment|Layout/EmptyComment|g' | \
sed -e 's|^EmptyLineAfterGuardClause|Layout/EmptyLineAfterGuardClause|g' | \
sed -e 's|^EmptyLineAfterMagicComment|Layout/EmptyLineAfterMagicComment|g' | \
sed -e 's|^EmptyLineBetweenDefs|Layout/EmptyLineBetweenDefs|g' | \
sed -e 's|^EmptyLines|Layout/EmptyLines|g' | \
sed -e 's|^EmptyLinesAroundAccessModifier|Layout/EmptyLinesAroundAccessModifier|g' | \
sed -e 's|^EmptyLinesAroundArguments|Layout/EmptyLinesAroundArguments|g' | \
sed -e 's|^EmptyLinesAroundBeginBody|Layout/EmptyLinesAroundBeginBody|g' | \
sed -e 's|^EmptyLinesAroundBlockBody|Layout/EmptyLinesAroundBlockBody|g' | \
sed -e 's|^EmptyLinesAroundClassBody|Layout/EmptyLinesAroundClassBody|g' | \
sed -e 's|^EmptyLinesAroundExceptionHandlingKeywords|Layout/EmptyLinesAroundExceptionHandlingKeywords|g' | \
sed -e 's|^EmptyLinesAroundMethodBody|Layout/EmptyLinesAroundMethodBody|g' | \
sed -e 's|^EmptyLinesAroundModuleBody|Layout/EmptyLinesAroundModuleBody|g' | \
sed -e 's|^EndAlignment|Layout/EndAlignment|g' | \
sed -e 's|^EndOfLine|Layout/EndOfLine|g' | \
sed -e 's|^ExtraSpacing|Layout/ExtraSpacing|g' | \
sed -e 's|^FirstArrayElementLineBreak|Layout/FirstArrayElementLineBreak|g' | \
sed -e 's|^FirstHashElementLineBreak|Layout/FirstHashElementLineBreak|g' | \
sed -e 's|^FirstMethodArgumentLineBreak|Layout/FirstMethodArgumentLineBreak|g' | \
sed -e 's|^FirstMethodParameterLineBreak|Layout/FirstMethodParameterLineBreak|g' | \
sed -e 's|^FirstParameterIndentation|Layout/FirstParameterIndentation|g' | \
sed -e 's|^IndentArray|Layout/IndentArray|g' | \
sed -e 's|^IndentAssignment|Layout/IndentAssignment|g' | \
sed -e 's|^IndentHash|Layout/IndentHash|g' | \
sed -e 's|^IndentHeredoc|Layout/IndentHeredoc|g' | \
sed -e 's|^IndentationConsistency|Layout/IndentationConsistency|g' | \
sed -e 's|^IndentationWidth|Layout/IndentationWidth|g' | \
sed -e 's|^InitialIndentation|Layout/InitialIndentation|g' | \
sed -e 's|^LeadingCommentSpace|Layout/LeadingCommentSpace|g' | \
sed -e 's|^MultilineArrayBraceLayout|Layout/MultilineArrayBraceLayout|g' | \
sed -e 's|^MultilineAssignmentLayout|Layout/MultilineAssignmentLayout|g' | \
sed -e 's|^MultilineBlockLayout|Layout/MultilineBlockLayout|g' | \
sed -e 's|^MultilineHashBraceLayout|Layout/MultilineHashBraceLayout|g' | \
sed -e 's|^MultilineMethodCallBraceLayout|Layout/MultilineMethodCallBraceLayout|g' | \
sed -e 's|^MultilineMethodCallIndentation|Layout/MultilineMethodCallIndentation|g' | \
sed -e 's|^MultilineMethodDefinitionBraceLayout|Layout/MultilineMethodDefinitionBraceLayout|g' | \
sed -e 's|^MultilineOperationIndentation|Layout/MultilineOperationIndentation|g' | \
sed -e 's|^RescueEnsureAlignment|Layout/RescueEnsureAlignment|g' | \
sed -e 's|^SpaceAfterColon|Layout/SpaceAfterColon|g' | \
sed -e 's|^SpaceAfterComma|Layout/SpaceAfterComma|g' | \
sed -e 's|^SpaceAfterMethodName|Layout/SpaceAfterMethodName|g' | \
sed -e 's|^SpaceAfterNot|Layout/SpaceAfterNot|g' | \
sed -e 's|^SpaceAfterSemicolon|Layout/SpaceAfterSemicolon|g' | \
sed -e 's|^SpaceAroundBlockParameters|Layout/SpaceAroundBlockParameters|g' | \
sed -e 's|^SpaceAroundEqualsInParameterDefault|Layout/SpaceAroundEqualsInParameterDefault|g' | \
sed -e 's|^SpaceAroundKeyword|Layout/SpaceAroundKeyword|g' | \
sed -e 's|^SpaceAroundOperators|Layout/SpaceAroundOperators|g' | \
sed -e 's|^SpaceBeforeBlockBraces|Layout/SpaceBeforeBlockBraces|g' | \
sed -e 's|^SpaceBeforeComma|Layout/SpaceBeforeComma|g' | \
sed -e 's|^SpaceBeforeComment|Layout/SpaceBeforeComment|g' | \
sed -e 's|^SpaceBeforeFirstArg|Layout/SpaceBeforeFirstArg|g' | \
sed -e 's|^SpaceBeforeSemicolon|Layout/SpaceBeforeSemicolon|g' | \
sed -e 's|^SpaceInLambdaLiteral|Layout/SpaceInLambdaLiteral|g' | \
sed -e 's|^SpaceInsideArrayLiteralBrackets|Layout/SpaceInsideArrayLiteralBrackets|g' | \
sed -e 's|^SpaceInsideArrayPercentLiteral|Layout/SpaceInsideArrayPercentLiteral|g' | \
sed -e 's|^SpaceInsideBlockBraces|Layout/SpaceInsideBlockBraces|g' | \
sed -e 's|^SpaceInsideHashLiteralBraces|Layout/SpaceInsideHashLiteralBraces|g' | \
sed -e 's|^SpaceInsideParens|Layout/SpaceInsideParens|g' | \
sed -e 's|^SpaceInsidePercentLiteralDelimiters|Layout/SpaceInsidePercentLiteralDelimiters|g' | \
sed -e 's|^SpaceInsideRangeLiteral|Layout/SpaceInsideRangeLiteral|g' | \
sed -e 's|^SpaceInsideReferenceBrackets|Layout/SpaceInsideReferenceBrackets|g' | \
sed -e 's|^SpaceInsideStringInterpolation|Layout/SpaceInsideStringInterpolation|g' | \
sed -e 's|^Tab|Layout/Tab|g' | \
sed -e 's|^TrailingBlankLines|Layout/TrailingBlankLines|g' | \
sed -e 's|^TrailingWhitespace|Layout/TrailingWhitespace|g' | \
sed -e 's|^AmbiguousBlockAssociation|Lint/AmbiguousBlockAssociation|g' | \
sed -e 's|^AmbiguousOperator|Lint/AmbiguousOperator|g' | \
sed -e 's|^AmbiguousRegexpLiteral|Lint/AmbiguousRegexpLiteral|g' | \
sed -e 's|^AssignmentInCondition|Lint/AssignmentInCondition|g' | \
sed -e 's|^BigDecimalNew|Lint/BigDecimalNew|g' | \
sed -e 's|^BooleanSymbol|Lint/BooleanSymbol|g' | \
sed -e 's|^CircularArgumentReference|Lint/CircularArgumentReference|g' | \
sed -e 's|^Debugger|Lint/Debugger|g' | \
sed -e 's|^DeprecatedClassMethods|Lint/DeprecatedClassMethods|g' | \
sed -e 's|^DuplicateCaseCondition|Lint/DuplicateCaseCondition|g' | \
sed -e 's|^DuplicateMethods|Lint/DuplicateMethods|g' | \
sed -e 's|^DuplicatedKey|Lint/DuplicatedKey|g' | \
sed -e 's|^EachWithObjectArgument|Lint/EachWithObjectArgument|g' | \
sed -e 's|^ElseLayout|Lint/ElseLayout|g' | \
sed -e 's|^EmptyEnsure|Lint/EmptyEnsure|g' | \
sed -e 's|^EmptyExpression|Lint/EmptyExpression|g' | \
sed -e 's|^EmptyInterpolation|Lint/EmptyInterpolation|g' | \
sed -e 's|^EmptyWhen|Lint/EmptyWhen|g' | \
sed -e 's|^EndInMethod|Lint/EndInMethod|g' | \
sed -e 's|^EnsureReturn|Lint/EnsureReturn|g' | \
sed -e 's|^ErbNewArguments|Lint/ErbNewArguments|g' | \
sed -e 's|^FloatOutOfRange|Lint/FloatOutOfRange|g' | \
sed -e 's|^FormatParameterMismatch|Lint/FormatParameterMismatch|g' | \
sed -e 's|^HandleExceptions|Lint/HandleExceptions|g' | \
sed -e 's|^ImplicitStringConcatenation|Lint/ImplicitStringConcatenation|g' | \
sed -e 's|^IneffectiveAccessModifier|Lint/IneffectiveAccessModifier|g' | \
sed -e 's|^InheritException|Lint/InheritException|g' | \
sed -e 's|^InterpolationCheck|Lint/InterpolationCheck|g' | \
sed -e 's|^LiteralAsCondition|Lint/LiteralAsCondition|g' | \
sed -e 's|^LiteralInInterpolation|Lint/LiteralInInterpolation|g' | \
sed -e 's|^Loop|Lint/Loop|g' | \
sed -e 's|^MissingCopEnableDirective|Lint/MissingCopEnableDirective|g' | \
sed -e 's|^MultipleCompare|Lint/MultipleCompare|g' | \
sed -e 's|^NestedMethodDefinition|Lint/NestedMethodDefinition|g' | \
sed -e 's|^NestedPercentLiteral|Lint/NestedPercentLiteral|g' | \
sed -e 's|^NextWithoutAccumulator|Lint/NextWithoutAccumulator|g' | \
sed -e 's|^NonLocalExitFromIterator|Lint/NonLocalExitFromIterator|g' | \
sed -e 's|^NumberConversion|Lint/NumberConversion|g' | \
sed -e 's|^OrderedMagicComments|Lint/OrderedMagicComments|g' | \
sed -e 's|^ParenthesesAsGroupedExpression|Lint/ParenthesesAsGroupedExpression|g' | \
sed -e 's|^PercentStringArray|Lint/PercentStringArray|g' | \
sed -e 's|^PercentSymbolArray|Lint/PercentSymbolArray|g' | \
sed -e 's|^RandOne|Lint/RandOne|g' | \
sed -e 's|^RedundantWithIndex|Lint/RedundantWithIndex|g' | \
sed -e 's|^RedundantWithObject|Lint/RedundantWithObject|g' | \
sed -e 's|^RegexpAsCondition|Lint/RegexpAsCondition|g' | \
sed -e 's|^RequireParentheses|Lint/RequireParentheses|g' | \
sed -e 's|^RescueException|Lint/RescueException|g' | \
sed -e 's|^RescueType|Lint/RescueType|g' | \
sed -e 's|^ReturnInVoidContext|Lint/ReturnInVoidContext|g' | \
sed -e 's|^SafeNavigationChain|Lint/SafeNavigationChain|g' | \
sed -e 's|^SafeNavigationConsistency|Lint/SafeNavigationConsistency|g' | \
sed -e 's|^ScriptPermission|Lint/ScriptPermission|g' | \
sed -e 's|^ShadowedArgument|Lint/ShadowedArgument|g' | \
sed -e 's|^ShadowedException|Lint/ShadowedException|g' | \
sed -e 's|^ShadowingOuterLocalVariable|Lint/ShadowingOuterLocalVariable|g' | \
sed -e 's|^StringConversionInInterpolation|Lint/StringConversionInInterpolation|g' | \
sed -e 's|^Syntax|Lint/Syntax|g' | \
sed -e 's|^UnderscorePrefixedVariableName|Lint/UnderscorePrefixedVariableName|g' | \
sed -e 's|^UnifiedInteger|Lint/UnifiedInteger|g' | \
sed -e 's|^UnneededCopDisableDirective|Lint/UnneededCopDisableDirective|g' | \
sed -e 's|^UnneededCopEnableDirective|Lint/UnneededCopEnableDirective|g' | \
sed -e 's|^UnneededRequireStatement|Lint/UnneededRequireStatement|g' | \
sed -e 's|^UnneededSplatExpansion|Lint/UnneededSplatExpansion|g' | \
sed -e 's|^UnreachableCode|Lint/UnreachableCode|g' | \
sed -e 's|^UnusedBlockArgument|Lint/UnusedBlockArgument|g' | \
sed -e 's|^UnusedMethodArgument|Lint/UnusedMethodArgument|g' | \
sed -e 's|^UriEscapeUnescape|Lint/UriEscapeUnescape|g' | \
sed -e 's|^UriRegexp|Lint/UriRegexp|g' | \
sed -e 's|^UselessAccessModifier|Lint/UselessAccessModifier|g' | \
sed -e 's|^UselessAssignment|Lint/UselessAssignment|g' | \
sed -e 's|^UselessComparison|Lint/UselessComparison|g' | \
sed -e 's|^UselessElseWithoutRescue|Lint/UselessElseWithoutRescue|g' | \
sed -e 's|^UselessSetterCall|Lint/UselessSetterCall|g' | \
sed -e 's|^Void|Lint/Void|g' | \
sed -e 's|^AbcSize|Metrics/AbcSize|g' | \
sed -e 's|^BlockLength|Metrics/BlockLength|g' | \
sed -e 's|^BlockNesting|Metrics/BlockNesting|g' | \
sed -e 's|^ClassLength|Metrics/ClassLength|g' | \
sed -e 's|^CyclomaticComplexity|Metrics/CyclomaticComplexity|g' | \
sed -e 's|^LineLength|Metrics/LineLength|g' | \
sed -e 's|^MethodLength|Metrics/MethodLength|g' | \
sed -e 's|^ModuleLength|Metrics/ModuleLength|g' | \
sed -e 's|^ParameterLists|Metrics/ParameterLists|g' | \
sed -e 's|^PerceivedComplexity|Metrics/PerceivedComplexity|g' | \
sed -e 's|^AccessorMethodName|Naming/AccessorMethodName|g' | \
sed -e 's|^AsciiIdentifiers|Naming/AsciiIdentifiers|g' | \
sed -e 's|^BinaryOperatorParameterName|Naming/BinaryOperatorParameterName|g' | \
sed -e 's|^ClassAndModuleCamelCase|Naming/ClassAndModuleCamelCase|g' | \
sed -e 's|^ConstantName|Naming/ConstantName|g' | \
sed -e 's|^FileName|Naming/FileName|g' | \
sed -e 's|^HeredocDelimiterCase|Naming/HeredocDelimiterCase|g' | \
sed -e 's|^HeredocDelimiterNaming|Naming/HeredocDelimiterNaming|g' | \
sed -e 's|^MemoizedInstanceVariableName|Naming/MemoizedInstanceVariableName|g' | \
sed -e 's|^MethodName|Naming/MethodName|g' | \
sed -e 's|^PredicateName|Naming/PredicateName|g' | \
sed -e 's|^UncommunicativeBlockParamName|Naming/UncommunicativeBlockParamName|g' | \
sed -e 's|^UncommunicativeMethodParamName|Naming/UncommunicativeMethodParamName|g' | \
sed -e 's|^VariableName|Naming/VariableName|g' | \
sed -e 's|^VariableNumber|Naming/VariableNumber|g' | \
sed -e 's|^Caller|Performance/Caller|g' | \
sed -e 's|^CaseWhenSplat|Performance/CaseWhenSplat|g' | \
sed -e 's|^Casecmp|Performance/Casecmp|g' | \
sed -e 's|^CompareWithBlock|Performance/CompareWithBlock|g' | \
sed -e 's|^Count|Performance/Count|g' | \
sed -e 's|^Detect|Performance/Detect|g' | \
sed -e 's|^DoubleStartEndWith|Performance/DoubleStartEndWith|g' | \
sed -e 's|^EndWith|Performance/EndWith|g' | \
sed -e 's|^FixedSize|Performance/FixedSize|g' | \
sed -e 's|^FlatMap|Performance/FlatMap|g' | \
sed -e 's|^InefficientHashSearch|Performance/InefficientHashSearch|g' | \
sed -e 's|^LstripRstrip|Performance/LstripRstrip|g' | \
sed -e 's|^RangeInclude|Performance/RangeInclude|g' | \
sed -e 's|^RedundantBlockCall|Performance/RedundantBlockCall|g' | \
sed -e 's|^RedundantMatch|Performance/RedundantMatch|g' | \
sed -e 's|^RedundantMerge|Performance/RedundantMerge|g' | \
sed -e 's|^RedundantSortBy|Performance/RedundantSortBy|g' | \
sed -e 's|^RegexpMatch|Performance/RegexpMatch|g' | \
sed -e 's|^ReverseEach|Performance/ReverseEach|g' | \
sed -e 's|^Sample|Performance/Sample|g' | \
sed -e 's|^Size|Performance/Size|g' | \
sed -e 's|^StartWith|Performance/StartWith|g' | \
sed -e 's|^StringReplacement|Performance/StringReplacement|g' | \
sed -e 's|^TimesMap|Performance/TimesMap|g' | \
sed -e 's|^UnfreezeString|Performance/UnfreezeString|g' | \
sed -e 's|^UnneededSort|Performance/UnneededSort|g' | \
sed -e 's|^UriDefaultParser|Performance/UriDefaultParser|g' | \
sed -e 's|^ActionFilter|Rails/ActionFilter|g' | \
sed -e 's|^ActiveRecordAliases|Rails/ActiveRecordAliases|g' | \
sed -e 's|^ActiveSupportAliases|Rails/ActiveSupportAliases|g' | \
sed -e 's|^ApplicationJob|Rails/ApplicationJob|g' | \
sed -e 's|^ApplicationRecord|Rails/ApplicationRecord|g' | \
sed -e 's|^AssertNot|Rails/AssertNot|g' | \
sed -e 's|^Blank|Rails/Blank|g' | \
sed -e 's|^CreateTableWithTimestamps|Rails/CreateTableWithTimestamps|g' | \
sed -e 's|^Date|Rails/Date|g' | \
sed -e 's|^Delegate|Rails/Delegate|g' | \
sed -e 's|^DelegateAllowBlank|Rails/DelegateAllowBlank|g' | \
sed -e 's|^DynamicFindBy|Rails/DynamicFindBy|g' | \
sed -e 's|^EnumUniqueness|Rails/EnumUniqueness|g' | \
sed -e 's|^EnvironmentComparison|Rails/EnvironmentComparison|g' | \
sed -e 's|^Exit|Rails/Exit|g' | \
sed -e 's|^FilePath|Rails/FilePath|g' | \
sed -e 's|^FindBy|Rails/FindBy|g' | \
sed -e 's|^FindEach|Rails/FindEach|g' | \
sed -e 's|^HasAndBelongsToMany|Rails/HasAndBelongsToMany|g' | \
sed -e 's|^HasManyOrHasOneDependent|Rails/HasManyOrHasOneDependent|g' | \
sed -e 's|^HttpPositionalArguments|Rails/HttpPositionalArguments|g' | \
sed -e 's|^HttpStatus|Rails/HttpStatus|g' | \
sed -e 's|^InverseOf|Rails/InverseOf|g' | \
sed -e 's|^LexicallyScopedActionFilter|Rails/LexicallyScopedActionFilter|g' | \
sed -e 's|^NotNullColumn|Rails/NotNullColumn|g' | \
sed -e 's|^Output|Rails/Output|g' | \
sed -e 's|^OutputSafety|Rails/OutputSafety|g' | \
sed -e 's|^PluralizationGrammar|Rails/PluralizationGrammar|g' | \
sed -e 's|^Presence|Rails/Presence|g' | \
sed -e 's|^Present|Rails/Present|g' | \
sed -e 's|^ReadWriteAttribute|Rails/ReadWriteAttribute|g' | \
sed -e 's|^RedundantReceiverInWithOptions|Rails/RedundantReceiverInWithOptions|g' | \
sed -e 's|^RefuteMethods|Rails/RefuteMethods|g' | \
sed -e 's|^RelativeDateConstant|Rails/RelativeDateConstant|g' | \
sed -e 's|^RequestReferer|Rails/RequestReferer|g' | \
sed -e 's|^ReversibleMigration|Rails/ReversibleMigration|g' | \
sed -e 's|^SafeNavigation|Rails/SafeNavigation|g' | \
sed -e 's|^SaveBang|Rails/SaveBang|g' | \
sed -e 's|^ScopeArgs|Rails/ScopeArgs|g' | \
sed -e 's|^SkipsModelValidations|Rails/SkipsModelValidations|g' | \
sed -e 's|^TimeZone|Rails/TimeZone|g' | \
sed -e 's|^UniqBeforePluck|Rails/UniqBeforePluck|g' | \
sed -e 's|^UnknownEnv|Rails/UnknownEnv|g' | \
sed -e 's|^Validation|Rails/Validation|g' | \
sed -e 's|^Eval|Security/Eval|g' | \
sed -e 's|^JSONLoad|Security/JSONLoad|g' | \
sed -e 's|^MarshalLoad|Security/MarshalLoad|g' | \
sed -e 's|^Open|Security/Open|g' | \
sed -e 's|^YAMLLoad|Security/YAMLLoad|g' | \
sed -e 's|^Alias|Alias|g' | \
sed -e 's|^AndOr|Style/AndOr|g' | \
sed -e 's|^ArrayJoin|Style/ArrayJoin|g' | \
sed -e 's|^AsciiComments|AsciiComments|g' | \
sed -e 's|^Attr|Style/Attr|g' | \
sed -e 's|^AutoResourceCleanup|Style/AutoResourceCleanup|g' | \
sed -e 's|^BarePercentLiterals|BarePercentLiterals|g' | \
sed -e 's|^BeginBlock|Style/BeginBlock|g' | \
sed -e 's|^BlockComments|BlockComments|g' | \
sed -e 's|^BlockDelimiters|BlockDelimiters|g' | \
sed -e 's|^BracesAroundHashParameters|BracesAroundHashParameters|g' | \
sed -e 's|^CaseEquality|Style/CaseEquality|g' | \
sed -e 's|^CharacterLiteral|Style/CharacterLiteral|g' | \
sed -e 's|^ClassAndModuleChildren|Style/ClassAndModuleChildren|g' | \
sed -e 's|^ClassCheck|Style/ClassCheck|g' | \
sed -e 's|^ClassMethods|ClassMethods|g' | \
sed -e 's|^ClassVars|ClassVars|g' | \
sed -e 's|^CollectionMethods|CollectionMethods|g' | \
sed -e 's|^ColonMethodCall|Style/ColonMethodCall|g' | \
sed -e 's|^ColonMethodDefinition|Style/ColonMethodDefinition|g' | \
sed -e 's|^CommandLiteral|Style/CommandLiteral|g' | \
sed -e 's|^CommentAnnotation|Style/CommentAnnotation|g' | \
sed -e 's|^CommentedKeyword|Style/CommentedKeyword|g' | \
sed -e 's|^ConditionalAssignment|Style/ConditionalAssignment|g' | \
sed -e 's|^Copyright|Style/Copyright|g' | \
sed -e 's|^DateTime|Style/DateTime|g' | \
sed -e 's|^DefWithParentheses|DefWithParentheses|g' | \
sed -e 's|^Dir|Style/Dir|g' | \
sed -e 's|^Documentation|Style/Documentation|g' | \
sed -e 's|^DocumentationMethod|Style/DocumentationMethod|g' | \
sed -e 's|^DoubleNegation|Style/DoubleNegation|g' | \
sed -e 's|^EachForSimpleLoop|Style/EachForSimpleLoop|g' | \
sed -e 's|^EachWithObject|Style/EachWithObject|g' | \
sed -e 's|^EmptyBlockParameter|Style/EmptyBlockParameter|g' | \
sed -e 's|^EmptyCaseCondition|Style/EmptyCaseCondition|g' | \
sed -e 's|^EmptyElse|Style/EmptyElse|g' | \
sed -e 's|^EmptyLambdaParameter|Style/EmptyLambdaParameter|g' | \
sed -e 's|^EmptyLiteral|Style/EmptyLiteral|g' | \
sed -e 's|^EmptyMethod|Style/EmptyMethod|g' | \
sed -e 's|^Encoding|Style/Encoding|g' | \
sed -e 's|^EndBlock|Style/EndBlock|g' | \
sed -e 's|^EvalWithLocation|Style/EvalWithLocation|g' | \
sed -e 's|^EvenOdd|Style/EvenOdd|g' | \
sed -e 's|^ExpandPathArguments|ExpandPathArguments|g' | \
sed -e 's|^FlipFlop|Style/FlipFlop|g' | \
sed -e 's|^For|Style/For|g' | \
sed -e 's|^FormatString|Style/FormatString|g' | \
sed -e 's|^FormatStringToken|Style/FormatStringToken|g' | \
sed -e 's|^FrozenStringLiteralComment|Style/FrozenStringLiteralComment|g' | \
sed -e 's|^GlobalVars|GlobalVars|g' | \
sed -e 's|^GuardClause|Style/GuardClause|g' | \
sed -e 's|^HashSyntax|Style/HashSyntax|g' | \
sed -e 's|^IdenticalConditionalBranches|IdenticalConditionalBranches|g' | \
sed -e 's|^IfInsideElse|Style/IfInsideElse|g' | \
sed -e 's|^IfUnlessModifier|Style/IfUnlessModifier|g' | \
sed -e 's|^IfUnlessModifierOfIfUnless|IfUnlessModifierOfIfUnless|g' | \
sed -e 's|^IfWithSemicolon|Style/IfWithSemicolon|g' | \
sed -e 's|^ImplicitRuntimeError|Style/ImplicitRuntimeError|g' | \
sed -e 's|^InfiniteLoop|Style/InfiniteLoop|g' | \
sed -e 's|^InlineComment|Style/InlineComment|g' | \
sed -e 's|^InverseMethods|InverseMethods|g' | \
sed -e 's|^Lambda|Style/Lambda|g' | \
sed -e 's|^LambdaCall|Style/LambdaCall|g' | \
sed -e 's|^LineEndConcatenation|Style/LineEndConcatenation|g' | \
sed -e 's|^MethodCallWithArgsParentheses|MethodCallWithArgsParentheses|g' | \
sed -e 's|^MethodCallWithoutArgsParentheses|MethodCallWithoutArgsParentheses|g' | \
sed -e 's|^MethodCalledOnDoEndBlock|Style/MethodCalledOnDoEndBlock|g' | \
sed -e 's|^MethodDefParentheses|MethodDefParentheses|g' | \
sed -e 's|^MethodMissingSuper|Style/MethodMissingSuper|g' | \
sed -e 's|^MinMax|Style/MinMax|g' | \
sed -e 's|^MissingElse|Style/MissingElse|g' | \
sed -e 's|^MissingRespondToMissing|Style/MissingRespondToMissing|g' | \
sed -e 's|^MixinGrouping|Style/MixinGrouping|g' | \
sed -e 's|^MixinUsage|Style/MixinUsage|g' | \
sed -e 's|^ModuleFunction|Style/ModuleFunction|g' | \
sed -e 's|^MultilineBlockChain|Style/MultilineBlockChain|g' | \
sed -e 's|^MultilineIfModifier|Style/MultilineIfModifier|g' | \
sed -e 's|^MultilineIfThen|Style/MultilineIfThen|g' | \
sed -e 's|^MultilineMemoization|Style/MultilineMemoization|g' | \
sed -e 's|^MultilineTernaryOperator|Style/MultilineTernaryOperator|g' | \
sed -e 's|^MultipleComparison|Style/MultipleComparison|g' | \
sed -e 's|^MutableConstant|Style/MutableConstant|g' | \
sed -e 's|^NegatedIf|Style/NegatedIf|g' | \
sed -e 's|^NegatedWhile|Style/NegatedWhile|g' | \
sed -e 's|^NestedModifier|Style/NestedModifier|g' | \
sed -e 's|^NestedParenthesizedCalls|NestedParenthesizedCalls|g' | \
sed -e 's|^NestedTernaryOperator|Style/NestedTernaryOperator|g' | \
sed -e 's|^Next|Style/Next|g' | \
sed -e 's|^NilComparison|Style/NilComparison|g' | \
sed -e 's|^NonNilCheck|Style/NonNilCheck|g' | \
sed -e 's|^Not|Style/Not|g' | \
sed -e 's|^NumericLiteralPrefix|Style/NumericLiteralPrefix|g' | \
sed -e 's|^NumericLiterals|NumericLiterals|g' | \
sed -e 's|^NumericPredicate|Style/NumericPredicate|g' | \
sed -e 's|^OneLineConditional|Style/OneLineConditional|g' | \
sed -e 's|^OptionHash|Style/OptionHash|g' | \
sed -e 's|^OptionalArguments|OptionalArguments|g' | \
sed -e 's|^OrAssignment|Style/OrAssignment|g' | \
sed -e 's|^ParallelAssignment|Style/ParallelAssignment|g' | \
sed -e 's|^ParenthesesAroundCondition|Style/ParenthesesAroundCondition|g' | \
sed -e 's|^PercentLiteralDelimiters|PercentLiteralDelimiters|g' | \
sed -e 's|^PercentQLiterals|PercentQLiterals|g' | \
sed -e 's|^PerlBackrefs|PerlBackrefs|g' | \
sed -e 's|^PreferredHashMethods|PreferredHashMethods|g' | \
sed -e 's|^Proc|Style/Proc|g' | \
sed -e 's|^RaiseArgs|RaiseArgs|g' | \
sed -e 's|^RandomWithOffset|Style/RandomWithOffset|g' | \
sed -e 's|^RedundantBegin|Style/RedundantBegin|g' | \
sed -e 's|^RedundantConditional|Style/RedundantConditional|g' | \
sed -e 's|^RedundantException|Style/RedundantException|g' | \
sed -e 's|^RedundantFreeze|Style/RedundantFreeze|g' | \
sed -e 's|^RedundantParentheses|RedundantParentheses|g' | \
sed -e 's|^RedundantReturn|Style/RedundantReturn|g' | \
sed -e 's|^RedundantSelf|Style/RedundantSelf|g' | \
sed -e 's|^RegexpLiteral|Style/RegexpLiteral|g' | \
sed -e 's|^RescueModifier|Style/RescueModifier|g' | \
sed -e 's|^RescueStandardError|Style/RescueStandardError|g' | \
sed -e 's|^ReturnNil|Style/ReturnNil|g' | \
sed -e 's|^SafeNavigation|Style/SafeNavigation|g' | \
sed -e 's|^SelfAssignment|Style/SelfAssignment|g' | \
sed -e 's|^Semicolon|Style/Semicolon|g' | \
sed -e 's|^Send|Style/Send|g' | \
sed -e 's|^SignalException|Style/SignalException|g' | \
sed -e 's|^SingleLineBlockParams|SingleLineBlockParams|g' | \
sed -e 's|^SingleLineMethods|SingleLineMethods|g' | \
sed -e 's|^SpecialGlobalVars|SpecialGlobalVars|g' | \
sed -e 's|^StabbyLambdaParentheses|StabbyLambdaParentheses|g' | \
sed -e 's|^StderrPuts|StderrPuts|g' | \
sed -e 's|^StringHashKeys|StringHashKeys|g' | \
sed -e 's|^StringLiterals|StringLiterals|g' | \
sed -e 's|^StringLiteralsInInterpolation|Style/StringLiteralsInInterpolation|g' | \
sed -e 's|^StringMethods|StringMethods|g' | \
sed -e 's|^StructInheritance|Style/StructInheritance|g' | \
sed -e 's|^SymbolArray|Style/SymbolArray|g' | \
sed -e 's|^SymbolLiteral|Style/SymbolLiteral|g' | \
sed -e 's|^SymbolProc|Style/SymbolProc|g' | \
sed -e 's|^TernaryParentheses|TernaryParentheses|g' | \
sed -e 's|^TrailingBodyOnClass|TrailingBodyOnClass|g' | \
sed -e 's|^TrailingBodyOnMethodDefinition|Style/TrailingBodyOnMethodDefinition|g' | \
sed -e 's|^TrailingBodyOnModule|Style/TrailingBodyOnModule|g' | \
sed -e 's|^TrailingCommaInArguments|TrailingCommaInArguments|g' | \
sed -e 's|^TrailingCommaInArrayLiteral|Style/TrailingCommaInArrayLiteral|g' | \
sed -e 's|^TrailingCommaInHashLiteral|Style/TrailingCommaInHashLiteral|g' | \
sed -e 's|^TrailingMethodEndStatement|Style/TrailingMethodEndStatement|g' | \
sed -e 's|^TrailingUnderscoreVariable|Style/TrailingUnderscoreVariable|g' | \
sed -e 's|^TrivialAccessors|TrivialAccessors|g' | \
sed -e 's|^UnlessElse|Style/UnlessElse|g' | \
sed -e 's|^UnneededCapitalW|Style/UnneededCapitalW|g' | \
sed -e 's|^UnneededInterpolation|Style/UnneededInterpolation|g' | \
sed -e 's|^UnneededPercentQ|Style/UnneededPercentQ|g' | \
sed -e 's|^UnpackFirst|Style/UnpackFirst|g' | \
sed -e 's|^VariableInterpolation|Style/VariableInterpolation|g' | \
sed -e 's|^WhenThen|Style/WhenThen|g' | \
sed -e 's|^WhileUntilDo|Style/WhileUntilDo|g' | \
sed -e 's|^WhileUntilModifier|Style/WhileUntilModifier|g' | \
sed -e 's|^WordArray|Style/WordArray|g' | \
sed -e 's|^YodaCondition|Style/YodaCondition|g' | \
sed -e 's|^ZeroLengthPredicate|Style/ZeroLengthPredicate|g' | \
tee .rubocop.tmp.yml && mv .rubocop.tmp.yml "$RUBOCOP_CONF"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment