Skip to content

Commit

Permalink
Add fix and lint global commands
Browse files Browse the repository at this point in the history
  • Loading branch information
mattstauffer committed Feb 1, 2021
1 parent f67b375 commit 2ff5d13
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 2 deletions.
24 changes: 23 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,30 @@ composer require tightenco/duster

## Usage

To run individual lints:

```bash
./vendor/duster-tlint-lint
./vendor/duster-phpcs-lint
```
// Usage code and examples here

To run individual fixes:

```bash
./vendor/duster-tlint-fix
./vendor/duster-phpcs-fix
```

To lint everything at once:

```bash
./vendor/duster-lint
```

To fix everything at once:

```bash
./vendor/duster-fix
```

## Contributing
Expand Down
5 changes: 5 additions & 0 deletions bin/fix
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
${DIR}/duster-tlint-fix
${DIR}/duster-phpcs-fix
5 changes: 5 additions & 0 deletions bin/lint
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash

DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )"
${DIR}/duster-tlint-lint
${DIR}/duster-phpcs-lint
4 changes: 3 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@
"bin/duster-tlint-lint",
"bin/duster-tlint-fix",
"bin/duster-phpcs-lint",
"bin/duster-phpcs-fix"
"bin/duster-phpcs-fix",
"bin/duster-lint",
"bin/duster-fix"
]
}

0 comments on commit 2ff5d13

Please sign in to comment.