feat: phpcs non interactive mode and min php version set (#5549)
continuous-integration/drone/push Build is passing
continuous-integration/drone/push Build is passing
Minimal version of #5538 that does not change any php files while still hopefully unblocking ci. Quick way to unblock #5528 and #5512. Co-authored-by: Darragh Elliott <me@delliott.net> Reviewed-on: #5549 Reviewed-by: tobiasd <tobiasd@fsfe.org> Co-authored-by: delliott <delliott@fsfe.org> Co-committed-by: delliott <delliott@fsfe.org>
This commit was merged in pull request #5549.
This commit is contained in:
+2
-1
@@ -10,7 +10,8 @@ output
|
||||
__pycache__
|
||||
#Nltk
|
||||
.nltk_data
|
||||
|
||||
#phpcsfixer cache
|
||||
.php-cs-fixer.cache
|
||||
# Secrets
|
||||
# docker compose
|
||||
.env
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"require": {
|
||||
"php": "^8.4"
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -16,7 +16,7 @@ pre-commit:
|
||||
glob: "*.php"
|
||||
exclude:
|
||||
- "fsfe.org/cgi-bin/PHPMailer/*.php"
|
||||
run: for file in {staged_files}; do php-cs-fixer fix "$file"; done
|
||||
run: for file in {staged_files}; do php-cs-fixer --no-interaction fix "$file"; done
|
||||
stage_fixed: true
|
||||
fail_on_changes: "ci"
|
||||
shfmt:
|
||||
|
||||
Reference in New Issue
Block a user