Skip to content

Commit

Permalink
[FEATURE] Provide setup binary through composer (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
gilbertsoft authored Nov 9, 2021
1 parent da9d468 commit 2c0f193
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
25 changes: 15 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,16 +36,21 @@ it is VS-Code, vim or PhpStorm.
Our coding standards file can set this up for you. Run

```bash
php vendor/typo3/coding-standards/setup.php project
php vendor/typo3/coding-standards/setup.php extension
composer exec typo3-coding-standards project
```

or

```bash
composer exec typo3-coding-standards extension
```

or if you want to update the rules, add `-f` option to the end.

Have a look at the newly created files in your root folder:

- .php-cs-fixer.php
- .editorconfig
* .php-cs-fixer.php
* .editorconfig

For projects, the folder `src/extensions` is configured by default, but you can
accommodate where your extensions or PHP code resides in. For extensions,
Expand Down Expand Up @@ -84,12 +89,12 @@ these guidelines.

However, there are some more rules that we think are good:

- Remove leading slashes in use clauses.
- PHP single-line arrays should not have trailing comma.
- Single-line whitespace before closing semicolon are prohibited.
- Remove unused use statements in the PHP source code
- Ensure Concatenation to have at least one whitespace around
- Remove trailing whitespace at the end of blank lines.
* Remove leading slashes in use clauses.
* PHP single-line arrays should not have trailing comma.
* Single-line whitespace before closing semicolon are prohibited.
* Remove unused use statements in the PHP source code
* Ensure Concatenation to have at least one whitespace around
* Remove trailing whitespace at the end of blank lines.

## Maintaining and Development of this package

Expand Down
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,6 @@
"psr-4": {
"TYPO3\\CodingStandards\\": "src/"
}
}
},
"bin": "typo3-coding-standards"
}
File renamed without changes.

0 comments on commit 2c0f193

Please sign in to comment.