Skip to content

Feat/migrate to mago parser#97

Merged
denzyldick merged 11 commits intomainfrom
feat/migrate-to-mago-parser
Feb 18, 2026
Merged

Feat/migrate to mago parser#97
denzyldick merged 11 commits intomainfrom
feat/migrate-to-mago-parser

Conversation

@denzyldick
Copy link
Copy Markdown
Owner

No description provided.

denzyldick and others added 11 commits February 18, 2026 21:48
- Update File struct to use mago_ast::Program and ThreadedInterner
- Replace php-parser-rs parsing with mago_parser::parse
- Update analyse.rs to iterate mago AST statements
- Update results.rs Violation to use mago_span::Span
- Update output formatters for new Violation structure
- Update config.rs for new rule structure
- Update Rule trait validate() signature to use mago_ast::Statement
- Update flatten_statements_to_validate to traverse mago AST
- Register all rules (e0, e6, e8, e11, e13) in all_rules()
- Remove php-parser-rs based traversal helpers
- e0: update example rule to mago_ast::Statement
- e1: migrate opening tag check to mago AST
- e2: migrate empty catch detection to mago AST
- e3: migrate method modifier check to mago AST
- e4: migrate uppercase constant check to mago AST
- e5: migrate class name capitalization check to mago AST
- e6: migrate property visibility modifier check to mago AST
- e7: migrate method parameter count check to mago AST
- e8: migrate return type signature check to mago AST
- e9: migrate cyclomatic complexity check to mago AST
- e10: migrate NPath complexity / concatenation spacing to mago AST
- e11: migrate error suppression @ detection to mago AST
- e12: migrate shared memory model check to mago AST
- e13: migrate unused private method detection to mago AST (self-contained)
- repro.rs: test PHP 8.4 property hooks parsing
- repro_php84.rs: test mago-parser directly with PHP 8.4 syntax
- fixtures/hooks.php: PHP 8.4 property hooks test fixture
@denzyldick denzyldick merged commit 798fa37 into main Feb 18, 2026
2 checks passed
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