VB017
Long procedure
Visual Basic 6
Warning
VB6
Procedures past ~60 lines accumulate the local state and branching that make legacy VB6 unreviewable; same threshold as the Delphi rule so mixed codebases are judged alike
procedures past ~60 lines accumulate the local state and branching that make legacy VB6 unreviewable; same threshold as the Delphi rule so mixed codebases are judged alike.
Why this severity
procedures past ~60 lines accumulate the local state and branching that make legacy VB6 unreviewable; same threshold as the Delphi rule so mixed codebases are judged alike.
Known false positives
generated event stubs with long but trivial bodies.
Remediation example
' Extract the distinct steps into their own procedures Call ValidateOrder(order) Call PersistOrder(order)