|
9 | 9 |
|
10 | 10 | // Constants |
11 | 11 |
|
12 | | -const IGNORE_CHMONLY_DIR = true; |
13 | | -const IGNORE_EXTENSIONS_XML = true; |
14 | | -const STATUS_COUNT_MISMATCH = true; |
15 | 12 | const LOOSE_SKIP_REVCHECK = true; |
16 | 13 | const FIXED_SKIP_REVCHECK = true; |
17 | 14 |
|
18 | 15 | // Documentation |
19 | 16 |
|
20 | | -/* # IGNORE_CHMONLY_DIR |
21 | | -
|
22 | | -The chmonly/ dir contains files that appears to be |
23 | | -translatable. See recent efforts to re-enabling |
24 | | -CHM build: https://github.com/php/doc-base/pull/163 |
25 | | -*/ |
26 | | - |
27 | | -/* # IGNORE_EXTENSIONS_XML |
28 | | -
|
29 | | -The actual revcheck ignores any files called extensions.xml, |
30 | | -but are at least two of files with this name. |
31 | | -
|
32 | | -- appendices/migration56/extensions.xml (translatable) |
33 | | -- install/windows/legacy/extensions.xml (deleted on en/, exists untracked on translations) |
34 | | -*/ |
35 | | - |
36 | | -/* # STATUS_COUNT_MISMATCH |
37 | | -
|
38 | | -The actual revcheck counts "outdated" files in two different ways; |
39 | | -
|
40 | | -- Only TranslatedOld: |
41 | | - https://github.com/php/doc-base/blob/747c53bf8ec72f27ac1a83ba91bcc390eea2e46a/scripts/revcheck.php#L603 |
42 | | -- TranslatedOld + RevTagProblem: |
43 | | - https://github.com/php/doc-base/blob/747c53bf8ec72f27ac1a83ba91bcc390eea2e46a/scripts/revcheck.php#L134 |
44 | | -
|
45 | | -This causes a mismatchs between translators totals and file summary. |
46 | | -
|
47 | | -To make the mismatch smaller, the "wip" column in Translators was |
48 | | -changed to "misc", and so any status other than "ok" and "old" |
49 | | -was added here. |
50 | | -
|
51 | | -Also, NotInEnTree is missing on first case, and files |
52 | | -in this situation goes uncounted. |
53 | | -
|
54 | | -Also, RevTagProblem is counted towards as Old, but files |
55 | | -are show in revtag missing/problem list, and is |
56 | | -impossible to generate diffs with invalid hashes... */ |
57 | | - |
58 | | -assert( STATUS_COUNT_MISMATCH || ! STATUS_COUNT_MISMATCH ); |
59 | | - |
60 | 17 | /* # LOOSE_SKIP_REVCHECK |
61 | 18 |
|
62 | 19 | Consider the output of: git show f80105b4fc1196bd8d5fecb98d686b580b1ff65d |
|
0 commit comments