Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEATURE] Provide setup binary through composer #10

Merged
merged 1 commit into from
Nov 9, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.