mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
7aed1e0d13
## About the changes In order to move us towards enabling `strictNullChecks` we'd want to have a way of gradually enabling this without having to fix all errors at once, this will force us to start reducing the number of null check issues. This new workflow: 1. [Checks out the current branch and main into 2 different folders](https://github.com/Unleash/unleash/pull/3094/files#diff-068f2ace1d1d2e773fb5e4240c83ccab251556fd5524fe13847122878e40da3bR15-R23) 2. Uses the **same** script `gradual-strict-null-checks.sh` (from the current branch) [against each folder in parallel](https://github.com/Unleash/unleash/pull/3094/files#diff-068f2ace1d1d2e773fb5e4240c83ccab251556fd5524fe13847122878e40da3bR34-R38) to count the number of errors if `strictNullChecks` was enabled 3. If the number of potential errors in the current branch is higher than the number of potential errors in main [it fails](https://github.com/Unleash/unleash/pull/3094/files#diff-068f2ace1d1d2e773fb5e4240c83ccab251556fd5524fe13847122878e40da3bR41-R46) As an example, a [new issue was introduced in this PR]( |
||
---|---|---|
.. | ||
add-to-project.yml | ||
build_coverage.yaml | ||
build_doc_prs.yaml | ||
build_frontend_prs.yml | ||
build_prs_jest_report.yaml | ||
build_prs.yaml | ||
build.yaml | ||
check_links.yaml | ||
codeql-analysis.yml | ||
continuous-publish-new-version.yaml | ||
docker_publish_main.yaml | ||
docker_publish_tags.yaml | ||
e2e.frontend.yaml | ||
flag-no-response.yaml | ||
generate-docs.yaml | ||
gradual-strict-null-checks.yml | ||
publish-new-version.yaml | ||
release_changelog.yml | ||
release.yaml | ||
update_contributors.yaml |