Public Access
4009d68a7a
Universal: PR Check / Branch Policy (pull_request) Failing after 2s
Generic: Repo Health / Site Health (pull_request) Has been skipped
Generic: Repo Health / Access control (pull_request) Successful in 3s
Universal: PR Check / Validate PR (pull_request) Failing after 14s
Universal: PR Check / Secret Scan (pull_request) Successful in 15s
Generic: Project CI / Lint & Validate (pull_request) Successful in 57s
Platform: mokocli CI / Gate 1: Code Quality (pull_request) Successful in 2m4s
Universal: Build & Release / Promote to RC (pull_request) Has been skipped
RC Revert / Rename rc/ back to dev/ (pull_request) Has been skipped
Branch Cleanup / Delete merged branch (pull_request) Successful in 2s
Universal: Build & Release / Build & Release Pipeline (pull_request) Successful in 35s
Universal: Workflow Sync Trigger / Sync workflows to live repos (pull_request) Failing after 28m16s
Generic: Project CI / Tests (pull_request) Has been cancelled
Platform: mokocli CI / Gate 2: Unit Tests (8.1) (pull_request) Has been cancelled
Platform: mokocli CI / Gate 2: Unit Tests (8.2) (pull_request) Has been cancelled
Platform: mokocli CI / Gate 2: Unit Tests (8.3) (pull_request) Has been cancelled
Platform: mokocli CI / Gate 3: Self-Health Check (pull_request) Has been cancelled
Platform: mokocli CI / Gate 4: Governance (pull_request) Has been cancelled
Platform: mokocli CI / Gate 5: Template Integrity (pull_request) Has been cancelled
Platform: mokocli CI / CI Summary (pull_request) Has been cancelled
Universal: PR Check / Build RC Package (pull_request) Has been cancelled
Universal: PR Check / Report Issues (pull_request) Has been cancelled
Generic: Repo Health / Scripts governance (pull_request) Has been cancelled
Generic: Repo Health / Repository health (pull_request) Has been cancelled
Generic: Repo Health / Report: Scripts Governance (pull_request) Has been cancelled
Generic: Repo Health / Report: Repository Health (pull_request) Has been cancelled
The repo was renamed mokoplatform -> mokocli; this rewrites every stale
reference across the tree (case-sensitive):
MokoPlatform -> MokoCLI (DEFGROUP/INGROUP doc tags)
mokoplatform -> mokocli (repo URLs, /opt & /tmp paths, clone URLs,
EXCLUDE lists, XML xmlns + <root> namespace)
moko-platform -> moko-cli (marker files)
XML namespace URIs and ManifestParser::NAMESPACE_URI are changed in
lockstep so local manifest-vs-parser validation stays consistent. The
external standards.mokoconsulting.tech namespace endpoint must be updated
to match separately (tracked in #336).
Refs #336
Claude-Session: https://claude.ai/code/session_01WbGBN9VyRK61zczYWcCQ2i
58 lines
1.7 KiB
PHP
58 lines
1.7 KiB
PHP
#!/usr/bin/env php
|
|
<?php
|
|
/* Copyright (C) 2026 Moko Consulting <hello@mokoconsulting.tech>
|
|
*
|
|
* This file is part of a Moko Consulting project.
|
|
*
|
|
* SPDX-License-Identifier: GPL-3.0-or-later
|
|
*
|
|
* FILE INFORMATION
|
|
* DEFGROUP: MokoCLI.Scripts.Fix
|
|
* INGROUP: MokoCLI
|
|
* REPO: https://git.mokoconsulting.tech/MokoConsulting/mokocli
|
|
* PATH: /fix/fix_trailing_spaces.php
|
|
* BRIEF: CLI script to remove trailing whitespace from tracked source files
|
|
*/
|
|
|
|
declare(strict_types=1);
|
|
|
|
require_once __DIR__ . '/../vendor/autoload.php';
|
|
require_once __DIR__ . '/../lib/Enterprise/CliFramework.php';
|
|
|
|
use MokoCli\CliFramework;
|
|
use MokoCli\FileFixUtility;
|
|
|
|
class FixTrailingSpaces extends CliFramework
|
|
{
|
|
protected function configure(): void
|
|
{
|
|
$this->setDescription('Remove trailing whitespace from tracked source files');
|
|
$this->addArgument('--path', 'Repository root (default: current directory)', '.');
|
|
$this->addArgument('--type', 'File type: yaml, python, shell, all', 'all');
|
|
}
|
|
|
|
protected function run(): int
|
|
{
|
|
$path = (string) $this->getArgument('--path');
|
|
$fileType = (string) $this->getArgument('--type');
|
|
|
|
try {
|
|
$files = FileFixUtility::fixTrailingSpaces($path, $fileType, $this->dryRun);
|
|
} catch (\InvalidArgumentException $e) {
|
|
$this->log('ERROR', $e->getMessage());
|
|
return self::EXIT_USAGE;
|
|
}
|
|
|
|
foreach ($files as $f) {
|
|
$this->status(true, "Fixed: {$f}");
|
|
}
|
|
|
|
$label = $this->dryRun ? 'Would fix' : 'Fixed';
|
|
$this->log("{$label} " . count($files) . ' file(s)');
|
|
return self::EXIT_SUCCESS;
|
|
}
|
|
}
|
|
|
|
$app = new FixTrailingSpaces();
|
|
exit($app->execute());
|