(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
image: node:latest
before_script:
- set -o pipefail
- export NODE_ENV=development
- >
start_section () {
@ -38,7 +39,7 @@ check:
- end_section
- 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
- start_section "Check for fixable problems"

View File

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