Exploring commit and pull request linters
In Chapter 7, we discussed how to create linters for Bicep files. In this section, we’ll be focusing on two linters specifically designed to enhance code description quality, both of which play a role in validating pull requests (PRs):
- Commit linters: This linter is responsible for ensuring that the commit messages within a PR adhere to a certain convention. This section will also explore how effectively this linter functions when run on the client side.
- PR linters: This linter checks whether the PR meets specific standards in terms of categorization and the quality of its title and body.
First, we’ll investigate PR linters in detail and consider their role in vetting and categorizing PRs.
PR linters
Incorporating a PR linter into the review process is vital for upholding code quality and facilitating efficient change management. Linters in PRs act as automated guardians, ensuring submissions adhere to...