Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
ralphjsmit committed Mar 19, 2024
1 parent 86a9d1f commit 327a08d
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 63 deletions.
23 changes: 0 additions & 23 deletions .github/workflows/php-cs-fixer.yml

This file was deleted.

27 changes: 27 additions & 0 deletions .github/workflows/pint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Lint with Pint

on:
pull_request:
workflow_call:
workflow_dispatch:

jobs:
pint:
name: Run Pint
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}

- name: Run Pint
uses: aglipanci/laravel-pint-action@latest
with:
verboseMode: true

- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "style: apply Pint"
40 changes: 0 additions & 40 deletions .php_cs.dist.php

This file was deleted.

19 changes: 19 additions & 0 deletions pint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"preset": "laravel",
"rules": {
"no_superfluous_phpdoc_tags": true,
"concat_space": {
"spacing": "one"
},
"single_quote": true,
"combine_consecutive_issets": true,
"combine_consecutive_unsets": true,
"explicit_string_variable": true,
"global_namespace_import": true,
"single_trait_insert_per_statement": true,
"ordered_traits": true,
"types_spaces": {
"space": "single"
}
}
}

0 comments on commit 327a08d

Please sign in to comment.