File tree 2 files changed +15
-16
lines changed
2 files changed +15
-16
lines changed Original file line number Diff line number Diff line change @@ -10,13 +10,20 @@ For details on PSR-2-R see [fig-rectified-standards](https://github.com/php-fig-
10
10
11
11
Documentation @ [ /docs/] ( docs ) .
12
12
13
- ## PHP-CS Sniffs
13
+ ## Included sniffs
14
+ The following sniffers are bundles together as ` PSR2R ` already, but you can
15
+ also use them standalone/separately in any way you like.
14
16
15
- This uses [ squizlabs/PHP_CodeSniffer] ( https://github.com/squizlabs/PHP_CodeSniffer/ ) .
17
+ ** Currently PSR2R ships with over 128 sniffs.**
18
+
19
+ * [ List of included sniffs] ( docs/sniffs.md )
20
+
21
+ This library uses [ squizlabs/PHP_CodeSniffer] ( https://github.com/squizlabs/PHP_CodeSniffer/ ) .
16
22
It can detect all issues and fix some of them automatically and is ideal for CI integration
17
23
(travis, jenkins, circlci etc).
18
24
19
25
### Usage
26
+
20
27
#### How to use for your project
21
28
Most likely you are using composer. As such, put it into the require-dev dependencies:
22
29
```
Original file line number Diff line number Diff line change @@ -4,22 +4,9 @@ For details on PSR-2-R see [fig-rectified-standards](https://github.com/php-fig-
4
4
## Documentation on the sniffer itself
5
5
This uses and extends [ squizlabs/PHP_CodeSniffer] ( https://github.com/squizlabs/PHP_CodeSniffer/ ) .
6
6
7
- Runs on all OS, tested on Unix and Windows.
8
-
9
- ## Included sniffs
10
- The following sniffers are bundles together with ` PSR-2-R ` already, but you can
11
- also use them standalone/separately in any way you like.
12
-
13
- ** Currently PSR2R ships with over 120 sniffs.**
14
-
15
- [ List of included sniffs] ( sniffs.md )
16
-
17
7
Most of the sniffs also provide auto-fixing using ` -f ` option where it is possible.
18
8
19
- ## Open Tasks
20
- * It would be nice if some of these sniffers find their way into the contrib section of the original sniffer repo.
21
- If anyone wants to contribute and add those there, that would be awesome.
22
- * More tests
9
+ Runs on all OS, tested on Unix and Windows.
23
10
24
11
## Using the original phpcs and phpcbf command tools
25
12
Of course you can also use the original cli commands:
170
157
```
171
158
composer docs
172
159
```
160
+
161
+ ## Open Tasks
162
+ * It would be nice if some of these sniffers find their way into the contrib section of the original sniffer repo.
163
+ If anyone wants to contribute and add those there, that would be awesome.
164
+ * More tests
You can’t perform that action at this time.
0 commit comments