DEV Community

Discussion on: Pull requests reivews

Collapse
 
gayanhewa profile image
Gayan Hewa • Edited

Automate everything. IMO code reviews shine when we discuss design decisions, thought process and possible edge scenarios. Formatting should be pointed out by a bot.

Collapse
 
fmmricardo profile image
Ricardo Martins

Thanks Gayan , very interesting what you said. I never thought in doing it. Can you share something about it?

Collapse
 
gayanhewa profile image
Gayan Hewa

For an instance for code style checks I use prettifier, PHP code sniffer, etc

In your case you might be able to find a decent linter for the style rules you want in the code base.

Githubs super linter has support for most languages. And there is also a GitHub action that will help you automate this process. This would be a good starting point.

github.com/github/super-linter

Thread Thread
 
fmmricardo profile image
Ricardo Martins

Thanks 👍