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

[Fix rubocop#10813] Fix recursive deletion to suppression in Lint/NonAtomicFileOperation #10818

Conversation

ydah
Copy link
Member

@ydah ydah commented Jul 14, 2022

Fixes: #10813

This PR is suppress offense in case of
recursive deletion in Lint/NonAtomicFileOperation.


Before submitting the PR make sure the following are checked:

  • The PR relates to only one subject with a clear title and description in grammatically correct, complete sentences.
  • Wrote good commit messages.
  • Commit message starts with [Fix #issue-number] (if the related issue exists).
  • Feature branch is up-to-date with master (if not - rebase it).
  • Squashed related commits together.
  • Added tests.
  • Ran bundle exec rake default. It executes all tests and runs RuboCop on its own code.
  • Added an entry (file) to the changelog folder named {change_type}_{change_description}.md if the new code introduces user-observable changes. See changelog entry format for details.

config/default.yml Outdated Show resolved Hide resolved
@ydah ydah force-pushed the fix_non_atomic_file_operation_for_recursive_deletion branch 2 times, most recently from cdcc5d1 to 05c1426 Compare July 19, 2022 23:43
@ydah ydah requested review from koic and bbatsov July 19, 2022 23:44
@ydah
Copy link
Member Author

ydah commented Jul 19, 2022

Thank you so much. I updated this PR.

config/default.yml Outdated Show resolved Hide resolved
…nAtomicFileOperation`

Fixes: rubocop#10813

This PR is suppress offense in case of
recursive deletion in `Lint/NonAtomicFileOperation`.
@ydah ydah force-pushed the fix_non_atomic_file_operation_for_recursive_deletion branch from 05c1426 to 0b11d6d Compare July 20, 2022 01:24
@bbatsov bbatsov merged commit 0124f73 into rubocop:master Jul 21, 2022
@ydah ydah deleted the fix_non_atomic_file_operation_for_recursive_deletion branch July 21, 2022 12:05
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.

False positive of NonAtomicFileOperation for FileUtils.rm_r
3 participants