Skip to content

[Feat] Edit license header #7

[Feat] Edit license header

[Feat] Edit license header #7

Triggered via pull request August 19, 2024 13:51
Status Failure
Total duration 30s
Artifacts

ci.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

10 errors and 2 warnings
test: rules/license-header.js#L34
Insert `⏎·········`
test: rules/license-header.js#L35
Insert `⏎·········`
test: rules/license-header.js#L36
Replace `.substring(0,·Math.max(0,·source.indexOf('\n'))).trim()` with `⏎··········.substring(0,·Math.max(0,·source.indexOf("\n")))⏎··········.trim()⏎··········`
test: rules/license-header.js#L45
Replace `·fixer.insertTextBeforeRange([0,·0],·NEW_FILE_LICENSE_HEADER·+·"\n\n"),` with `⏎··············fixer.insertTextBeforeRange(⏎················[0,·0],⏎················NEW_FILE_LICENSE_HEADER·+·"\n\n"`
test: rules/license-header.js#L46
Replace `});` with `····),`
test: rules/license-header.js#L47
Replace `········}·` with `··········});`
test: rules/license-header.js#L48
Replace `·else·if·(!prefixLinesAreValid·||·(isModifiedFileHeaderPresent·&&·headerIndex·===·-1)` with `·}·else·if·(⏎··········!prefixLinesAreValid·||⏎··········(isModifiedFileHeaderPresent·&&·headerIndex·===·-1)⏎········`
test: rules/license-header.js#L48
'headerIndex' is not defined
test: rules/license-header.js#L52
Replace `·fixer.insertTextBeforeRange([0,·0],·MODIFIED_FILE_LICENSE_HEADER·+·"\n\n"` with `⏎··············fixer.insertTextBeforeRange(⏎················[0,·0],⏎················MODIFIED_FILE_LICENSE_HEADER·+·"\n\n"⏎··············`
test
Process completed with exit code 1.
test
The following actions uses node12 which is deprecated and will be forced to run on node16: actions/checkout@v2, actions/setup-node@v2, actions/cache@v2. For more info: https://github.blog/changelog/2023-06-13-github-actions-all-actions-will-run-on-node16-instead-of-node12-by-default/
test
The following actions use a deprecated Node.js version and will be forced to run on node20: actions/checkout@v2, actions/setup-node@v2, actions/cache@v2. For more info: https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/