10527 Commits

Author SHA1 Message Date
Andreas Dangel
baf22b432b Merge branch 'metrics' of https://github.com/oowekyala/pmd into pr-451 2017-06-24 10:36:35 +02:00
oowekyala
5304b7e2e6 Corrections for review #451 2017-06-23 15:28:58 +02:00
Andreas Dangel
d9d820cc92 Merge branch 'pr-458' 2017-06-23 15:08:04 +02:00
Andreas Dangel
abe0c2eab7 Merge branch 'pr-455' 2017-06-23 15:00:01 +02:00
Andreas Dangel
92f10342c7 Merge branch 'pr-454' 2017-06-23 14:56:21 +02:00
Andreas Dangel
8f8e7282e8 Merge branch 'pr-453' 2017-06-23 14:53:27 +02:00
Andreas Dangel
52dbeedd3a Merge branch 'pr-452' 2017-06-23 14:44:25 +02:00
Juan Martín Sotuyo Dodero
dac5c8b04a Update changelog, refs #413 2017-06-21 23:59:51 -03:00
Juan Martín Sotuyo Dodero
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
Juan Martín Sotuyo Dodero
52814a9ba9 Update changelog, refs #350 2017-06-21 17:53:31 -03:00
Juan Martín Sotuyo Dodero
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
Juan Martín Sotuyo Dodero
7ffa76e3e2 Update changelog, refs #432 2017-06-21 17:27:26 -03:00
Juan Martín Sotuyo Dodero
878f73158a [java] Allow try-with-resources to be empty
* Fixes #432
2017-06-21 17:20:11 -03:00
Juan Martín Sotuyo Dodero
60359ad1cc Update changelog, refs #365 2017-06-21 17:07:26 -03:00
Juan Martín Sotuyo Dodero
cc4294b399 [java] Simplify handling of SLF4J log arguments
- Fixes #365
2017-06-21 17:04:41 -03:00
Juan Martín Sotuyo Dodero
263a7d57ab Update changelog, refs #311 2017-06-21 16:46:38 -03:00
Juan Martín Sotuyo Dodero
e1f33504b9 [jsp] Update grammar to accept boolean attributes 2017-06-21 16:45:32 -03:00
oowekyala
b1d903bb2f Made metrics final 2017-06-21 18:57:00 +02:00
oowekyala
d2ede5784d Moved ResultOption handling to ClassStats 2017-06-20 16:20:45 +02:00
oowekyala
27f174969d Moved ResultOption handling to OperationMetric 2017-06-20 15:41:39 +02:00
oowekyala
f6bebb660e Fix doc 2017-06-20 14:02:06 +02:00
oowekyala
471c31e16d Implemented metrics capability handling 2017-06-20 13:47:41 +02:00
oowekyala
851c63433a Fix checkstyle violations 2017-06-20 12:50:35 +02:00
oowekyala
0d9f287de0 Revert changes to the AST (getParametermap) 2017-06-20 12:49:48 +02:00
oowekyala
00b7e4f326 Documentation 2017-06-20 12:10:20 +02:00
oowekyala
86ccccb872 Changed ruleset description 2017-06-20 00:42:12 +02:00
Andreas Dangel
bede603fb3 Merge branch 'pr-449' 2017-06-19 21:56:09 +02:00
oowekyala
70d136ecf0 Created the refactored CyclomaticComplexity rule + tests 2017-06-19 19:41:20 +02:00
Juan Martín Sotuyo Dodero
6ed0336971 Update changelog, refs #449 2017-06-19 11:19:52 -03:00
Juan Martín Sotuyo Dodero
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
oowekyala
273c01a808 Added ResultOption 2017-06-19 14:41:29 +02:00
oowekyala
5f1f0e74f6 Better getter & setter detection + positive examples 2017-06-18 23:38:31 +02:00
oowekyala
eb9b73e359 Added getParameterMap 2017-06-18 23:10:37 +02:00
oowekyala
6a6a798240 Documentation 2017-06-18 16:31:31 +02:00
oowekyala
4b3ee62abe Refactored CycloMetric according to #445 2017-06-18 15:57:07 +02:00
oowekyala
a374fd308b Merge branch 'master' of https://github.com/pmd/pmd into metrics 2017-06-18 00:06:17 +02:00
oowekyala
ae7c21b326 Refactored NcssMethodCountRule to use metrics 2017-06-18 00:01:55 +02:00
Juan Martín Sotuyo Dodero
5aa72289ce Merge branch 'pr-447' 2017-06-17 15:22:01 -03:00
Juan Martín Sotuyo Dodero
04831b20e0 Merge branch 'pr-446' 2017-06-17 15:14:44 -03:00
Andreas Dangel
c8a0bc9b13 cpd: fix line number issue, add tests for apex cpd
Fixes #427
2017-06-17 19:42:07 +02:00
oowekyala
4f517f98fb Refactored NcssMethodCountRule 2017-06-17 13:15:55 +02:00
oowekyala
edb3e42349 Moved keys out 2017-06-17 13:14:09 +02:00
Andreas Dangel
0f9a4a97c0 cpp: skip line continuation character in grammar
Fixes #431

Note: the tokens separate by such continuation characters are not
merged and appear as two separate tokens, which could lead to false
negatives in duplication detection.

ContinuationReader is deleted, since skipping characters in the stream
makes it difficult to provide accurate line numbers/positions.
2017-06-17 12:42:13 +02:00
Andreas Dangel
2c861a2f6c cpp: add missing "finally" token, move ID Token to beginning of file 2017-06-17 12:27:47 +02:00
Juan Martín Sotuyo Dodero
5a8054cfcc Merge branch 'pr-430' 2017-06-16 20:40:02 -03:00
Andreas Dangel
afbb3eb600 Enhance ruleset schema validation test
refs #440
2017-06-16 21:10:57 +02:00
oowekyala
8f6d023685 Merge branch 'master' into metrics 2017-06-16 19:14:59 +02:00
oowekyala
6349ef27ab Pull corrections 2017-06-16 19:11:05 +02:00
Andreas Dangel
ff9d1b47d4 Add simple test to check ruleset schema
refs #440
2017-06-16 19:03:41 +02:00
Andreas Dangel
7f7afc66e9 Merge branch 'pr-440' 2017-06-16 17:44:27 +02:00