-
Notifications
You must be signed in to change notification settings - Fork 33
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
Refactor clean_content
#2850
Refactor clean_content
#2850
Conversation
Code Climate has analyzed commit 281040e and detected 0 issues on this pull request. The test coverage on the diff in this pull request is 78.2% (50% is the threshold). This pull request will bring the total coverage in the repository to 83.1% (0.1% change). View more on Code Climate. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you mean all of the methods or just one in particular? 🤔 |
only the functionality to clean the content field :) |
0596357
to
8f406e0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, this looks mostly good. I have some ideas for improvement
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Very nice, thanks :)
This PR blocks the PR for iCal, as iCal requires the refactored method :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much 💪 It's sooo clean now 😻
Just don't forget to squash the commits 😉
2eee903
to
281040e
Compare
Short description
This PR attempts to clean up the code of
clean_content
a little bit. As this is my very first attempt at refactoring empathic and honest feedback is much appreciated. In general I tried to follow instructions and ideas from "Clean Code" by Robert C. Martin, but I'm not 100% sure if I was successful.Proposed changes
clean_content
into multiple sub-methodsSide effects
Resolved issues
Fixes: #2849
Pull Request Review Guidelines