Archive
Risk
-
Unused variables can cause risks in code
This code insight shows that Unused variables can cause risks in code C ounts one violation each time local variable is initialized but never…
-
Explicit Option makes declaring variables easier
Why you should care VB has specific behavior that enable the developer to use variables even if these variables have not been previously declared…
-
Manage transactions when changing tables
About CAST and Highlight’s Code Insights Over the last 25 years, CAST has leveraged unique knowledge on software quality measurement by analyzing thousands of…
-
RETURN should be used to terminate a database query or a stored procedure
Why you should care The RETURN statement is useful as it terminates a query, stored procedure or batch. When used in a stored procedure,…
-
Avoid using risky patterns too frequently
Why you should care Some specific code syntaxes, even if they compile and don’t make a software crash directly, are not recommended mainly for…
-
A Return Statement in the middle of a command makes it unreadable
Why you should care The RETURN statement is useful as it terminates a query, stored procedure or batch. When used in a stored procedure,…
-
Empty Catches may cause security risks
Why you should care Most developers contend that it’s not ideal to have an empty catch block. Empty Catch is the cause of an…
-
Not all Tag libraries should be imported
Why you should care A tag library defines a collection of custom actions. The tags can be used directly by developers in manually coding…
-
Less efficient datatypes cause interchangeability issues
Why you should care Every constant, variable, and parameter has a datatype (or type) which specifies a storage format, constraints, and valid range of…
-
Comparison operators compare values
Why you should care This is important since Javascript has comparison operators such as “regular equality” (==) and “is not equal to” (!=) which…