oowekyala
2b56f54824
Cleaned up abstract metric
2017-06-30 13:32:38 +02:00
Juan Martín Sotuyo Dodero
deaa47ebb0
Fix anonymous classes directly from interfaces
...
- Fix the failing scenarios such as new Comaprator<String>() {...
2017-06-30 00:52:13 -03:00
Juan Martín Sotuyo Dodero
10aab46ba6
Better comments for edge cases
2017-06-29 21:19:43 -03:00
Juan Martín Sotuyo Dodero
08e8dbc08a
Checkstyle fixes
2017-06-29 20:47:26 -03:00
Juan Martín Sotuyo Dodero
b6482bb33b
Fixes #477
...
- Allow for references to classes not in the classpath
2017-06-29 20:36:30 -03:00
Juan Martín Sotuyo Dodero
3bd69b15f1
Rework type resolution
...
- JavaTypeDefinition now lazily resolves generics, meaning less
overhead and avoiding access order problems (ie: class Foo extends <A
extends B, B>). These means you can no longer request the generics list
all at once... but you probably shouldn't anyway
- I took the chance to move most type resolution code dealing with
Java's Type to the JavaTypeDefinition. This makes things a little
clearer and tidier
- There are some minor API changes, but since 5.8.0 is recently out I
doubt these have any impact. Plus, there was no easy way to just patch
away the open issues in the old greedy algorithm
2017-06-29 20:16:23 -03:00
Andreas Dangel
6657d741ab
Merge branch 'master' of https://github.com/WinterGrascph/pmd into issue-471
2017-06-28 21:06:53 +02:00
Andreas Dangel
11e973bf8f
Set version to 5.8.1-SNAPSHOT
2017-06-28 20:59:29 +02:00
oowekyala
b103d8f011
Specialised BasicPropertyDescriptorFactory
2017-06-28 17:48:11 +02:00
oowekyala
40282e77ae
Added NcssCountRule
2017-06-27 09:33:19 +02:00
oowekyala
bc8637d23e
Use ParameterizedMetricKeys again
2017-06-27 08:01:50 +02:00
oowekyala
fbf72de7ca
Rearranged code
2017-06-27 07:02:16 +02:00
oowekyala
d5f69e5f81
Simplified getter and setter detection
2017-06-27 07:01:32 +02:00
oowekyala
a4af2220ec
Merge branch 'master' of https://github.com/pmd/pmd into metrics
2017-06-27 05:58:14 +02:00
Bendegúz Nagy
39b3f62d33
Java, typeres: fix error with raw types
...
Issue was with determining the upper bounds of raw types when they had type parameters
with circular references, example: GenericClass<E extends Foo<E>>
2017-06-27 03:50:53 +02:00
Juan Martín Sotuyo Dodero
3c6eed61fc
[java] Detect more unnecessary finals
...
- Mark unnecessary finals in anonymous class methods.
- Mark unnecessary finals in enum instance methods.
- Fixes #412
2017-06-26 15:03:23 -03:00
Juan Martín Sotuyo Dodero
80f901187a
Merge branch 'pr-379'
2017-06-26 14:11:35 -03:00
Juan Martín Sotuyo Dodero
df80e52788
Merge branch 'pr-420'
2017-06-26 13:04:53 -03:00
Andreas Dangel
7f1292b212
Update version to 6.0.0-SNAPSHOT
2017-06-24 22:29:36 +02:00
Andreas Dangel
f3b9231b69
[maven-release-plugin] prepare for next development iteration
2017-06-24 22:26:42 +02:00
Andreas Dangel
6dd0bc8bfd
[maven-release-plugin] prepare release pmd_releases/5.8.0
2017-06-24 22:26:34 +02:00
oowekyala
2346176fe5
Added tests for LOC
2017-06-24 22:25:30 +02:00
oowekyala
3ecc9be86f
Added tests for WMC
2017-06-24 22:09:00 +02:00
oowekyala
ccb375d126
Merge branch 'master' of https://github.com/pmd/pmd into metrics
2017-06-24 22:01:31 +02:00
Juan Martín Sotuyo Dodero
8b27fe0bd7
Merge branch 'pr-444'
2017-06-24 15:43:59 -03:00
Juan Martín Sotuyo Dodero
a0f8a106bd
Add TODO for future self
2017-06-24 15:31:48 -03:00
oowekyala
db2fd2f3a5
Consider annotation types
2017-06-24 18:54:53 +02:00
oowekyala
217b65ba5e
Refactored CyclomaticComplexityRule into a MetricsRule
2017-06-24 18:09:32 +02:00
oowekyala
8e005f95a8
Deleted ParameterizedMetricKey
2017-06-24 17:32:51 +02:00
Andreas Dangel
556d845a34
Merge branch 'pr-466'
2017-06-24 11:08:26 +02:00
Andreas Dangel
0289fef501
Deprecate the three rules *CyclomaticComplexity (java-codesize)
...
Refs #445
2017-06-24 10:59:05 +02:00
Andreas Dangel
baf22b432b
Merge branch 'metrics' of https://github.com/oowekyala/pmd into pr-451
2017-06-24 10:36:35 +02:00
oowekyala
df68816b6d
Signatures equals now checks identity
2017-06-24 00:12:43 +02:00
oowekyala
6ab9088759
Tests for NCSS + reduced visitor adapter
2017-06-23 23:55:16 +02:00
oowekyala
4ec86558a7
Added support for enums
2017-06-23 23:28:11 +02:00
Juan Martín Sotuyo Dodero
556cc6da90
[java] Fix NPE in JUnitTestsShouldIncludeAssertRule
...
- Don't assume all anotations are marker annotations
- Fixes #465
2017-06-23 15:45:58 -03:00
Bendegúz Nagy
f1d315ff4c
Java, typeres: Fix NPE with lambdas
2017-06-23 20:34:45 +02:00
oowekyala
b302a9a6ba
Added test for standard CYCLO
2017-06-23 18:25:49 +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
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
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
878f73158a
[java] Allow try-with-resources to be empty
...
* Fixes #432
2017-06-21 17:20:11 -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
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