diff --git a/.gitattributes b/.gitattributes index 96ceb73..b54410f 100644 --- a/.gitattributes +++ b/.gitattributes @@ -4,7 +4,7 @@ # Ignore all test and documentation with "export-ignore". /.gitattributes export-ignore /.gitignore export-ignore -/.styleci.yml export-ignore +/pint.json export-ignore /phpunit.xml.dist export-ignore /.scrutinizer.yml export-ignore /tests export-ignore diff --git a/.github/workflows/coding-standards.yml b/.github/workflows/coding-standards.yml new file mode 100644 index 0000000..b4ce565 --- /dev/null +++ b/.github/workflows/coding-standards.yml @@ -0,0 +1,7 @@ +name: Fix code styling + +on: [ push ] + +jobs: + lint: + uses: socialiteproviders/.github/.github/workflows/coding-standards.yml@main diff --git a/.styleci.yml b/.styleci.yml deleted file mode 100644 index 0285f17..0000000 --- a/.styleci.yml +++ /dev/null @@ -1 +0,0 @@ -preset: laravel diff --git a/pint.json b/pint.json new file mode 100644 index 0000000..b5a32c8 --- /dev/null +++ b/pint.json @@ -0,0 +1,20 @@ +{ + "preset": "laravel", + "rules": { + "binary_operator_spaces": { + "operators": { + "=>": "align" + } + }, + "is_null": true, + "no_superfluous_elseif": true, + "no_superfluous_phpdoc_tags": false, + "no_useless_else": true, + "yoda_style": { + "always_move_variable": true, + "equal": false, + "identical": false, + "less_and_greater": false + } + } +}