Fix JS-JQUERY-VAR-01 and MANIFEST-FILENAME-01 false positives

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
root
2025-12-26 03:49:09 +00:00
parent aac7585b8c
commit fd7d3340f4
2 changed files with 33 additions and 3 deletions

View File

@@ -59,7 +59,15 @@ class FilenameClassMatch_CodeQualityRule extends CodeQualityRule_Abstract
return;
}
// Check if framework developer mode is enabled
$is_framework_developer = env('IS_FRAMEWORK_DEVELOPER', false);
foreach ($files as $file => $metadata) {
// Skip backup/upstream files
if (str_ends_with($file, '.upstream') || str_ends_with($file, '.backup')) {
continue;
}
// Only check files in ./rsx or ./app/RSpade
$is_rsx = str_starts_with($file, 'rsx/');
$is_rspade = str_starts_with($file, 'app/RSpade/');
@@ -68,6 +76,11 @@ class FilenameClassMatch_CodeQualityRule extends CodeQualityRule_Abstract
continue;
}
// app/RSpade/ files only checked in framework developer mode
if ($is_rspade && !$is_framework_developer) {
continue;
}
$extension = $metadata['extension'] ?? '';
$filename = basename($file);