Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More Rubocop fixes #843

Merged
merged 50 commits into from
Feb 8, 2018
Merged

More Rubocop fixes #843

merged 50 commits into from
Feb 8, 2018

Conversation

alexjfisher
Copy link
Member

@alexjfisher alexjfisher commented Feb 7, 2018

50 More autofix style rubocop fixes.

For reference, the following list now all pass.

rubocop -D -S -E --only rubocop -D -S -E --only Layout/SpaceAroundBlockParameters,Layout/EmptyLinesAroundBlockBody,Style/StringLiterals,Layout/SpaceAroundOperators,Style/TrailingCommaInLiteral,Layout/SpaceAfterComma,Layout/LeadingCommentSpace,Layout/CaseIndentation,Style/RedundantReturn,Style/CollectionMethods,Style/RedundantParentheses,Style/AndOr,Layout/AlignHash,Style/BlockDelimiters,Style/NegatedIf,Style/MultilineIfThen,Lint/UnusedBlockArgument,Layout/ExtraSpacing,Style/ParenthesesAroundCondition,Style/IfUnlessModifier,RSpec/ExampleWording,Style/ParenthesesAroundCondition,Layout/EmptyLines,Style/MethodCallWithoutArgsParentheses,Layout/SpaceInsideBlockBraces,Layout/SpaceInsideHashLiteralBraces,Style/TrailingCommaInArguments,Layout/SpaceInsideBrackets,Layout/EmptyLinesAroundAccessModifier,Style/Proc,Layout/SpaceInsideRangeLiteral,Layout/TrailingBlankLines,Layout/SpaceInsidePercentLiteralDelimiters,Style/CharacterLiteral,Layout/EmptyLinesAroundMethodBody,Layout/SpaceBeforeBlockBraces,Layout/AlignArray,Layout/IndentArray,Style/HashSyntax,Layout/EmptyLineBetweenDefs,Lint/DeprecatedClassMethods,Layout/SpaceInsideParens,Style/BracesAroundHashParameters,RSpec/ImplicitExpect,Layout/AlignParameters,Style/YodaCondition,Style/Encoding,Layout/IndentationWidth,Layout/ElseAlignment,Style/ParenthesesAroundCondition,Style/ConditionalAssignment,Style/UnlessElse,Style/SignalException,Style/FormatString,Style/RedundantSelf,Performance/StringReplacement,Layout/AccessModifierIndentation,Lint/UnusedMethodArgument,Layout/TrailingWhitespace,Style/RescueModifier,Style/PercentLiteralDelimiters,Style/InverseMethods,Style/MutableConstant,Style/UnneededInterpolation,Style/ParallelAssignment,Style/NegatedIf,Style/Semicolon,Style/SingleLineMethods,Style/SelfAssignment,Style/NilComparison,Style/NegatedWhile,Style/ZeroLengthPredicate,Performance/RedundantMerge,Style/RedundantBegin,Performance/RedundantBlockCall,RSpec/DescribedClass,Layout/DotPosition

@jhoblitt
Copy link
Member

jhoblitt commented Feb 7, 2018

I personally don't like removing TrailingCommaInArguments as it often results in an extra line in diffs (to add the trailing comment) when parameters are changed. That said I will go along with others preferences.

@alexjfisher
Copy link
Member Author

@jhoblitt I think that's a valid argument. But... we try to use the same .rubocop.yml config file in all Vox Pupuli modules. So if we change it, I think we should do it in all modules.

ping @bastelfreak

@alexjfisher
Copy link
Member Author

I think I found the issue in the Style/SignalException commit. I've amended it. Fingers crossed the build will pass now.

@alexjfisher alexjfisher closed this Feb 8, 2018
@alexjfisher alexjfisher reopened this Feb 8, 2018
@alexjfisher alexjfisher changed the title WIP: More Rubocop fixes More Rubocop fixes Feb 8, 2018
@bastelfreak bastelfreak merged commit 8a36ce8 into voxpupuli:master Feb 8, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants