]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
Upgrade check-spelling to v0.0.19 10588/head
authorJosh Soref <jsoref@users.noreply.github.com>
Tue, 13 Jul 2021 07:30:54 +0000 (03:30 -0400)
committerJosh Soref <jsoref@users.noreply.github.com>
Tue, 13 Jul 2021 07:54:47 +0000 (03:54 -0400)
Signed-off-by: Josh Soref <jsoref@users.noreply.github.com>
.github/actions/spell-check/excludes.txt
.github/actions/spell-check/expect.txt
.github/actions/spell-check/patterns.txt
.github/actions/spell-check/reject.txt [new file with mode: 0644]
.github/workflows/spelling2.yml [moved from .github/workflows/spelling.yml with 57% similarity]

index 00192b511907a34c6bcecc79d98fd6b1815ab7a2..54d92a7cdb60a32a91697da053a3f6ef8684509f 100644 (file)
@@ -1,10 +1,15 @@
+# See https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples:-excludes
 # want to include regression-tests.*/description
+(?:^|/)(?i)COPYRIGHT
+(?:^|/)(?i)LICEN[CS]E
 (?:^|/)ext/
 (?:^|/)go\.mod$
 (?:^|/)go\.sum$
 (?:^|/)m4/
+(?:^|/)package(?:-lock|)\.json$
 (?:^|/)package-lock\.json$
 (?:^|/)requirements\.txt$
+(?:^|/)vendor/
 /expected_result
 /test-base64_cc\.cc$
 /test-dnsrecords_cc\.cc$
@@ -12,6 +17,7 @@ ignore$
 SUMS$
 \.ai$
 \.asc$
+\.avi$
 \.bmp$
 \.cer$
 \.class$
@@ -37,8 +43,10 @@ SUMS$
 \.map$
 \.min\..
 \.mmdb$
+\.mod$
 \.mp3$
 \.mp4$
+\.mp[34]$
 \.nsec3(?:-optout|)$
 \.otf$
 \.pdf$
@@ -53,6 +61,7 @@ SUMS$
 \.tar$
 \.tgz$
 \.ttf$
+\.wav$
 \.woff
 \.xcf$
 \.xls
index 39a4a0388f248be14bb515b68af11cdf50c6c637..4d303f41b61963df5ad93b86d1cebdb0b46a206f 100644 (file)
@@ -1,5 +1,3 @@
-<<<<<<< HEAD
->>>>>>> c1c09a002 (Upgrade check-spelling to v0.0.18)
 aaaarecord
 aae
 aaldering
@@ -126,7 +124,6 @@ basedn
 basepath
 Bastiaan
 bayour
-bbbb
 bbc
 bbd
 bdd
@@ -1285,6 +1282,7 @@ progid
 protobuf
 protozero
 providername
+proxyprotocol
 proxyprotocolvalues
 pseudonymize
 pseudorecord
index 17b6eb61cf7bcad949ec25e384ba051411638689..ec4e8af4630ac604f66776e0016ced0baeb63b42 100644 (file)
@@ -1,3 +1,5 @@
+# See https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples:-patterns
+
 # GitHub SHAs
 \bapi.github\.com/repos/[^/]+/[^/]+/[^/]+/[0-9a-f]+\b
 (?:\[[0-9a-f]+\]\(https:/|)/github\.com/[^/]+/[^/]+/[^/]+/[0-9a-f]+(?:[-0-9a-zA-Z/#.]*|)\b
@@ -23,7 +25,10 @@ msdn\.microsoft\.com/(?:[^/]+/|)library/\S*\.aspx?
 addNSECRecordToLW.*DNSName.*powerdnt.com.*QType::NS.*res->d_records
 data:[a-zA-Z=;,/0-9+]+
 BOOST_CHECK_EQUAL\(b64, "[a-zA-Z=;,/0-9+]+"
-\b([A-Za-z])\1{3,}\b
+
+# ignore long runs of a single character:
+\b([A-Za-z])\g{-1}{3,}\b
+
 C(?:XX|)FLAGS="[^"]*"
 
 nsec3param\s*=\s*'[^']*'
diff --git a/.github/actions/spell-check/reject.txt b/.github/actions/spell-check/reject.txt
new file mode 100644 (file)
index 0000000..a5ba6f6
--- /dev/null
@@ -0,0 +1,7 @@
+^attache$
+benefitting
+occurence
+Sorce
+^[Ss]pae
+^untill
+^wether
similarity index 57%
rename from .github/workflows/spelling.yml
rename to .github/workflows/spelling2.yml
index b1db41bf52febf61356ef3ec96012f1a4e4c2c42..e24b9dfd1b80c166412d80480fe05fb1197e23b3 100644 (file)
@@ -1,3 +1,4 @@
+# spelling.yml is blocked per https://github.com/check-spelling/check-spelling/security/advisories/GHSA-g86g-chm8-7r2p
 name: Spell checking
 on:
   push:
@@ -18,13 +19,14 @@ jobs:
     runs-on: ubuntu-latest
     steps:
     - name: checkout-merge
-      if: false
-      uses: actions/checkout@v2.0.0
+      if: "contains(github.event_name, 'pull_request')"
+      uses: actions/checkout@v2
       with:
         ref: refs/pull/${{github.event.pull_request.number}}/merge
     - name: checkout
-      if: false
-      uses: actions/checkout@v2.0.0
-    - uses: check-spelling/check-spelling@v0.0.18
+      if: ${{ github.event_name == 'push' }}
+      uses: actions/checkout@v2
+    - uses: check-spelling/check-spelling@v0.0.19
+      id: spelling
       with:
         config: .github/actions/spell-check