ci: disable codespell linter (#2153)

This commit is contained in:
Kévin Dunglas
2026-01-29 17:23:50 +01:00
committed by GitHub
parent 709ba29bef
commit 8e1641b81c
6 changed files with 9 additions and 6 deletions

3
.codespellrc Normal file
View File

@@ -0,0 +1,3 @@
[codespell]
check-hidden =
skip = .git,docs/*/*,docs,*/go.mod,*/go.sum,./internal/phpheaders/phpheaders.go

View File

@@ -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

View File

@@ -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
```

View File

@@ -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"

View File

@@ -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"

View File

@@ -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) {