-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #16 from FrittenKeeZ/laravel-pint
Replaced PHP CS Fixer with Laravel Pint
- Loading branch information
Showing
33 changed files
with
90 additions
and
551 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Tests | ||
name: Linting & Testing | ||
|
||
on: | ||
workflow_dispatch: | ||
|
@@ -18,7 +18,33 @@ on: | |
- "**.yml" | ||
|
||
jobs: | ||
tests: | ||
laravel-pint: | ||
name: PHP Linting (Pint) | ||
|
||
if: github.event.pull_request.draft == false | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
with: | ||
# Make sure the actual branch is checked out when running on pull requests. | ||
ref: ${{ github.head_ref }} | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Laravel Pint | ||
uses: aglipanci/[email protected] | ||
|
||
- name: Commit changes | ||
uses: stefanzweifel/git-auto-commit-action@v5 | ||
with: | ||
commit_message: PHP Linting (Pint) | ||
skip_fetch: true | ||
|
||
testing: | ||
needs: laravel-pint | ||
|
||
strategy: | ||
fail-fast: true | ||
matrix: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
/vendor | ||
/.idea | ||
/composer.lock | ||
/.php-cs-fixer.cache | ||
/.phpunit.cache | ||
/.phpunit.result.cache | ||
/.php-cs-fixer.cache | ||
/.pint.json | ||
/composer.lock | ||
/vendor |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"preset": "laravel", | ||
"cache-file": ".pint.json", | ||
"rules": { | ||
"binary_operator_spaces": { | ||
"operators": { | ||
"=>": "align_single_space_minimal" | ||
} | ||
}, | ||
"concat_space": { | ||
"spacing": "one" | ||
}, | ||
"multiline_whitespace_before_semicolons": { | ||
"strategy": "new_line_for_chained_calls" | ||
}, | ||
"not_operator_with_successor_space": false, | ||
"ordered_types": { | ||
"null_adjustment": "always_last", | ||
"sort_algorithm": "alpha" | ||
}, | ||
"phpdoc_align": true, | ||
"phpdoc_annotation_without_dot": false, | ||
"phpdoc_order": true, | ||
"phpdoc_separation": true, | ||
"phpdoc_types_order": { | ||
"null_adjustment": "always_last" | ||
}, | ||
"simplified_null_return": true, | ||
"single_trait_insert_per_statement": true | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.