Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Summary generated by Reviewpad on 17 Jul 23 16:45 UTC
This pull request adds checks to the Reviewpad file. It also includes some code refactoring and test improvements. Overall, it adds 61 insertions and modifies 5 deletions across 4 files.
馃 Generated by Copilot at 82bdf31
This pull request adds support for checks in reviewpad files, which are custom rules or validations for the code under review. It defines the
PadCheck
struct and its methods, and modifies theReviewpadFile
struct and its methods to handle checks. It also updates the loader, the inline rules normalizer, and the loader test to work with checks.Code review and merge strategy
Show: this pull request can be auto-merged and a code review should be done post-merge
How
馃 Generated by Copilot at 82bdf31
Checks
field to theinlineModificator
struct to allow custom checks for rules or pipelines (link)engine
package (link)Checks
field to theReviewpadFile
struct and thePadCheck
struct to represent checks in the reviewpad file (link, link)equals
andextend
methods of theReviewpadFile
struct to compare and merge checks (link, link)Checks
field to theReviewpadFileAST
struct and copy it in thetransform
function (link, link)appendChecks
method to theReviewpadFile
struct and call it in theprocessImports
function to handle imported checks (link, link)TestLoadWithAST
function to initialize theChecks
field in the expected reviewpad file (link)