#5291 - Write test to detect if addon files are in a _custom directory when they should not be and vice-versa
| Identifier | #5291 |
|---|---|
| Issue type | Feature request or suggestion |
| Title | Write test to detect if addon files are in a _custom directory when they should not be and vice-versa |
| Status | Completed |
| Handling member | PDStig |
| Addon | General / Uncategorised |
| Description | I noticed this fix:
https://gitlab.com/composr-foundation/composr/-/commit/5da0dcc8ce90cd005d56a3f6d16aa24e137012d6 This is a case we can auto-detect. Any bundled addon_registry hook should only have a *_custom file in the case of a hook directory's index.html or .htaccess file. And non-bundled addon_registry hook should only have a file that is not in a *_custom directory if there is no equivalent *_custom directory. i.e. nothing with a path starting 'data/' or 'sources/' or including 'pages/modules/' or 'pages/comcode/' or 'pages/html/' or 'pages/minimodules/' or being under 'themes/*/templates/' or 'themes/*/xml/' or 'themes/*/text/' or 'themes/*/javascript/' or 'themes/*/css/' or 'themes/*/images/'. |
| Steps to reproduce | |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".


Comments
There have been no comments yet