-
Notifications
You must be signed in to change notification settings - Fork 47
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
Remove linter errors (in .rubocop_todo.yml
)
#77
Comments
78: Fix some rubocop warnings in tests r=curquiza a=hosamaly In response to #77, this merge request fixes many RuboCop issues in `integration_spec` and `utilities_spec`. Most of them were auto-corrected, but care had to be taken because the auto-corrections sometimes resulted in tests that do nothing (e.g. changing `x.should == nil` to `x.nil?`). Co-authored-by: Hosam Aly <hosamaly6@gmail.com>
I would like to work on this issue, if possible. |
Hello @AudTheCodeWitch Thanks for your interest in this project :) FYI, we prefer not assigning people to our issues because sometimes people ask to be assigned and never come back, which discourages the volunteer contributors to open a PR to fix this issue. We are looking forward to reviewing your PR 🙂 |
Hi @curquiza I'm interested to work on this. Hope I can get some advice on a failing spec while running on local for
Please let me know where I went wrong in running the steps. I unfortunately do not have docker installed on my laptop. Thank you so much! |
Hello @reginaalyssa |
- TrailingWhitespace - UnusedMethodArgument - AndOr - IfUnlessModifier - StringLiterals Related to meilisearch#77
- HashSyntax - TrailingWhitespace - StringLiterals Related to meilisearch#77
81: Enhancement/Code style v3 r=curquiza a=brunoocasali - Include .idea to gitignore file - Fix offenses on spec_helper - Fix offenses on pagination files - Fix offenses on rake tasks - Publish changes on rubocop_todo.yml Related to #77 Co-authored-by: Bruno Casali <brunoocasali@gmail.com>
82: Enhancement/Code style v4 r=curquiza a=brunoocasali - Multiple fixes on specs - Change configuration on rubocop to be more concise to the kind of meili tests. Do not merge before #81 Related with #77 After this PR and 77: `18 files inspected, 338 offenses detected, 160 offenses auto-correctable` Co-authored-by: Bruno Casali <brunoocasali@gmail.com>
Layout/EmptyLinesAroundAccessModifier Layout/AssignmentIndentation Layout/EmptyLineAfterGuardClause Layout/ExtraSpacing Layout/SpaceAfterComma Layout/SpaceAroundOperators Layout/Layout/SpaceBeforeComma Layout/TrailingEmptyLines Style/ConditionalAssignment Style/GlobalStdStream Style/MutableConstant Style/NumericPredicate Style/Proc Style/RedundantBegin Persist configuration to rubocop_todo.yml Related to meilisearch#77
83: Enhancement/Code Style v5 r=curquiza a=brunoocasali `@curquiza` sorry to flood your notification system 🤣 but the idea is to reduce the size of the diff to make it easier to review. Multiple offenses fixed like: Layout/EmptyLinesAroundAccessModifier Layout/AssignmentIndentation Layout/EmptyLineAfterGuardClause Layout/ExtraSpacing Layout/SpaceAfterComma Layout/SpaceAroundOperators Layout/Layout/SpaceBeforeComma Layout/TrailingEmptyLines Style/ConditionalAssignment Style/GlobalStdStream Style/MutableConstant Style/NumericPredicate Style/Proc Style/RedundantBegin Related to #77 before: `18 files inspected, 365 offenses detected, 175 offenses auto-correctable` after: `18 files inspected, 288 offenses detected, 104 offenses auto-correctable` Co-authored-by: Bruno Casali <brunoocasali@gmail.com>
Layout/EmptyLineBetweenDefs Layout/EmptyLinesAroundBlockBody Layout/IndentationConsistency Lint/IneffectiveAccessModifier Lint/RedundantStringCoercion Lint/UselessAccessModifier Naming/PredicateName Rails/Blank Rails/Present Style/AndOr Style/ClassEqualityComparison Style/HashSyntax Style/IdenticalConditionalBranches Style/MutableConstant Style/Next Related to meilisearch#77
@curquiza I was sending many PR's but I didn’t mention what I want with them, the current approach is to:
(feel free to reply with your concerns) Probably after this, the rubocop_todo would be gone! |
Hello @brunoocasali We should create separated issues for what you suggest (the 3rd last points) since it's not related to this issue "Remove linter errors". Feel free to open them to detail what you plan to do a little bit 🙂 |
84: Enhancement/Code Style v6 r=curquiza a=brunoocasali Fixed more offenses on meilisearch-rails, version, pagination files. Layout/EmptyLineBetweenDefs Layout/EmptyLinesAroundBlockBody Layout/IndentationConsistency Lint/IneffectiveAccessModifier Lint/RedundantStringCoercion Lint/UselessAccessModifier Naming/PredicateName Rails/Blank Rails/Present Style/AndOr Style/ClassEqualityComparison Style/HashSyntax Style/IdenticalConditionalBranches Style/MutableConstant Style/Next Style/ParenthesesAroundCondition Style/PerlBackrefs Style/RedundantAssignment Style/RedundantParentheses Style/RedundantReturn before: `18 files inspected, 288 offenses detected, 104 offenses auto-correctable` after: `18 files inspected, 238 offenses detected, 58 offenses auto-correctable` Related to #77 Co-authored-by: Bruno Casali <brunoocasali@gmail.com>
Style/NegatedIfElseCondition Style/Not Style/NegatedIf Style/HashConversion Rails/Output Layout/SpaceInsideArrayLiteralBrackets Layout/MultilineOperationIndentation Layout/EndAlignment Layout/ElseAlignment Related to meilisearch#77
Yes! I'll provide the issues ASAP :) |
Thanks a lot |
86: Code/Style v7 r=curquiza a=brunoocasali Fix multiple rubocop issues again! Style/NegatedIfElseCondition Style/Not Style/NegatedIf Style/HashConversion Rails/Output Layout/SpaceInsideArrayLiteralBrackets Layout/MultilineOperationIndentation Layout/EndAlignment Layout/ElseAlignment Related to #77 after: `18 files inspected, 190 offenses detected, 16 offenses auto-correctable` Co-authored-by: Bruno Casali <brunoocasali@gmail.com>
In
.rubocop_todo.yml
we currently have some remain offenses, we need to remove them :)The text was updated successfully, but these errors were encountered: