Fix code quality violations and add VS Code extension features
Fix VS Code extension storage paths for new directory structure Fix jqhtml compiled files missing from bundle Fix bundle babel transformation and add rsxrealpath() function 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -98,8 +98,14 @@ class JQueryLengthCheck_CodeQualityRule extends CodeQualityRule_Abstract
|
||||
}
|
||||
|
||||
if ($found) {
|
||||
// Check if .length is followed by comparison or assignment operators
|
||||
// These are valid uses: .length > 1, .length = x, etc.
|
||||
if (preg_match('/\.length\s*([><=!]+|[+\-*\/]=)/', $sanitized_line)) {
|
||||
continue; // Skip - this is a numeric comparison or assignment
|
||||
}
|
||||
|
||||
$original_line = $original_lines[$line_num] ?? $sanitized_line;
|
||||
|
||||
|
||||
$this->add_violation(
|
||||
$file_path,
|
||||
$line_number,
|
||||
|
||||
Reference in New Issue
Block a user