Good declaration Order in JSP can reduce costs
This code insight counts a violation each time a page do not conform to the following declaration layout: a JSP file consists of the following sections in the order they are listed: - Opening comments - JSP page directive(s) - Optional tag library directive(s) - Optional JSP declaration(s) - HTML and JSP code Note : if several violation are encountered, only a global violation for the file is counted.Why you should care
Having a declaration order can improve Software Readability.Business Impacts
[nz_btn text="Production Risk" target="_self" animate="false" animation_type="ghost" color="pink" size="small" shape="rounded" type="normal" hover_normal="opacity" hover_ghost="fill" link="http://casthighlight.wpengine.com/category/product/indicators-methodology/innovation/" icon="icon-office"]CAST recommendations
References
https://www.quantifiedcode.com/knowledge-base/correctness/%60else%60%20clause%20on%20a%20loop%20without%20a%20%60break%60%20statement/4aqWoDeYAbout CAST and Highlight’s Code Insights
Over the last 25 years, CAST has leveraged unique knowledge on software quality measurement by analyzing thousands of applications and billions of lines of code. Based on this experience and community standards on programming best practices, Highlight implements hundreds of code insights across 15+ technologies to calculate health factors of a software.
For reference only. For the complete details please refer the original article
https://doc.casthighlight.com/alt_baddeclarationorder-conform-to-declaration-order/
https://doc.casthighlight.com/alt_baddeclarationorder-conform-to-declaration-order/
Comments