-
Notifications
You must be signed in to change notification settings - Fork 23
Commit 52edc0b
Merge pull request #35 from inpsyde/modernization
This merge will:
Modernize the codebase:
- Move from PSR-2 or PSR-12
- Use latest PHPCS
- Use latest WPCS
- Use latest VIP CS now in separate repo from WPCS
Cleanup:
- Remove custom and 3rd party sniffs that are duplicated
- Remove PHPCSAliases.php that's no more necessary
- Remove arg and config from ruleset.xml
Improve:
- Make customization of ElementNameMinimalLength sniff
- Improve detection of hook callback
Overall, merging this PR will fix:
- #21
- #25
- #26 (some outdated packages will be there because of PHPUnit 6 that we can't upgrade due to PHP 7.0 support)
- #29
- #33 File tree
35 files changed
+465
-675
lines changed- Inpsyde
- Sniffs/CodeQuality
- docs
- rules-list
- tests
- cases
- fixtures
- src
35 files changed
+465
-675
lines changedThis file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
18 | + | ||
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
330 | 331 | | |
331 | 332 | | |
332 | 333 | | |
333 | - | ||
334 | + | ||
334 | 335 | | |
335 | 336 | | |
336 | 337 | | |
| |||
614 | 615 | | |
615 | 616 | | |
616 | 617 | | |
618 | + | ||
619 | + | ||
620 | + | ||
621 | + | ||
622 | + | ||
623 | + | ||
624 | + | ||
625 | + | ||
626 | + | ||
627 | + | ||
628 | + | ||
629 | + | ||
630 | + | ||
631 | + | ||
632 | + | ||
617 | 633 | | |
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | - | ||
1 | + | ||
2 | + | ||
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
13 | 14 | | |
14 | 15 | | |
15 | 16 | | |
17 | + | ||
18 | + | ||
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
| |||
46 | 49 | | |
47 | 50 | | |
48 | 51 | | |
49 | - | ||
52 | + | ||
53 | + | ||
50 | 54 | | |
51 | 55 | | |
52 | 56 | | |
| |||
Lines changed: 0 additions & 137 deletions
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | + | ||
2 | + | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
11 | + | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
18 | + | ||
19 | + | ||
20 | + | ||
21 | + | ||
22 | + | ||
23 | + | ||
24 | + | ||
25 | + | ||
26 | + | ||
27 | + | ||
28 | + | ||
29 | + | ||
30 | + | ||
31 | + | ||
32 | + | ||
33 | + | ||
34 | + | ||
35 | + | ||
36 | + | ||
37 | + | ||
38 | + | ||
39 | + | ||
40 | + | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | - | ||
1 | + | ||
2 | + | ||
2 | 3 | | |
3 | 4 | | |
4 | 5 | | |
| |||
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
12 | + | ||
13 | + | ||
11 | 14 | | |
12 | 15 | | |
13 | 16 | | |
| |||
16 | 19 | | |
17 | 20 | | |
18 | 21 | | |
19 | - | ||
22 | + | ||
20 | 23 | | |
21 | 24 | | |
22 | 25 | | |
| |||
0 commit comments