Page:
api-fix-index.-
Pages
ARCHITECTURE
AUTO_CREATE_ORG_PROJECTS
CLI_AUTOMATION
DEPLOY_SCRIPTS
DOLIBARR_MODULE_IDS
DRY_RUN_PATTERN
Documentation-Standards.-.-
Documentation-Standards.-
File-Header-Standards
Home
JOOMLA_SYNC
LEGAL_DOC_GENERATOR_WEB_README
MCP-Servers.-.-.
MCP-Servers
MINIFICATION
MONITORING_SCRIPTS
NEW_SCRIPTS
QUICKSTART_ORG_PROJECTS
SITE_MONITORING
WIKI_STANDARDS
WORKFLOW_STANDARDS
api-automation-index.-
api-automation-index
api-definitions-default-index.-
api-definitions-default-index
api-definitions-sync-index.-
api-definitions-sync-index
api-deploy-index.-
api-deploy-index
api-fix-index.-
api-fix-index
api-index.-
api-index
api-maintenance-index.-
api-maintenance-index
api-plugin-index.-
api-plugin-index
api-tests-index.-
api-tests-index
api-tests-sample-index.-
api-tests-sample-index
api-validate-index.-
api-validate-index
automation-README.-
automation-README
automation-branch-version-automation.-
automation-branch-version-automation
automation-push-files.-
automation-push-files
automation-repo-cleanup.-
automation-repo-cleanup
client-repos.-.-
client-repos
standards-mokostandards-file-spec.-
standards-mokostandards-file-spec
templates-client-waas
templates-dolibarr
templates-generic
templates-mcp
workflows-README.-
workflows-README
workflows-auto-release.-
workflows-auto-release
workflows-branch-protection.-
workflows-branch-protection
workflows-build-release.-
workflows-build-release
workflows-cascade-dev.-
workflows-cascade-dev
workflows-changelog-management.-
workflows-changelog-management
workflows-demo-deployment.-
workflows-demo-deployment
workflows-dev-branch-tracking.-
workflows-dev-branch-tracking
workflows-dev-deployment.-
workflows-dev-deployment
workflows-index.-
workflows-index
workflows-release-system.-
workflows-release-system
workflows-renovate.-
workflows-renovate
workflows-reusable-workflows.-
workflows-reusable-workflows
workflows-rs-deployment.-
workflows-rs-deployment
workflows-secret-scanning.-
workflows-secret-scanning
workflows-shared-workflows.-
workflows-shared-workflows
workflows-standards-compliance.-
workflows-standards-compliance
workflows-static-analysis.-
workflows-static-analysis
workflows-sub-issue-management.-
workflows-sub-issue-management
workflows-update-server.-
workflows-update-server
workflows-workflow-architecture.-
workflows-workflow-architecture
Clone
2
api-fix-index.-
Jonathan Miller edited this page 2026-05-11 21:56:15 +00:00
Table of Contents
← Home
Fix Scripts
Scripts in api/fix/ make automated corrections to source files. All scripts:
- Extend
CliBase - Support
--dry-run(preview changes without writing) - Support
--helpfor usage information - Operate on tracked files only (respects
.gitignore)
Always run with --dry-run first to review changes before applying them.
php api/fix/<script>.php --path /path/to/repo --dry-run
fix_line_endings.php
Converts CRLF (\r\n) line endings to LF (\n) in all tracked text files.
Prevents spurious diff noise on Windows development machines.
php api/fix/fix_line_endings.php --path .
php api/fix/fix_line_endings.php --path . --dry-run
| Option | Default | Description |
|---|---|---|
--path |
. |
Repository root |
--dry-run |
off | Show files that would be changed |
--help |
— | Show help and exit |
fix_permissions.php
Sets correct file permissions across the repository:
- Directories:
755 - Regular files:
644 - Executable scripts (
*.php,*.sh):755
php api/fix/fix_permissions.php --path .
php api/fix/fix_permissions.php --path . --dry-run
| Option | Default | Description |
|---|---|---|
--path |
. |
Repository root |
--dry-run |
off | Show permission changes without applying |
--help |
— | Show help and exit |
fix_tabs.php
Converts leading tabs to spaces (or vice versa) in tracked source files
according to .editorconfig rules.
php api/fix/fix_tabs.php --path .
php api/fix/fix_tabs.php --path . --type yaml
php api/fix/fix_tabs.php --path . --dry-run
| Option | Default | Description |
|---|---|---|
--path |
. |
Repository root |
--type <ext> |
all | Limit fixes to files of this type (yaml, php, etc.) |
--dry-run |
off | Show files that would be changed |
--help |
— | Show help and exit |
fix_trailing_spaces.php
Removes trailing whitespace from every line in tracked source files.
php api/fix/fix_trailing_spaces.php --path .
php api/fix/fix_trailing_spaces.php --path . --type php
php api/fix/fix_trailing_spaces.php --path . --dry-run
| Option | Default | Description |
|---|---|---|
--path |
. |
Repository root |
--type <ext> |
all | Limit fixes to files of this type |
--dry-run |
off | Show files that would be changed |
--help |
— | Show help and exit |
Repo: moko-platform · moko-platform wiki
| Field | Value |
|---|---|
| Minimum Version | 04.07.00 |
| Platform | all |
| Applies To | All repositories |
| Revision | Date | Author | Description |
|---|---|---|---|
| 1.0 | 2026-05-08 | Moko Consulting | Initial version |