Home

Comments should not be located at the end of lines of code

Rule description

  • Comments should not be located at the end of lines of code

 

Non-compliant Code Example

SELECT --Select all the columns in the customer table  --Non compliant code (Comment is mentioned at the end of the line)
    *       
FROM
    CUSTOMERS

Compliant Code Example

SELECT 
--Select all the columns in the customer table    --Compliant code (Comment is mentioned in the new line)
    *       
FROM
    CUSTOMERS
Visual Expert 2020
 VEPLSQLRULE185