From c16860d87398ab1fb7c37dedf89c2a22b6c4a825 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 16 Oct 2023 15:32:58 -0400 Subject: [PATCH] Small refresh to workflow --- .../actions/spell-check/candidate.patterns | 16 +++++++++---- .github/actions/spell-check/excludes.txt | 23 ++++++++++++++----- .../spell-check/line_forbidden.patterns | 3 +++ .github/actions/spell-check/patterns.txt | 19 ++++++++++----- .github/workflows/spelling3.yml | 6 ++--- 5 files changed, 47 insertions(+), 20 deletions(-) diff --git a/.github/actions/spell-check/candidate.patterns b/.github/actions/spell-check/candidate.patterns index bf9dce0b12..7325ad6007 100644 --- a/.github/actions/spell-check/candidate.patterns +++ b/.github/actions/spell-check/candidate.patterns @@ -396,7 +396,7 @@ Joaqu[^[:ascii:]]n (?:\\(?:u00|x)1[Bb]|\x1b|\\u\{1[Bb]\})\[\d+(?:;\d+|)m # URL escaped characters -\%[0-9A-F][A-F] +\%[0-9A-F][A-F](?=[A-Za-z]) # lower URL escaped characters \%[0-9a-f][a-f](?=[a-z]{2,}) # IPv6 @@ -496,6 +496,9 @@ content: (['"])[-a-zA-Z=;:/0-9+]*=\g{-1} # perl qr regex (?|\(.*?\)|([|!/@#,;']).*?\g{-1}) +# perl run +perl(?:\s+-[a-zA-Z]\w*)+ + # Go regular expressions regexp?\.MustCompile\(`[^`]*`\) @@ -514,6 +517,9 @@ sed 's/(?:[^/]*?[a-zA-Z]{3,}[^/]*?/){2} # go install go install(?:\s+[a-z]+\.[-@\w/.]+)+ +# jetbrains schema https://youtrack.jetbrains.com/issue/RSRP-489571 +urn:shemas-jetbrains-com + # kubernetes pod status lists # https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle/#pod-phase \w+(?:-\w+)+\s+\d+/\d+\s+(?:Running|Pending|Succeeded|Failed|Unknown)\s+ @@ -578,13 +584,13 @@ systemd.*?running in system mode \([-+].*\)$ # Non-English [a-zA-Z]*[ÀÁÂÃÄÅÆČÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæčçèéêëìíîïðñòóôõöøùúûüýÿĀāŁłŃńŅņŒœŚśŠšŜŝŸŽžź][a-zA-Z]{3}[a-zA-ZÀÁÂÃÄÅÆČÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæčçèéêëìíîïðñòóôõöøùúûüýÿĀāŁłŃńŅņŒœŚśŠšŜŝŸŽžź]*|[a-zA-Z]{3,}[ÀÁÂÃÄÅÆČÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæčçèéêëìíîïðñòóôõöøùúûüýÿĀāŁłŃńŅņŒœŚśŠšŜŝŸŽžź]|[ÀÁÂÃÄÅÆČÇÈÉÊËÌÍÎÏÐÑÒÓÔÕÖØÙÚÛÜÝßàáâãäåæčçèéêëìíîïðñòóôõöøùúûüýÿĀāŁłŃńŅņŒœŚśŠšŜŝŸŽžź][a-zA-Z]{3,} +# highlighted letters +\[[A-Z]\][a-z]+ + # French # This corpus only had capital letters, but you probably want lowercase ones as well. \b[LN]'+[a-z]{2,}\b -# latex (check-spelling <= 0.0.21) -#\\(?:n(?:ew|ormal|osub)|r(?:enew)|t(?:able(?:of|)|he|itle))(?=[a-z]+) - # latex (check-spelling >= 0.0.22) \\\w{2,}\{ @@ -594,7 +600,7 @@ systemd.*?running in system mode \([-+].*\)$ # Windows short paths [/\\][^/\\]{5,6}~\d{1,2}[/\\] -# in a version of check-spelling after @0.0.21 printf markers won't be automatically consumed +# in check-spelling@v0.0.22+, printf markers aren't automatically consumed # printf markers (?]*>|[^<]*)\s*$ diff --git a/.github/workflows/spelling3.yml b/.github/workflows/spelling3.yml index f09a7ffc19..9df9009ca4 100644 --- a/.github/workflows/spelling3.yml +++ b/.github/workflows/spelling3.yml @@ -11,8 +11,6 @@ on: pull_request: branches: - "**" - tags-ignore: - - "**" types: - 'opened' - 'reopened' @@ -34,7 +32,7 @@ jobs: outputs: followup: ${{ steps.spelling.outputs.followup }} runs-on: ubuntu-latest - if: "contains(github.event_name, 'pull_request') || github.event_name == 'push'" + if: ${{ contains(github.event_name, 'pull_request') || github.event_name == 'push' }} concurrency: group: spelling-${{ github.event.pull_request.number || github.ref }} # note: If you use only_check_changed_files, you do not want cancel-in-progress @@ -45,9 +43,11 @@ jobs: uses: check-spelling/check-spelling@v0.0.22 with: config: .github/actions/spell-check + suppress_push_for_open_pull_request: ${{ github.actor != 'dependabot[bot]' && 1 }} checkout: true spell_check_this: powerdns/pdns@master post_comment: 0 + warnings: bad-regex,binary-file,deprecated-feature,ignored-expect-variant,large-file,limited-references,no-newline-at-eof,noisy-file,non-alpha-in-dictionary,token-is-substring,unexpected-line-ending,whitespace-in-dictionary,minified-file,unsupported-configuration,no-files-to-check use_sarif: ${{ (!github.event.pull_request || (github.event.pull_request.head.repo.full_name == github.repository)) && 1 }} extra_dictionaries: cspell:software-terms/dict/softwareTerms.txt -- 2.47.2