Home
Lines should not end with trailing whitespaces
Rule description
- Lines should not end with trailing whitespaces
Non-compliant Code Example
SELECT
/*
Customer table is for holding customer data such as Name, Address, etc.
Also it contains some crucial information like Credit limit, amount spent etc.
*/
NAME,
ADDRESS,
CREDIT_LIMIT
FROM
CUSTOMERS
Where ADDRESS like '%BUNGALOWS% --Non compliant code (Lines ending with trailing whitespace)
';
Compliant Code Example
SELECT
/*
Customer table is for holding customer data such as Name, Address, etc.
Also it contains some crucial information like Credit limit, amount spent etc.
*/
NAME,
ADDRESS,
CREDIT_LIMIT
FROM
CUSTOMERS
Where ADDRESS like '%BUNGALOWS%'; --Compliant code (Lines ending without trailing whitespace)