diff options
author | Tim Harder <radhermit@gmail.com> | 2021-03-04 02:10:37 -0700 |
---|---|---|
committer | Tim Harder <radhermit@gmail.com> | 2021-03-04 02:21:22 -0700 |
commit | 6e440f0806b0707dbf7265c7fac74944881af8cc (patch) | |
tree | 11badee7e3fcb6aa6d78054a03c6d59e5c7abf63 /data | |
parent | cli: support newline-separated checkset values (diff) | |
download | pkgcheck-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-x | data/ci.sh | 9 | ||||
-rw-r--r-- | data/pkgcheck.conf | 41 |
2 files changed, 47 insertions, 3 deletions
@@ -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 |