You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Supporting Trivadis PL/SQL & SQL Coding Guidelines Version 3.2
New guideline numbering scheme
13 new guidelines
Check implemented:
G-2230: Try to use SIMPLE_INTEGER datatype when appropriate.
G-3150: Try to use identity columns for surrogate keys.
G-3180: Always specify column names instead of positional references in ORDER BY clauses.
G-3190: Avoid using NATURAL JOIN.
G-7460: Try to define your packaged/standalone function to be deterministic if appropriate.
G-7810: Do not use SQL inside PL/SQL to read sequence numbers (or SYSDATE)
G-8120: Never check existence of a row to decide whether to create it or not.
G-8310: Always validate input parameter size by assigning the parameter to a size limited variable in the declaration section of program unit.
Check not yet implemented (requires CREATE TABLE and ALTER TABLE parser support, see ticket PLSQLCOP-212):
G-3160: Avoid virtual columns to be visible.
G–3170: Always use DEFAULT ON NULL declarations to assign default values to table columns if you refuse to store NULL values.
Check not planned to be implemented (checks per source file are not suited for this kind of guidelines):
G-5010: Try to use a error/logging framework for your application.
G-8410: Always use application locks to ensure a program unit only running once at a given time.
G-8420: Always use dbms_application_info to track program process transiently
Guidelines categorised by Severity: Blocker (2), Critical (7), Major (46), Minor (37), Info (1)
Guidelines assigned to one or more SQALE characteristics: Changeability (10), Efficiency (20), Maintainability (48), Portability (7), Reliability (34), Reusability (3), Security (1), Testability (11)
Guidelines assigned to one of the 31 SQALE subcharacteristics supported by SonarQube.
Defined effort to solve for every guidelines using a remediation functions supported by SonarQube.
Severity and SQALE characteristics are included in HTML and Excel outputs, issues are ordered by severity (Blocker, Critical, Major, Minor, Info)
Provided guideline example files include the new bad and good examples according Trivadis PL/SQL & SQL Coding Guidelines Version 3.2 and have been renamed to include the version 3 and version 2 guideline identifiers, e.g. guideline_2150_12.sql
Extended valid values for check and skip command line options
Severities (blocker, critical, major, minor, info) may be used in check and skip lists
SQALE characteristics (changeability, efficiency, maintainability, portability, reliability, reusability, security, testability) may used in check and skip list
Guideline numbers, severities and SQALE characteristics may be combined in check and skip lists
Validators are plug-ins now, the following validators are included: