Commit 35fd3b6
committed
CommaAfterArrayItem: add metrics for comma after last item
Add metrics to make it easier for people to decide whether or not to en/disable this rule.
The generated metrics will look like this and can be called up using `--report=info`:
```
PHP CODE SNIFFER INFORMATION REPORT
----------------------------------------------------------------------
Multi-line array - comma after last item:
no => 2,064 ( 95.82%)
yes => 90 ( 4.18%)
-------------------------
total => 2,154 (100.00%)
Single line array - comma after last item: 0 [804/804, 100%]
```1 parent eea3371 commit 35fd3b6
1 file changed
+14
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
103 | 103 | | |
104 | 104 | | |
105 | 105 | | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
106 | 112 | | |
107 | 113 | | |
108 | 114 | | |
| |||
153 | 159 | | |
154 | 160 | | |
155 | 161 | | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
156 | 170 | | |
157 | 171 | | |
158 | 172 | | |
| |||
0 commit comments