add-code-inspector-rule - Add Custom CodeInspector Rules for Wolfram Language
Add custom CodeInspector rules to detect problematic Wolfram Language code patterns by defining AST patterns, handler functions, and tests.
Tags
Updated: 2026-06-30Capabilities
Typical Inputs
Typical Outputs
What this skill does
- parse Wolfram Language AST structure
- read existing CodeInspector rules file
- define reusable AST patterns
- add rule entries to Rules.wl
- write rule handler functions
- write verification tests
- run tests via TestReport tool
Inputs
- rule description
- Wolfram Language code examples
- Kernel/Tools/CodeInspector/Rules.wl file
- Tests/CodeInspectorTool.wlt file
Outputs
- modified Rules.wl file with new rule
- modified test file with verification tests
- test execution report
Requirements
- Wolfram Language runtime environment
- CodeParser package
- CodeInspector package
- WolframLanguageEvaluator tool
- TestReport MCP tool
