diff --git a/.codespellrc b/.codespellrc new file mode 100644 index 00000000..15e29a7b --- /dev/null +++ b/.codespellrc @@ -0,0 +1,3 @@ +[codespell] +check-hidden = +skip = .git,docs/*/*,docs,*/go.mod,*/go.sum,./internal/phpheaders/phpheaders.go diff --git a/.github/workflows/lint.yaml b/.github/workflows/lint.yaml index f465e3a1..28eea80c 100644 --- a/.github/workflows/lint.yaml +++ b/.github/workflows/lint.yaml @@ -47,5 +47,5 @@ jobs: VALIDATE_BIOME_LINT: false # Conflicts with MARKDOWN VALIDATE_MARKDOWN_PRETTIER: false - # To re-enable when https://github.com/super-linter/super-linter/issues/7244 will be closed - VALIDATE_EDITORCONFIG: false + # To re-enable when https://github.com/super-linter/super-linter/issues/7466 will be closed + VALIDATE_SPELL_CODESPELL: false diff --git a/docs/config.md b/docs/config.md index a600c23b..0252f542 100644 --- a/docs/config.md +++ b/docs/config.md @@ -12,7 +12,7 @@ A minimal `Caddyfile` to serve a PHP application is shown below: # The hostname to respond to localhost -# Optionaly, the directory to serve files from, otherwise defaults to the current directory +# Optionally, the directory to serve files from, otherwise defaults to the current directory #root public/ php_server ``` diff --git a/internal/extgen/arginfo.go b/internal/extgen/arginfo.go index 7d6aa08a..494b1e0b 100644 --- a/internal/extgen/arginfo.go +++ b/internal/extgen/arginfo.go @@ -20,7 +20,7 @@ func (ag *arginfoGenerator) generate() error { } if _, err := os.Stat(genStubPath); err != nil { - return fmt.Errorf(`the PHP "gen_stub.php" file couldn't be found under %q, you can set the "GEN_STUB_SCRIPT" environement variable to set a custom location`, genStubPath) + return fmt.Errorf(`the PHP "gen_stub.php" file couldn't be found under %q, you can set the "GEN_STUB_SCRIPT" environment variable to set a custom location`, genStubPath) } stubFile := ag.generator.BaseName + ".stub.php" diff --git a/internal/state/state.go b/internal/state/state.go index b15c008b..0a303038 100644 --- a/internal/state/state.go +++ b/internal/state/state.go @@ -10,7 +10,7 @@ import ( type State string const ( - // livecycle States of a thread + // lifecycle States of a thread Reserved State = "reserved" Booting State = "booting" BootRequested State = "boot requested" diff --git a/types.go b/types.go index 17a2d550..30764ecb 100644 --- a/types.go +++ b/types.go @@ -257,7 +257,7 @@ func PHPPackedArray[T any](slice []T) unsafe.Pointer { // EXPERIMENTAL: GoValue converts a PHP zval to a Go value // // Zval having the null, bool, long, double, string and array types are currently supported. -// Arrays can curently only be converted to any[] and AssociativeArray[any]. +// Arrays can currently only be converted to any[] and AssociativeArray[any]. // Any other type will cause an error. // More types may be supported in the future. func GoValue[T any](zval unsafe.Pointer) (T, error) {