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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user