ADVPL Code Review Pro
Automates the review of ADVPL and TLPP code for the Protheus framework using 35 specialized linting rules.
This skill enhances Claude Code with a comprehensive catalog of 35 code review rules tailored specifically for ADVPL and TLPP development in the TOTVS Protheus ecosystem. It provides automated detection for critical issues like transaction mismatches, security vulnerabilities, performance bottlenecks in SQL queries (missing %notDel% or %xfilial%), and adherence to MVC standards. By integrating these rules, developers can ensure code quality and framework compliance before commits or pull requests, significantly reducing runtime errors and potential cross-filial data leaks.
Características Principales
0135 Automated Review Rules: Covers 100% of the plugadvpl catalog including 22 single-file and 13 cross-file checks.
02Security & Performance Audits: Detects hardcoded credentials, restricted function calls, and unoptimized SQL queries.
03Metadata-Aware Validation: Leverages SQLite indexing to perform cross-file SX dictionary validations without excessive token usage.
0413 GitHub stars
05Critical Error Detection: Identifies missing MsUnlock calls, unclosed transactions, and improper RpcSetEnv usage.
06Severity-Based Filtering: Categorizes issues into critical, error, warning, and info for efficient triage.
Casos de Uso
01Pre-commit Quality Assurance: Run a full linting check before pushing code to ensure it meets Protheus best practices.
02Legacy Code Modernization: Identify legacy functions like AxCadastro or ConOut and receive suggestions for MVC or FwLogMsg equivalents.
03SQL Optimization: Automatically identify missing Protheus-specific SQL macros like %notDel% and %xfilial% to prevent data leaks.