check_license: accept Triple Slash Directive #1098
Merged
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.
run-tests.sh checks that Licenses are OK for some files.
This scripts fails when JS files use a Triple Slash Directive.
This commit change this.
.js files (Cf.
https://www.typescriptlang.org/docs/handbook/triple-slash-directives.html)
Co-Authored-by: Olivier DOSSMANN [email protected]
Why are you opening this PR?
Because Cypress tests needs to be done on RERO ILS and I need to extend developer environment to do so.
How to test?
poetry run run-tests
shouldn't give any error on Cypress JS files (that contains Triple Slash Directive)Code review check list