refactor: refactor interface of base check#513
Conversation
|
You probably need to regenerate the API doc with |
| # Remove result_tables since we don't have a good json representation for them. | ||
| sorted_on_id = [] | ||
| for res in _sorted_on_id: | ||
| # res is CheckResult(TypedDict) |
There was a problem hiding this comment.
This comment should be adjusted.
|
@nicallen It would be good to add a Developer Docs page to describe the check interface. We already have a |
|
@nicallen I think it makes sense to change the commit scope to |
Sounds good. @nicallen please rebase on |
Refactor BaseCheck.run_check to return all result info as part of return value, rather than passing in and mutating a CheckResult object containing other data irrelevant to run_check. Refactor SLSA requirement status information in AnalyzeContext to avoid unnecessary replication of generic info about a SLSA requirement, which can be looked up by ReqName when needed instead. Signed-off-by: Nicholas Allen <nicholas.allen@oracle.com>
Signed-off-by: Nicholas Allen <nicholas.allen@oracle.com>
Signed-off-by: Nicholas Allen <nicholas.allen@oracle.com>
Signed-off-by: Nicholas Allen <nicholas.allen@oracle.com>
…ng unittest. Signed-off-by: Nicholas Allen <nicholas.allen@oracle.com>
Signed-off-by: Nicholas Allen <nicholas.allen@oracle.com>
831955a to
a28940d
Compare
I have created an separate issue for this (#535), I don't think we need to do this immediately as part of this PR. |
…he comment. Signed-off-by: Nicholas Allen <nicholas.allen@oracle.com>
a28940d to
9a61b7c
Compare
Refactor BaseCheck.run_check to return all result info as part of return value, rather than passing in and mutating a CheckResult object containing other data irrelevant to run_check. Refactor SLSA requirement status information in AnalyzeContext to avoid unnecessary replication of generic info about a SLSA requirement, which can be looked up by ReqName when needed instead. Signed-off-by: Nicholas Allen <nicholas.allen@oracle.com>
Refactor BaseCheck.run_check to return all result info as part of return value, rather than passing in and mutating a CheckResult object containing other data irrelevant to run_check.
Refactor SLSA requirement status information in AnalyzeContext to avoid unnecessary replication of generic info about a SLSA requirement, which can be looked up by ReqName when needed instead.