Skip to content

Modernization to the current CSS rgb/rgba color parser #41

Modernization to the current CSS rgb/rgba color parser

Modernization to the current CSS rgb/rgba color parser #41

Triggered via pull request April 14, 2024 03:13
Status Failure
Total duration 25s
Artifacts

build.yml

on: pull_request
Matrix: Lint and tests
Fit to window
Zoom out
Zoom in

Annotations

3 errors and 27 warnings
Lint and tests (20)
Process completed with exit code 1.
Lint and tests (18)
Process completed with exit code 1.
Lint and tests (latest)
Process completed with exit code 1.
Lint and tests (20): lib/parsers.js#L32
Insert `⏎·`
Lint and tests (20): lib/parsers.js#L300
Replace `.slice(0,·3).map(code·=>·⏎······code.toLowerCase()·==·"none"·?·0·:·⏎······Math.min(255,·Math.max(0,·⏎··········percentRegEx.test(code)·?·Math.round((parseFloat(code.slice(0,·-1))·*·255)·/·100)·:·` with `⏎······.slice(0,·3)⏎······.map((code)·=>⏎········code.toLowerCase()·==·'none'⏎··········?·0⏎··········:·Math.min(⏎··············255,⏎··············Math.max(⏎················0,⏎················percentRegEx.test(code)⏎··················?·Math.round((parseFloat(code.slice(0,·-1))·*·255)·/·100)`
Lint and tests (20): lib/parsers.js#L304
Replace `(integerRegEx.test(code)·?·parseInt(code,·10)·:·undefined)` with `········:·integerRegEx.test(code)⏎····················?·parseInt(code,·10)⏎····················:·undefined`
Lint and tests (20): lib/parsers.js#L305
Replace `↹` with `··············`
Lint and tests (20): lib/parsers.js#L306
Insert `······`
Lint and tests (20): lib/parsers.js#L307
Replace `····` with `······`
Lint and tests (20): lib/parsers.js#L309
Insert `·`
Lint and tests (20): lib/parsers.js#L310
Replace `·parts[3]·==·"none"·?·0·:·(percentRegEx.test(parts[3])·?·parseFloat(parts[3].slice(0,·-1))·/·100·:·parseFloat(parts[3])` with `⏎········parts[3]·==·'none'⏎··········?·0⏎··········:·percentRegEx.test(parts[3])⏎············?·parseFloat(parts[3].slice(0,·-1))·/·100⏎············:·parseFloat(parts[3]`
Lint and tests (20): lib/parsers.js#L312
Insert `·`
Lint and tests (18): lib/parsers.js#L32
Insert `⏎·`
Lint and tests (18): lib/parsers.js#L300
Replace `.slice(0,·3).map(code·=>·⏎······code.toLowerCase()·==·"none"·?·0·:·⏎······Math.min(255,·Math.max(0,·⏎··········percentRegEx.test(code)·?·Math.round((parseFloat(code.slice(0,·-1))·*·255)·/·100)·:·` with `⏎······.slice(0,·3)⏎······.map((code)·=>⏎········code.toLowerCase()·==·'none'⏎··········?·0⏎··········:·Math.min(⏎··············255,⏎··············Math.max(⏎················0,⏎················percentRegEx.test(code)⏎··················?·Math.round((parseFloat(code.slice(0,·-1))·*·255)·/·100)`
Lint and tests (18): lib/parsers.js#L304
Replace `(integerRegEx.test(code)·?·parseInt(code,·10)·:·undefined)` with `········:·integerRegEx.test(code)⏎····················?·parseInt(code,·10)⏎····················:·undefined`
Lint and tests (18): lib/parsers.js#L305
Replace `↹` with `··············`
Lint and tests (18): lib/parsers.js#L306
Insert `······`
Lint and tests (18): lib/parsers.js#L307
Replace `····` with `······`
Lint and tests (18): lib/parsers.js#L309
Insert `·`
Lint and tests (18): lib/parsers.js#L310
Replace `·parts[3]·==·"none"·?·0·:·(percentRegEx.test(parts[3])·?·parseFloat(parts[3].slice(0,·-1))·/·100·:·parseFloat(parts[3])` with `⏎········parts[3]·==·'none'⏎··········?·0⏎··········:·percentRegEx.test(parts[3])⏎············?·parseFloat(parts[3].slice(0,·-1))·/·100⏎············:·parseFloat(parts[3]`
Lint and tests (18): lib/parsers.js#L312
Insert `·`
Lint and tests (latest): lib/parsers.js#L32
Insert `⏎·`
Lint and tests (latest): lib/parsers.js#L300
Replace `.slice(0,·3).map(code·=>·⏎······code.toLowerCase()·==·"none"·?·0·:·⏎······Math.min(255,·Math.max(0,·⏎··········percentRegEx.test(code)·?·Math.round((parseFloat(code.slice(0,·-1))·*·255)·/·100)·:·` with `⏎······.slice(0,·3)⏎······.map((code)·=>⏎········code.toLowerCase()·==·'none'⏎··········?·0⏎··········:·Math.min(⏎··············255,⏎··············Math.max(⏎················0,⏎················percentRegEx.test(code)⏎··················?·Math.round((parseFloat(code.slice(0,·-1))·*·255)·/·100)`
Lint and tests (latest): lib/parsers.js#L304
Replace `(integerRegEx.test(code)·?·parseInt(code,·10)·:·undefined)` with `········:·integerRegEx.test(code)⏎····················?·parseInt(code,·10)⏎····················:·undefined`
Lint and tests (latest): lib/parsers.js#L305
Replace `↹` with `··············`
Lint and tests (latest): lib/parsers.js#L306
Insert `······`
Lint and tests (latest): lib/parsers.js#L307
Replace `····` with `······`
Lint and tests (latest): lib/parsers.js#L309
Insert `·`
Lint and tests (latest): lib/parsers.js#L310
Replace `·parts[3]·==·"none"·?·0·:·(percentRegEx.test(parts[3])·?·parseFloat(parts[3].slice(0,·-1))·/·100·:·parseFloat(parts[3])` with `⏎········parts[3]·==·'none'⏎··········?·0⏎··········:·percentRegEx.test(parts[3])⏎············?·parseFloat(parts[3].slice(0,·-1))·/·100⏎············:·parseFloat(parts[3]`
Lint and tests (latest): lib/parsers.js#L312
Insert `·`