Skip to content

Add fixAction auto-fix support to 4 existing rules#8

Open
mladenovic-13 wants to merge 1 commit into
mainfrom
feat/autofix-actions
Open

Add fixAction auto-fix support to 4 existing rules#8
mladenovic-13 wants to merge 1 commit into
mainfrom
feat/autofix-actions

Conversation

@mladenovic-13

Copy link
Copy Markdown
Collaborator

Add machine-applicable fixAction to 4 rules, enabling --fix auto-repair.

Summary

  • php-compat-curly-braces$var{0}$var[0] (bracket replacement)
  • security-xss — wraps $_GET['x'] in htmlspecialchars(..., ENT_QUOTES, 'UTF-8')
  • perl-deprecated-modules — comments out deprecated use statement
  • perl-file-permissions07770755, 06660644
  • 5 new integration tests verifying applyFixes() produces correct output
  • Total auto-fixable rules: 3 → 7

Type of Change

  • New rule
  • New feature
  • Documentation update

Checklist

  • npm run validate passes (lint + typecheck + tests + build)
  • New rules have positive and negative test cases
  • Documentation updated if needed
  • No any types introduced

Add machine-applicable fixAction to php-compat-curly-braces ($var{0} →
$var[0]), security-xss (wrap in htmlspecialchars), perl-deprecated-modules
(comment out deprecated use), and perl-file-permissions (0777 → 0755,
0666 → 0644). Includes integration tests verifying applyFixes produces
correct output. Total auto-fixable rules: 3 → 7.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant