Message-ID: <734306390.1225.1430042074549.JavaMail.email@example.com> Subject: Exported From Confluence MIME-Version: 1.0 Content-Type: multipart/related; boundary="----=_Part_1224_184420373.1430042074548" ------=_Part_1224_184420373.1430042074548 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Content-Location: file:///C:/exported.html
The objective of this plugin is to report on the number of lines that ca= n be reduced in an application. It currently works on 3 axes:
1. Report the number of duplicated lines that could be reduced=
Currently SonarQube tells you that you have 50 lines involved= in a duplication. But it does not easily tell you whether this is two bloc= ks of 25 lines (in which case you can save 25 lines) or 5 blocks of 10 line= s (in which case you can save 40 lines). With this plugin you get this extr= a information. The algorithm is as follows: assuming that refactoring will = not cross boundaries of sub-projects (no support for cross-project duplicat= ion detection), first occurrence of a duplicated block will survive and all= others can be removed.
2. Report on the number of lines of dead code that could be redu=
ced (only for Java and not available from 4.2)
Currently Son= arQube reports on the number of unsused private method within your applicat= ion. This can be done through the
;rule or through the
SQUID:UnusedPrivateMethod rule. Thi=
s plugin calculates the number of lines that can be saved for each of them =
and aggregates them.
3. Report on the number of lines of potential dead code that cou=
ld be reduced (only for Java not available from 4.2)
Currently SonarQube reports on the number o= f unsused protected methods within your application. This can be done throu= gh the
SQUID:UnusedProtectedMethod rule. This plugin calc=
ulates the number of lines that can be saved for each of them and aggregate=
Note that an unused protected method could be used outside the applicati= on through inheritance. This is why we call it potential dead code= .