Commit Graph

897 Commits

Author SHA1 Message Date
baf22b432b Merge branch 'metrics' of https://github.com/oowekyala/pmd into pr-451 2017-06-24 10:36:35 +02:00
5304b7e2e6 Corrections for review #451 2017-06-23 15:28:58 +02:00
d9d820cc92 Merge branch 'pr-458' 2017-06-23 15:08:04 +02:00
abe0c2eab7 Merge branch 'pr-455' 2017-06-23 15:00:01 +02:00
92f10342c7 Merge branch 'pr-454' 2017-06-23 14:56:21 +02:00
eda54ae86a [java] EmptyCatchBlock may ignore blocks based on exception name
- Allow the developer to setup a regular expression for exception names
to be ignored by the rule.
 - Fixes #413
2017-06-21 23:52:05 -03:00
15716ffd93 [java] SignatureDeclareThrowsException ignores @Override
- Avoid reporting on @Overrides, since we have no control of the
interface.
 - The original definition is still reported if it's part of our
application's code.
 - Fixes #350
2017-06-21 17:50:29 -03:00
878f73158a [java] Allow try-with-resources to be empty
* Fixes #432
2017-06-21 17:20:11 -03:00
cc4294b399 [java] Simplify handling of SLF4J log arguments
- Fixes #365
2017-06-21 17:04:41 -03:00
b1d903bb2f Made metrics final 2017-06-21 18:57:00 +02:00
d2ede5784d Moved ResultOption handling to ClassStats 2017-06-20 16:20:45 +02:00
27f174969d Moved ResultOption handling to OperationMetric 2017-06-20 15:41:39 +02:00
f6bebb660e Fix doc 2017-06-20 14:02:06 +02:00
471c31e16d Implemented metrics capability handling 2017-06-20 13:47:41 +02:00
851c63433a Fix checkstyle violations 2017-06-20 12:50:35 +02:00
0d9f287de0 Revert changes to the AST (getParametermap) 2017-06-20 12:49:48 +02:00
00b7e4f326 Documentation 2017-06-20 12:10:20 +02:00
86ccccb872 Changed ruleset description 2017-06-20 00:42:12 +02:00
70d136ecf0 Created the refactored CyclomaticComplexity rule + tests 2017-06-19 19:41:20 +02:00
2f0e12da6c [java] Fix false positive in UnusedImport
- When referencing static inner members of imports, false positives
would be reported.
 - Fixes #348
2017-06-19 11:07:12 -03:00
273c01a808 Added ResultOption 2017-06-19 14:41:29 +02:00
5f1f0e74f6 Better getter & setter detection + positive examples 2017-06-18 23:38:31 +02:00
eb9b73e359 Added getParameterMap 2017-06-18 23:10:37 +02:00
6a6a798240 Documentation 2017-06-18 16:31:31 +02:00
4b3ee62abe Refactored CycloMetric according to #445 2017-06-18 15:57:07 +02:00
ae7c21b326 Refactored NcssMethodCountRule to use metrics 2017-06-18 00:01:55 +02:00
4f517f98fb Refactored NcssMethodCountRule 2017-06-17 13:15:55 +02:00
edb3e42349 Moved keys out 2017-06-17 13:14:09 +02:00
8f6d023685 Merge branch 'master' into metrics 2017-06-16 19:14:59 +02:00
6349ef27ab Pull corrections 2017-06-16 19:11:05 +02:00
135db3f4ce Merge branch 'metrics' of https://github.com/oowekyala/pmd into pr-436 2017-06-16 17:31:20 +02:00
2eb06ada55 Corrections from review #436 2017-06-16 14:21:15 +02:00
e9248b4124 Merge branch 'metrics' of https://github.com/oowekyala/pmd into pr-436 2017-06-16 09:47:26 +02:00
6c7ec75339 Java, typeres: optimize visit(ASTName) by skipping package and import declarations 2017-06-15 00:44:23 +02:00
52777e84e1 NCSS + LOC 2017-06-15 00:00:08 +02:00
f57d05d2b3 Merge branch 'pr-423' 2017-06-14 17:41:52 -03:00
41ed666d48 Java, typeres: add field visibility test, fix tests 2017-06-14 18:11:20 +02:00
2291dd2a38 Java, typeres: cleanup non-generic field tests 2017-06-14 14:56:01 +02:00
ddba34b9b7 Merge branch 'metrics' into metrics-cyclo 2017-06-14 12:28:12 +02:00
03033bd1fa Simple options, without generics 2017-06-14 12:26:40 +02:00
d53c0c2fe6 Merge branch 'pr-435' 2017-06-12 19:21:05 -03:00
435373faf7 Prefer multicatch for brevity 2017-06-12 19:11:15 -03:00
38447ca3ee PR18522: [java] Fixed false positive for PreserveStackTraceRule when using builder pattern. 2017-06-12 19:00:15 -03:00
0553073208 Merge branch 'pr-426' 2017-06-12 18:11:09 -03:00
7c3e96e02d Update message and description for UnnecessaryFinalModifier 2017-06-12 18:08:26 -03:00
04f72c1509 Added nested class test case 2017-06-12 20:54:58 +02:00
f9095f4480 Use stack in MetricsVisitor 2017-06-12 20:50:14 +02:00
2df67c5092 Checkstyle passes but the XML schema does not know metrics yet 2017-06-12 02:29:59 +02:00
310ed26053 Implemented CYCLO metrics 2017-06-12 02:12:53 +02:00
8e495cb5e1 Checkstyle fixes 2017-06-11 16:41:07 +02:00