DEV Community

Tech Tim (@TechTim42)
Tech Tim (@TechTim42)

Posted on • Updated on • Originally published at Medium

How To Improve Code Quality In Last 5 Minutes Before Submitting PR

Git

So, you’re just about to submit your Pull Request, and you’re thinking, “Wait a minute, is my code up to par?” Don’t panic, my friend, I got you covered with some last-minute tips to improve your code quality before you hit that submit button.

One Step Back

One Step Back with a cup of coffee

First things first, take a chill pill and step back from your code. Take a deep breath, grab a cup of coffee, or do whatever it takes to clear your mind. Then, take a good look at your code and ask yourself, “Is this clean, readable, and easy to maintain?” If not, you know what to do next.

Use Tools

Use some fancy Integration Code review tools if you can. These tools can save your bacon by spotting any potential bugs, errors, or bad practices in your code. They’ll give you instant feedback, so you can fix any issues and feel confident that your code is top-notch.

Test Coverage:

For Auto Code Review:

  • Codacy for code review, it says it could save 60% of code review time
  • CodeFactor

Local Tools:

Github CLI — gh commands

Want to Know More about the Github CLI gh , you can read it here

GitHub CLI: Your Secret Weapon for Slaying Code Reviews! | by Tech Tim (@TechTim42) | Mar, 2023 | Medium

Prepare Yourself For Comments and Feedback

Relax Yourself

Now, here’s a pro tip: be humble and open to suggestions. Nobody’s perfect, and we all make mistakes. So, don’t be afraid to ask for feedback from your peers and reviewers. Listen to their suggestions, learn from their expertise, and make your code even better.

Lastly, Remember Quality is More Important

Code Qualiity is King
Code Qualiity is King

Lastly, remember that quality is king. Don’t rush to submit your PR just to meet a deadline. Take your time, prioritize quality over speed, and submit your code with confidence. Trust me, it’s better to delay submission and ensure code quality than to submit subpar code that can cause issues down the road.

Improving code quality doesn’t have to be stressful. Take a break, use some tools, ask for feedback, and prioritize quality. With these last-minute tips, you can submit your PR with ease and feel proud of your code. Happy coding!

Top comments (0)