microsoft / PR-Metrics

A GitHub Action & Azure Pipelines task for augmenting pull request titles to let reviewers quickly determine PR size and test coverage.
https://github.com/microsoft/Omex
MIT License
58 stars 12 forks source link

L✔ ◾ Enhancing linting #537

Closed muiriswoulfe closed 2 months ago

muiriswoulfe commented 2 months ago

Summary

This change adds additional linting rules, to create a more prescriptive and less ad hoc design. This is designed to help facilitate external contributions to maintain the existing style.

These changes have been automatically or manually applied but are typically fairly mechanical. Therefore, there should be little risk of regression.

Detailed Summary

This includes several changes to improve code quality, update dependencies, and enhance error handling. The most important changes include updating the ESLint configuration, modifying the package.json file, and refactoring the GitInvoker class.

ESLint Configuration Updates:

package.json Modifications:

Code Refactoring:

Testing

Test Types

Unit Test Coverage

100%

github-actions[bot] commented 2 months ago

PR Metrics

Try to keep pull requests smaller than 400 lines of new product code by following the Single Responsibility Principle (SRP).Thanks for adding tests. Lines
Product Code 1,033
Test Code 1,978
Subtotal 3,011
Ignored Code 9
Total 3,020

Metrics computed by PR Metrics. Add it to your Azure DevOps and GitHub PRs!

muiriswoulfe commented 2 months ago

/AzurePipelines run

azure-pipelines[bot] commented 2 months ago
Azure Pipelines successfully started running 1 pipeline(s).