fix: DockerSecretsResolver - don't normalize absolute paths like /var/www/html/...
Some checks failed
Deploy Application / deploy (push) Has been cancelled
Some checks failed
Deploy Application / deploy (push) Has been cancelled
This commit is contained in:
39
tests/debug/test-component-linter.php
Normal file
39
tests/debug/test-component-linter.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
require_once __DIR__ . '/../../vendor/autoload.php';
|
||||
|
||||
use App\Framework\View\Linting\ComponentLinter;
|
||||
|
||||
$linter = new ComponentLinter();
|
||||
|
||||
// Test mit einem Template das noch alte Syntax hat
|
||||
$testFile = __DIR__ . '/../../src/Application/Admin/templates/database/table-detail.view.php';
|
||||
|
||||
echo "Testing ComponentLinter on: $testFile\n";
|
||||
echo str_repeat('=', 80) . "\n\n";
|
||||
|
||||
$issues = $linter->lint($testFile);
|
||||
|
||||
if (empty($issues)) {
|
||||
echo "✅ No issues found!\n";
|
||||
} else {
|
||||
echo "Found " . count($issues) . " issues:\n\n";
|
||||
|
||||
foreach ($issues as $issue) {
|
||||
echo sprintf(
|
||||
"Line %d: [%s] %s\n",
|
||||
$issue['line'],
|
||||
strtoupper($issue['type']),
|
||||
$issue['message']
|
||||
);
|
||||
|
||||
if (isset($issue['suggestion'])) {
|
||||
echo " 💡 Suggestion: {$issue['suggestion']}\n";
|
||||
}
|
||||
|
||||
echo "\n";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user