aboutsummaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorTim Harder <radhermit@gmail.com>2021-03-04 02:10:37 -0700
committerTim Harder <radhermit@gmail.com>2021-03-04 02:21:22 -0700
commit6e440f0806b0707dbf7265c7fac74944881af8cc (patch)
tree11badee7e3fcb6aa6d78054a03c6d59e5c7abf63 /data
parentcli: support newline-separated checkset values (diff)
downloadpkgcheck-6e440f0806b0707dbf7265c7fac74944881af8cc.tar.gz
pkgcheck-6e440f0806b0707dbf7265c7fac74944881af8cc.tar.bz2
pkgcheck-6e440f0806b0707dbf7265c7fac74944881af8cc.zip
data: use newline-separated format for GentooCI keyword list
Diffstat (limited to 'data')
-rwxr-xr-xdata/ci.sh9
-rw-r--r--data/pkgcheck.conf41
2 files changed, 47 insertions, 3 deletions
diff --git a/data/ci.sh b/data/ci.sh
index e04fa335..9d022036 100755
--- a/data/ci.sh
+++ b/data/ci.sh
@@ -2,6 +2,11 @@
# Output the current list of Gentoo CI keyword errors.
# Requires bash, curl, and jq installed.
+# pull latest CI keyword errors
keywords=$(curl -s https://raw.githubusercontent.com/mgorny/pkgcheck2html/master/pkgcheck2html.conf.json | jq -r 'to_entries | .[] | select(.value == "err") | .key' | sort)
-errors=$(printf '%s,' ${keywords[@]})
-echo ${errors%,}
+
+# replace checkset in bundled config
+cat << EOF > pkgcheck.conf
+[CHECKSETS]
+GentooCI =$(printf '\n %s' ${keywords[@]})
+EOF
diff --git a/data/pkgcheck.conf b/data/pkgcheck.conf
index f0d1ea85..012d7975 100644
--- a/data/pkgcheck.conf
+++ b/data/pkgcheck.conf
@@ -1,2 +1,41 @@
[CHECKSETS]
-GentooCI=BadDependency,BadKeywords,BadPackageUpdate,BadProtocol,BadWhitespaceCharacter,BannedCharacter,ConflictingChksums,EclassBashSyntaxError,EqualVersions,InvalidBdepend,InvalidDepend,InvalidEapi,InvalidLicense,InvalidManifest,InvalidPdepend,InvalidPN,InvalidProperties,InvalidRdepend,InvalidRequiredUse,InvalidRestrict,InvalidSlot,InvalidSrcUri,InvalidUseFlags,InvalidUTF8,MissingLicense,MissingManifest,MissingSlash,MovedPackageUpdate,NonexistentProfilePath,NonsolvableDepsInStable,ProfileError,PythonEclassError,SourcingError,UnknownCategoryDirs,UnknownLicenses,UnknownManifest,UnknownMirror,UnstatedIuse,VisibleVcsPkg
+GentooCI =
+ BadDependency
+ BadKeywords
+ BadPackageUpdate
+ BadProtocol
+ BadWhitespaceCharacter
+ BannedCharacter
+ ConflictingChksums
+ EclassBashSyntaxError
+ EqualVersions
+ InvalidBdepend
+ InvalidDepend
+ InvalidEapi
+ InvalidLicense
+ InvalidManifest
+ InvalidPdepend
+ InvalidPN
+ InvalidProperties
+ InvalidRdepend
+ InvalidRequiredUse
+ InvalidRestrict
+ InvalidSlot
+ InvalidSrcUri
+ InvalidUseFlags
+ InvalidUTF8
+ MissingLicense
+ MissingManifest
+ MissingSlash
+ MovedPackageUpdate
+ NonexistentProfilePath
+ NonsolvableDepsInStable
+ ProfileError
+ PythonEclassError
+ SourcingError
+ UnknownCategoryDirs
+ UnknownLicenses
+ UnknownManifest
+ UnknownMirror
+ UnstatedIuse
+ VisibleVcsPkg