[Feat] Edit license header #7
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/
|