Home
Lines should not be too long
Rule description
- Lines should not be too long
Non-compliant Code Example
function GetCompleteCustomerDetails(customerId In INTEGER)
return CUSTOMER_T
Is
BEGIN
Select FIRSTNAME, LASTNAME, AREA, CITY Into CUSTOMER_T.FirstName, CUSTOMER_T.LastName, CUSTOMER_T.Area, CUSTOMER_T.City FROM CUSTOMERS Where Id = customerId; --Non compliant code (Line length is more than default defined limit of 100 characters)
RETURN CUSTOMER_T;
END GetCompleteCustomerDetails
Compliant Code Example
function GetCompleteCustomerDetails(customerId In INTEGER)
return CUSTOMER_T
Is
BEGIN
Select FIRSTNAME, --Compliant code (Line length is less than default defined limit of 100 characters )
LASTNAME,
AREA,
CITY
Into CUSTOMER_T.FirstName,
CUSTOMER_T.LastName,
CUSTOMER_T.Area,
CUSTOMER_T.City
FROM CUSTOMERS
Where Id = customerId;
RETURN CUSTOMER_T;
END GetCompleteCustomerDetails