Commit ac5f153
ABaldwinHunter
Simplify and fix issue documentation
This commit updates build-content script (invoked during docker build)
to write all rules to simply
`./content/{#rule}.txt`
instead of nesting them under:
`./content/#{category}/#{rule}.txt`
The update is cleaner and fixes a problem:
1) no complexity content due to phpmd quirky discrepancy between rule
category name in documentation and in phpmd code itself.
`!tldr`:
My first approach tried to make the doc path during
build match the check-naming in phpmd code, but this was messy and required
conditional logic in a few places.
The rule names are unique so they suffice for the lookup.
https://github.com/codeclimate/codeclimate-phpmd/blob/master/Category.php#L721 parent 166ca95 commit ac5f153
2 files changed
+14
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
69 | | - | |
70 | | - | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
7 | 10 | | |
8 | 11 | | |
9 | 12 | | |
| |||
15 | 18 | | |
16 | 19 | | |
17 | 20 | | |
| 21 | + | |
18 | 22 | | |
19 | | - | |
20 | | - | |
21 | | - | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
22 | 27 | | |
| 28 | + | |
23 | 29 | | |
24 | 30 | | |
25 | 31 | | |
| |||
34 | 40 | | |
35 | 41 | | |
36 | 42 | | |
37 | | - | |
38 | 43 | | |
39 | 44 | | |
40 | 45 | | |
| |||
45 | 50 | | |
46 | 51 | | |
47 | 52 | | |
48 | | - | |
49 | | - | |
| 53 | + | |
50 | 54 | | |
51 | 55 | | |
52 | 56 | | |
| |||
0 commit comments