diff --git a/.github/workflows/php-code-style.yml b/.github/workflows/php-code-style.yml index 77cbdf2..8fd863b 100644 --- a/.github/workflows/php-code-style.yml +++ b/.github/workflows/php-code-style.yml @@ -30,4 +30,4 @@ jobs: # admin/*.php = Prüft alle PHP-Dateien im admin-Ordner # includes/*.php = Prüft alle PHP-Dateien im includes-Ordner - name: Check PHP Code Style (PSR-12) - run: phpcs --standard=PSR12 *.php admin/*.php includes/*.php + run: phpcs --standard=phpcs.xml.dist *.php admin/*.php includes/*.php diff --git a/phpcs.xml.dist b/phpcs.xml.dist new file mode 100644 index 0000000..8493cef --- /dev/null +++ b/phpcs.xml.dist @@ -0,0 +1,62 @@ + + + + PSR-12 als Basis, aber alle „logiknahen“ Regeln (Namespaces, Side Effects, + Strict Types, Typ-Decls etc.) sind deaktiviert. Es bleiben vor allem + Whitespace- und Formatierungsregeln übrig. + + + + includes/external/* + + + + + + + + + 0 + + + + 0 + + + + + 0 + + + + + 0 + + + + 0 + + + + + 0 + + + + + 0 + + + + + 0 + + + + + + + \ No newline at end of file