mirror of
https://gitlab.com/PronounsPage/PronounsPage.git
synced 2025-09-22 12:03:25 -04:00
(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:
parent
87fa99a8d5
commit
a4bf87a30b
@ -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"
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user