Add spelling workflow (#663)

* Add spelling workflow

* Revert pt-mongodb-query-digest README

* Fix another typo
This commit is contained in:
Viktor Szépe
2023-09-05 14:39:24 +02:00
committed by GitHub
parent d5e8d42251
commit a8fcc551a6
4 changed files with 80 additions and 2 deletions

24
.github/workflows/spelling.yml vendored Normal file
View File

@@ -0,0 +1,24 @@
name: spelling
# I take care of your fat fingers and ESL mistakes.
on:
push:
branches: [ "3.x" ]
pull_request:
branches: [ "3.x" ]
permissions: {}
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
typos_check:
name: Typos
runs-on: ubuntu-latest
timeout-minutes: 1
steps:
- uses: actions/checkout@v3
- uses: crate-ci/typos@master

View File

@@ -6,6 +6,10 @@ on:
pull_request:
branches: [ "3.x" ]
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
build:
@@ -19,7 +23,7 @@ jobs:
go-version: '1.20'
- name: Build
run: cd src/go; make linux-amd64; cd ../../
- name: Build the Docker image
run: echo "FROM oraclelinux:9-slim" > Dockerfile; echo "COPY bin/* /usr/bin/" >> Dockerfile; docker build . --file Dockerfile --tag percona-toolkit:${{ github.sha }}
- name: Run Trivy vulnerability scanner

50
.typos.toml Normal file
View File

@@ -0,0 +1,50 @@
[files]
extend-exclude = [
".git/",
# "bin/",
"sandbox/sakila.sql",
"sandbox/sakila-db/",
"sandbox/servers/",
"src/go/pt-secure-collect/testdata/",
"util/NaturalDocs/",
"util/pod2rst-fixed.packed",
# For now
"t/",
]
ignore-hidden = false
[default]
extend-ignore-re = [
"Info\\.nd",
"State\\.nd",
"Table\\.nd",
"perl -ane",
"begin nd\\b",
"end nd\\b",
"\\$nin",
"set -ue",
"\\[R\\]esponding",
]
[default.extend-identifiers]
"Continuent" = "Continuent"
"END_ND_SUMMARY" = "END_ND_SUMMARY"
"END_ND_TOOLTIPS" = "END_ND_TOOLTIPS"
"EXPLAINed" = "EXPLAINed"
"FH_ND_FILE" = "FH_ND_FILE"
"INSERTs" = "INSERTs"
"JOINed" = "JOINed"
"MERCHANTIBILITY" = "MERCHANTIBILITY"
"ND" = "ND"
"NDDoResize" = "NDDoResize"
"NDMarkup" = "NDMarkup"
"NDMarkupToHTML" = "NDMarkupToHTML"
"NDOnLoad" = "NDOnLoad"
"NDOnResize" = "NDOnResize"
"NULLable" = "NULLable"
"O_WRONLY" = "O_WRONLY"
"START_ND_SUMMARY" = "START_ND_SUMMARY"
"START_ND_TOOLTIPS" = "START_ND_TOOLTIPS"
"TOI" = "TOI"
"UNIONed" = "UNIONed"
"UNIONs" = "UNIONs"

View File

@@ -1475,7 +1475,7 @@ sub OnTargetSymbolChange #(referenceString)
# Removes a symbol definition from the table. It will call <OnInterpretationChange()> for all references that have it as their
# current interpretation.
#
# External code should not attempt to delete symbols using this function. Instead it should call <WatchFileFoChanges()>,
# External code should not attempt to delete symbols using this function. Instead it should call <WatchFileForChanges()>,
# reparse the file, and call <AnalyzeChanges()>.
#
# Parameters: