You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+16-4
Original file line number
Diff line number
Diff line change
@@ -10,9 +10,15 @@ Now it's easy, simply run:
10
10
pretty
11
11
```
12
12
13
-
*Pretty* will detect the configuration file that exist in the current directory and will run the correct tool.
13
+
*Pretty* will detect the configuration file that exist in the current directory and will run the correct tool. If no configuration file exist, *Pretty* will run PHP CodeSniffer with PSR-2 by default.
14
14
15
-
If no configuration file exist, *Pretty* will run PHP CodeSniffer with PSR-2 by default.
15
+
If errors are found, simply run:
16
+
17
+
```
18
+
pretty fix
19
+
```
20
+
21
+
Again, *Pretty* will run the appropriate tool (`php-cs-fixer` or `phpcbf`) to fix as many errors as possible in your code.
16
22
17
23
## Installation
18
24
@@ -34,13 +40,19 @@ composer global update mnapoli/pretty
34
40
35
41
## Usage
36
42
37
-
Running pretty is as simple as running:
43
+
Running an analysis is as simple as running:
38
44
39
45
```
40
46
pretty
41
47
```
42
48
43
-
In case you are running it in CI, you might want to run:
49
+
This command will not change any code. To fix errors reported by this command, simply run:
50
+
51
+
```
52
+
pretty fix
53
+
```
54
+
55
+
In case you are running the analyses in CI you might want to run:
0 commit comments