(ci) replace --quiet with a grep excluding warings for lint

--quiet also disables fixing of warnings, making it not possible to check for them
see 248c7e7a4e3562fe3696956f15be83a79eac0d42
This commit is contained in:
Valentyne Stigloher 2024-02-08 22:31:25 +01:00
parent 87fa99a8d5
commit a4bf87a30b
2 changed files with 7 additions and 6 deletions

View File

@ -2,6 +2,7 @@ check:
stage: test stage: test
image: node:latest image: node:latest
before_script: before_script:
- set -o pipefail
- export NODE_ENV=development - export NODE_ENV=development
- > - >
start_section () { start_section () {
@ -38,7 +39,7 @@ check:
- end_section - end_section
- start_section "Check linting rules" - start_section "Check linting rules"
- yarn lint --format gitlab --color --fix --quiet || record_failure - yarn lint --format gitlab --color --fix | grep -v "^\S*warn" || record_failure
- end_section - end_section
- start_section "Check for fixable problems" - start_section "Check for fixable problems"

View File

@ -369,11 +369,11 @@ export default {
} }
} else { } else {
const customOpinion = profile.opinions[opinion]; const customOpinion = profile.opinions[opinion];
if (customOpinion !== undefined if (customOpinion !== undefined &&
&& customOpinion.colour !== 'grey' customOpinion.colour !== 'grey' &&
&& customOpinion.style !== 'small' customOpinion.style !== 'small' &&
&& !['ban', 'slash'].includes(customOpinion.icon) !['ban', 'slash'].includes(customOpinion.icon) &&
&& !(customOpinion.icon || '').endsWith('-slash') !(customOpinion.icon || '').endsWith('-slash')
) { ) {
best.push(pronoun); best.push(pronoun);
} }