ADVPL Code Metrics & Quality Analysis

•
13
•

Analyzes ADVPL and TLPP source code to provide deep insights into cyclomatic complexity, nesting depth, and code quality metrics for Protheus projects.

This specialized skill enables Claude to perform technical debt audits and refactoring prioritization within Protheus environments by querying a pre-indexed SQLite database of ADVPL/TLPP metadata. It allows developers to identify high-risk code blocks through McCabe cyclomatic complexity, lines of code (LOC), nesting depth, and fan-out analysis without consuming excessive tokens by reading entire source files. It is an essential tool for maintaining large-scale ERP legacy codebases and ensuring modern coding standards are met during development.

주요 기능

01Calculates McCabe Cyclomatic Complexity including If, Case, and IIf paths
02Measures nesting depth and fan-out (function call counts) per routine
03Identifies functions lacking Protheus.doc documentation headers
04Filters and sorts functions by complexity, LOC, or parameter counts
05Operates on pre-indexed metadata to minimize token usage in large projects
0613 GitHub stars

사용 사례

01Generate code quality reports for ADVPL/TLPP modules during code reviews
02Identify and prioritize complex functions for refactoring during technical debt sprints
03Audit legacy Protheus codebases to find unmaintained or overly nested routines