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

Some refactoring in code_spell (extract method for long method code smell) #3276

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

wangsiqidahaoren
Copy link

No description provided.

@DimitriPapadopoulos
Copy link
Collaborator

Thank you for this PR. This might need some more work to pass tests. Also, I'm not sure why you have moved codespell_lib/_codespell.py_codespell.py. Smaller changes might help review your changes.

@wangsiqidahaoren
Copy link
Author

Thank you for this PR. This might need some more work to pass tests. Also, I'm not sure why you have moved codespell_lib/_codespell.py_codespell.py. Smaller changes might help review your changes.

Oh the move file is a mistake, I'm sorry that I didn't check it out. And the refactoring I made is to extract code block and make the source code more readable.

@DimitriPapadopoulos
Copy link
Collaborator

Reducing the complexity of some huge functions would be great.

  • CI tests must pass.
  • When possible, small changes are preferable:
    • They improve the quality of code review.
    • They help other contributors adapt their ongoing changes to your changes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants