Skip to content
Snippets Groups Projects
Commit 57b5eee8 authored by Andrej Shadura's avatar Andrej Shadura
Browse files

WIP: Run the content through Vale


Signed-off-by: default avatarAndrej Shadura <andrew.shadura@collabora.co.uk>
parent b38751ca
No related branches found
No related tags found
No related merge requests found
Pipeline #194395 canceled
This commit is part of merge request !179. Comments created here will be created in the context of that merge request.
......@@ -8,9 +8,35 @@ variables:
GIT_SUBMODULE_STRATEGY: recursive
stages:
- stylecheck
- generate-html
- generate-pdf
vale-stylecheck:
image:
name: jdkato/vale
entrypoint: [""]
stage: stylecheck
tags:
- lightweight
script:
- apk add jq
- |
for d in content/*/
do
n="$(echo $d | tr / -)"
vale --no-exit --output=JSON $d > output-$n.json
scripts/vale-to-codeclimate < output-$n.json > report-$n.json
done
artifacts:
reports:
# codequality: report-*.json
codequality: report-*design*.json
paths:
- output-*.json
- report-*.json
- test.json
test-html:
image: registry.gitlab.com/pages/hugo:0.62.2
stage: generate-html
......
StylesPath = styles
Vocab = Apertis
[*.md]
BasedOnStyles = Vale
Vale.Spelling = NO
#!/usr/bin/jq -f
to_entries | [
.[] |
.value[] + {filename: .key} |
{
type: "issue",
check_name: .Check,
categories: ["Style"],
description: .Message,
severity: .Severity |
gsub("suggestion"; "info") |
gsub("warning"; "minor") |
gsub("error"; "major"),
fingerprint: (
[.Check, .filename, .Line, .Message] + .Span | join(",")
),
location: {
path: .filename,
positions: {
begin: {
line: .Line,
column: .Span[0]
},
end: {
line: .Line,
column: .Span[1]
}
}
}
}
]
Apertis
sysroot
devroot
downstream
upstream
backport
rebasing
amd64
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment