-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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 function comments with CodeLingo. #336
Fix function comments with CodeLingo. #336
Conversation
Codecov Report
@@ Coverage Diff @@
## master #336 +/- ##
=======================================
Coverage 94.43% 94.43%
=======================================
Files 13 13
Lines 1797 1797
=======================================
Hits 1697 1697
Misses 97 97
Partials 3 3
Continue to review full report at Codecov.
|
Interesting, I didn't know this tool existed. Is it also able to add comments where non exist? |
@glvr182 It sure can! In fact I just added that capability codelingo/codelingo#266. Adding a meaningful comment is really an NLP problem, which is not something that CodeLingo focusses on (yet), but we can append placeholder comments with these few lines:
|
Obviously |
Actually I just found out that we’re working on an interactive review command which would come in really handy here. You’ll be able to install our CLI tool and run |
Sounds cool to me, I'm happy to alpha test |
thanks for making this PR btw, very cool :) |
No problem I'm glad you like it! You can get it running automated code reviews on all your PRs by installing our GitHub app https://github.com/apps/codelingo. The fun part is definitely writing your own custom tenets (linter/rewrite rules) though - so feel free to hop in our slack :) |
By the way, it'd be great to get a tweet if you're up for it. Something like "@codelingoapp just fixed my bugs!" Thank you! |
Use CodeLingo to automatically fix function comments following the
effective go guidelines mentioned in CONTRIBUTING.md.
This patch was generated by running the CodeLingo Rewrite Flow over the "comment-first-word-as-subject" Tenet.
Note: the same Tenet can be used to automate PR reviews and generate guideline docs.
Install CodeLingo: codelingo.io