This repository was archived by the owner on Feb 2, 2026. It is now read-only.
db* CODECOP Validators v4.3.0
New
-
Based on db* CODECOP v4.3.0
- see Release Notes
-
#46 Add test cases for table_stats, index_stats and column_status
- show that table references are not checked for these hints
-
#47 Add guideline checks for TABLE_STATS hint
- Check for G-9604: Never use an invalid stats method.
- Check for G-9605: Never use an invalid stats keyword.
-
#52 Add SQL files examples for all guidelines in the TrivadisGuidelines3Plus validator
- SonarQube rule description (reason, good and bad example) for:
- π G-9101: Always prefix global variables with 'g_'.
- π G-9102: Always prefix local variables with 'l_'.
- π G-9103: Always prefix cursors with 'c_'.
- π G-9104: Always prefix records with 'r_'.
- π G-9105: Always prefix collection types (arrays/tables) with 't_'.
- π G-9106: Always prefix objects with 'o_'.
- π G-9107: Always prefix cursor parameters with 'p_'.
- π G-9108: Always prefix in parameters with 'in_'.
- π G-9109: Always prefix out parameters with 'out_'.
- π G-9110: Always prefix in/out parameters with 'io_'.
- π G-9111: Always prefix record type definitions with 'r_' and add the suffix '_type'.
- π G-9112: Always prefix collection type definitions (arrays/tables) with 't_' and add the suffix '_type'.
- π G-9113: Always prefix exceptions with 'e_'.
- π G-9114: Always prefix constants with 'co_'.
- π G-9115: Always prefix subtypes with '_type'.
- β G-9501: Never use parameter in string expression of dynamic SQL. Use asserted local variable instead.
- π G-9600: Never define more than one comment with hints.
- π G-9601: Never use unknown hints.
- π G-9602: Always use the alias name instead of the table name.
- π G-9603: Never reference an unknown table/alias.
- π G-9604: Never use an invalid stats method.
- π G-9605: Never use an invalid stats keyword.
- SonarQube rule description (reason, good and bad example) for:
Fixed
- #48 G-9102: false positive for collection type