scorecard/checker
Spencer Schrock 0dcad3a960
enforce check scores are between the min and max (#3769)
* enforce check scores are between the min and max

if the score is invalid, the Error field is set and the score is
replaced with an inconclusive result score.

Signed-off-by: Spencer Schrock <sschrock@google.com>

* exclude inconclusive result score

Callers who want the score should use the CreateInconclusiveResult function.
The goal is partly to enforce a consistent coding style, and partly to
limit proportions which score to -1 accidentally.

Signed-off-by: Spencer Schrock <sschrock@google.com>

---------

Signed-off-by: Spencer Schrock <sschrock@google.com>
2024-01-19 13:45:21 -08:00
..
check_request_test.go 🌱 Unit tests for checker result and request (#2844) 2023-04-10 19:18:27 +00:00
check_request.go Use new project name in Copyright notices (#2505) 2022-12-01 15:08:48 -08:00
check_result_test.go enforce check scores are between the min and max (#3769) 2024-01-19 13:45:21 -08:00
check_result.go enforce check scores are between the min and max (#3769) 2024-01-19 13:45:21 -08:00
check_runner.go 🌱 GitLab: Add RepoHost tag to OpenCensus view (#3320) 2023-07-28 17:47:11 +00:00
client_test.go 🌱 Disable more style linters for test files (#3707) 2023-12-04 02:14:01 +00:00
client.go GitLab: Release (#3340) 2023-08-04 14:23:07 -04:00
detail_logger_impl_test.go 🌱 re-enable paralleltest linter (#3705) 2023-12-04 02:25:03 +00:00
detail_logger_impl.go Use new project name in Copyright notices (#2505) 2022-12-01 15:08:48 -08:00
detail_logger.go Use new project name in Copyright notices (#2505) 2022-12-01 15:08:48 -08:00
raw_result_test.go 🌱 re-enable paralleltest linter (#3705) 2023-12-04 02:25:03 +00:00
raw_result.go 🌱 SAST: dedupe and add Pysa and Qodana probe (#3743) 2024-01-02 17:23:47 +00:00