|
5 | 5 | * |
6 | 6 | * @package SMF |
7 | 7 | * @author Simple Machines https://www.simplemachines.org |
8 | | - * @copyright 2024 Simple Machines and individual contributors |
| 8 | + * @copyright 2025 Simple Machines and individual contributors |
9 | 9 | * @license https://www.simplemachines.org/about/smf/license.php BSD |
10 | 10 | * |
11 | | - * @version 3.0 Alpha 1 |
| 11 | + * @version 3.0 Alpha 4 |
12 | 12 | */ |
13 | 13 |
|
14 | 14 | // Stuff we will ignore. |
15 | 15 | $ignoreFiles = [ |
16 | | - // Index files. |
17 | | - '\./attachments/index\.php', |
18 | | - '\./avatars/index\.php', |
19 | | - '\./avatars/[A-Za-z0-9]+/index\.php', |
20 | | - '\./cache/index\.php', |
21 | | - '\./custom_avatar/index\.php', |
22 | | - '\./Packages/index\.php', |
23 | | - '\./Packages/backups/index\.php', |
24 | | - '\./Smileys/[A-Za-z0-9]+/index\.php', |
25 | | - '\./Smileys/index\.php', |
26 | | - '\./Sources/index\.php', |
27 | | - '\./Sources/[\w/]+/index\.php', |
28 | | - '\./other/Schema/[\w/]+/*\.php', |
29 | | - '\./Themes/default/index\.php', |
30 | | - '\./Themes/default/[\w/]+/index\.php', |
31 | | - '\./Themes/index\.php', |
| 16 | + // Index files in subdirectories. |
| 17 | + '\./(?:\w+/)+\bindex\.php', |
32 | 18 |
|
33 | 19 | // Language Files are ignored as they don't use the License format. |
34 | | - './Themes/default/languages/[A-Za-z0-9]+\.english\.php', |
35 | | - './Languages/en_US/[A-Za-z0-9]+\.php', |
36 | | - './Themes/default/languages/en_US/[A-Za-z0-9]+\.php', |
37 | | - '\./Languages/index\.php', |
| 20 | + './Themes/default/languages/', |
| 21 | + '\./Languages/', |
38 | 22 |
|
39 | 23 | // Cache and miscellaneous. |
40 | 24 | '\./cache/', |
41 | | - '\./other/db_last_error\.php', |
42 | | - '\./other/update_[A-Za-z0-9_]+\.php', |
43 | 25 | '\./tests/', |
44 | 26 | '\./vendor/', |
45 | 27 |
|
46 | | - // Minify Stuff. |
47 | | - '\./Sources/minify/', |
48 | | - |
49 | | - // random_compat(). |
50 | | - '\./Sources/random_compat/', |
51 | | - |
52 | | - // ReCaptcha Stuff. |
53 | | - '\./Sources/ReCaptcha/', |
| 28 | + // Everything in other except install.php, upgrade.php, Settings.php and Settings_bak.php. |
| 29 | + '\./other/(?!install|upgrade|Settings)\w+\.php', |
54 | 30 |
|
55 | 31 | // We will ignore Settings.php if this is a live dev site. |
56 | 32 | '\./Settings\.php', |
|
0 commit comments