SEM002 : Code lines count
Introduction
Section titled “Introduction”Description
Section titled “Description”Metrics rule - counts lines of code.
How to fix
Section titled “How to fix”The rule is only informational.
The rule has a Batch scope and is applied only on the SQL script.
Parameters
Section titled “Parameters”Rule has no parameters.
Remarks
Section titled “Remarks”The rule does not need Analysis Context or SQL Connection.
Effort To Fix
Section titled “Effort To Fix”Not configured.
Categories
Section titled “Categories”Metrics
Additional Information
Section titled “Additional Information”There is no additional info for this rule.
Example Test SQL
Section titled “Example Test SQL”-- non-ANSI inner join syntax:SELECT a.au_id , t.titlr eFROM titles AS t , authors AS a , titleauthor AS taWHERE a.au_id = ta.au_id AND ta.title_id = t.title_id AND t.title LIKE 'Example%'
-- ANSI inner join syntax:
/*SELECT a.au_id , t.titleFROM authors AS aINNER JOIN titleauthor AS taON a.au_id = ta.au_idINNER JOIN titles AS tON ta.title_id = t.title_idWHERE t.title LIKE 'Example%'*/
SELECT a.au_id , t.titleFROM authors AS aINNER JOIN titleauthor AS taON a.au_id = ta.au_idINNER JOIN titles AS tON ta.title_id = t.title_idWHERE t.title LIKE 'Example%' -- IgnoreAnalysis Results
Section titled “Analysis Results”| Message | Line | Column | |
|---|---|---|---|
| 1 | SEM002 : CodeLinesCount=16 | 0 | 0 |