Andreas Dangel
59b360a60a
[maven-release-plugin] prepare release pmd_releases/6.2.0
2018-03-26 09:23:14 +02:00
Andreas Dangel
a9dfd6e218
Prepare pmd release 6.2.0
2018-03-26 09:17:36 +02:00
Andreas Dangel
3bcecddbb0
Merge branch 'pr-986'
2018-03-26 09:03:24 +02:00
Juan Martín Sotuyo Dodero
7ef2168eae
Merge branch 'pr-958'
2018-03-25 23:39:14 -03:00
Juan Martín Sotuyo Dodero
a895d9d3d9
Update changelog, refs #958
2018-03-25 23:37:37 -03:00
BBG
9d9fa22c31
Issue #956 : fixed comments
2018-03-25 14:06:43 +08:00
Clément Fournier
ea700d84ec
Fix designer
2018-03-24 23:48:46 +01:00
Travis CI (pmd-bot)
3f1c441a5c
Update documentation
2018-03-24 21:31:12 +00:00
Clément Fournier
dbcaf663f4
Fix CompareObjectsWithEquals
2018-03-24 22:17:59 +01:00
Andreas Dangel
14d474f333
Merge branch 'pr-991'
...
Closes #974
2018-03-24 22:13:37 +01:00
Andreas Dangel
8dfef6c165
Update changelog, refs #974
2018-03-24 22:13:27 +01:00
Clément Fournier
ee85254bd0
Merge branch 'master'
2018-03-24 19:05:13 +01:00
Clément Fournier
a193af1d4a
Use auxclasspath ClassLoader to resolve type qualified names
2018-03-24 19:03:29 +01:00
BBG
f0ed81751a
Issue #956 : add AbstractJavaAnnotatableNode class
2018-03-24 18:39:22 +08:00
BBG
f86ca456a0
Issue #956 : fixed comments
2018-03-24 18:39:22 +08:00
BBG
7616f8b7a8
Issue #956 : Refactor ignoredAnnotationsDescripror in AbstractIgnoredAnnotRule class
2018-03-24 18:39:22 +08:00
BBG
e654c265a9
Issue #956 : fixed comment
2018-03-24 18:39:21 +08:00
BBG
6888806e12
Fixed issue956
2018-03-24 18:39:21 +08:00
Juan Martín Sotuyo Dodero
cec32a8508
Merge branch 'pr-996'
2018-03-23 11:23:31 -03:00
Andreas Dangel
579914fb7e
Delete old dogfood rulesets
2018-03-23 10:33:41 +01:00
Andreas Dangel
f9ef2c8c4b
Remove maven profile jdk8-modules and enable all modules by default
...
We are now enforcing java9 for building, so these modules are anyway
enabled always
2018-03-23 10:23:56 +01:00
Andreas Dangel
f335e83043
Cleanup pom.xml files
2018-03-23 10:21:16 +01:00
Andreas Dangel
6cd084b7ce
Use release build-tools 1.1.0: uses latest dogfood ruleset
...
Closes #361
2018-03-23 10:12:38 +01:00
Juan Martín Sotuyo Dodero
f00a085087
Merge branch 'pr-987'
2018-03-22 11:51:14 -03:00
Clément Fournier
5ebde0a0e9
Update changelog, refs #993
...
Closes #992
2018-03-22 15:05:20 +01:00
Clément Fournier
d4c5bd011c
Merge branch 'pr-993'
2018-03-22 15:03:40 +01:00
Clément Fournier
89db6fe71d
Structure improvement
2018-03-22 15:02:53 +01:00
Clément Fournier
d699c277ea
Update release notes, refs #989
...
Closes #978
2018-03-22 14:41:13 +01:00
Clément Fournier
b969974653
Merge branch 'pr-989'
2018-03-22 14:40:40 +01:00
Clément Fournier
dba594353f
Fix link and grammar
2018-03-22 14:35:44 +01:00
Andreas Dangel
f2c8b5e2e8
Make the project be importable by IntelliJ IDEA
...
See https://youtrack.jetbrains.com/issue/IDEA-188690
2018-03-21 21:54:31 +01:00
Bolarinwa Saheed
08f1fea25b
Update writing_documentation.md to fix Issue #992
2018-03-21 19:22:15 +01:00
Travis CI (pmd-bot)
d865fb4627
Update documentation
2018-03-21 16:11:04 +00:00
Clément Fournier
e6e07d22b4
Merge branch 'pr-990'
2018-03-21 16:59:48 +01:00
Clément Fournier
da8969ecb7
Update release notes, refs #990
...
Closes #832
2018-03-21 16:55:58 +01:00
Clément Fournier
6c9c229516
Remove one example
...
That example would have been flagged by the rule
2018-03-21 16:52:13 +01:00
Bolarinwa Saheed
3e24180da1
Moved all the description inside a single CDATA tag
2018-03-21 14:17:27 +01:00
Travis CI (pmd-bot)
482cb01d7c
Update documentation
2018-03-20 22:56:50 +00:00
Clément Fournier
b52bd878f6
Update the description of MissingOverride
2018-03-20 23:43:15 +01:00
Bolarinwa Saheed
8f54d451d9
Extended the documentation with some markdown inline
2018-03-20 21:58:38 +01:00
Bolarinwa Saheed
87aafcc8ef
Added link to Writing Documentation (Dev Docs)
2018-03-20 20:25:43 +01:00
Bolarinwa Saheed
e04f7c2d4f
Update design.xml - AvoidThrowingNullPointerException to close Issue #832
2018-03-20 19:54:19 +01:00
Bolarinwa Saheed
d3aa3df15e
Revert "Doc on AvoidThrowingNullPointerException updated to close Issue #832 "
...
This reverts commit e27dad1862 .
2018-03-20 17:58:17 +01:00
Clément Fournier
603a306370
Deprecate former rules, update changelog
2018-03-20 17:47:09 +01:00
Clément Fournier
67acede81f
Report multiple blocks under case label
2018-03-20 17:47:09 +01:00
Clément Fournier
b4b52e037b
Revert "Refine case statement treatment"
...
This reverts commit 580560c28c56cb57ca5350f9035856b1362400ec.
2018-03-20 17:47:09 +01:00
Clément Fournier
1ae8b1c8e6
Refine case statement treatment
...
Every dangling unbraced statement will be flagged individually
This complexifies the expression, and still ignores some cases, eg:
case 3:
{
x++;
}
{
y++;
break;
}
in which the label should be flagged anyway
2018-03-20 17:47:09 +01:00
Clément Fournier
2711d88e3c
Add support for case stmts
...
A case label is flagged if one of its subordinate
statements is not braced. The message could be more
explicit, eg, if we flagged the unbraced statement
instead of the label in case part of the label's
statements are braced
2018-03-20 17:46:54 +01:00
Clément Fournier
ac3e59a4b7
Add new rule ControlStatementBraces
2018-03-20 17:45:44 +01:00
Bolarinwa Saheed
e27dad1862
Doc on AvoidThrowingNullPointerException updated to close Issue #832
2018-03-20 15:45:39 +01:00
Bolarinwa Saheed
55c34feb97
Update Contibute.md to close Issue #978
2018-03-20 14:09:17 +01:00
Clément Fournier
045308948a
Fix pmd-java8 tests
2018-03-20 14:07:33 +01:00
Clément Fournier
73f6b2f6cf
Fix compilation + checkstyle + pmd
2018-03-20 13:46:45 +01:00
Clément Fournier
9ff4636194
Add getPrintableName to MethodLikeKind
2018-03-19 15:41:56 +01:00
Clément Fournier
0ebd2ba35c
Hide ImmutableList, exposing List instead
2018-03-19 15:23:44 +01:00
Clément Fournier
0f61f2576d
Move qname classes into another package
2018-03-19 14:25:00 +01:00
Clément Fournier
26e97032ef
Minor changes
2018-03-19 14:25:00 +01:00
Clément Fournier
4154a5931e
Add qname resolution step to the designer
2018-03-19 14:25:00 +01:00
Clément Fournier
ccc1443373
Use JavaQualifiedName to resolve anonymous classes types in ClassTypeResolver
...
Success! We still need to figure out a straightforward bridge between JavaTypeDefinition and qualified names
2018-03-19 14:25:00 +01:00
Clément Fournier
eb8908796c
Allow TypeQualifiedNames to resolve their own type lazily
...
This could allow us to share the JavaQualifiedName implementations
with type resolution
2018-03-19 14:25:00 +01:00
Clément Fournier
1f1637bafd
Split JavaQualifiedName into type and operation specific subclasses
2018-03-19 14:24:56 +01:00
Clément Fournier
3c8fcfa6c2
Cleanup QualifiedNameFactory
2018-03-19 14:05:51 +01:00
Clément Fournier
0bba8a2249
Resolve all MethodLike qnames
2018-03-19 14:05:51 +01:00
Clément Fournier
134d529442
Consider anonymous classes
...
* ASTAllocationExpression and ASTEnumConstant implement JavaQualifiableNode
* It's not satisfying yet, too much code duplication. They should be
considered by the metrics framework. A good solution would be to add a
new node (see #905 )
2018-03-19 14:05:51 +01:00
Clément Fournier
06e38128c4
Wire the visitor into SourceCodeProcessor
...
We need a way to configure which visitors are run on nodes
obtained from ParserTstUtil
2018-03-19 14:05:51 +01:00
Clément Fournier
ba3611f241
Add visitor to populate qualified names
...
* Currently populates ASTAnyTypeDeclarations with their qname
* Package tails are shared
2018-03-19 14:05:51 +01:00
Juan Martín Sotuyo Dodero
36ac7ddd4c
Merge branch 'pr-975'
2018-03-19 01:39:06 -03:00
Juan Martín Sotuyo Dodero
4254fb3f15
Merge branch 'pr-895'
2018-03-19 01:33:07 -03:00
Juan Martín Sotuyo Dodero
1301a3821b
Update changelog, refs #895
2018-03-19 01:32:52 -03:00
Travis CI (pmd-bot)
5d2ed89dc1
Update documentation
2018-03-18 15:43:17 +00:00
Juan Martín Sotuyo Dodero
acd365ad98
Add new rule to release ruleset
2018-03-18 12:32:04 -03:00
Juan Martín Sotuyo Dodero
2a6a3c5832
Merge branch 'pr-984'
2018-03-18 12:28:38 -03:00
Juan Martín Sotuyo Dodero
0f63ac9131
Update changelog, refs #984
2018-03-18 12:28:19 -03:00
Kirk Clemens
1bd44a3b52
issue983 Update rule to use rule chain pattern
2018-03-17 22:55:04 -05:00
Kirk Clemens
844ab0e6d4
issue983 Add a new test case for an annotation with a single non value element
2018-03-17 19:38:40 -05:00
Kirk Clemens
313da24a71
issue983 Remove pom changes checked in by mistake
2018-03-17 19:37:07 -05:00
Kirk Clemens
28f292f736
issue983 Add new UnnecessaryAnnotationValueElement rule
2018-03-17 19:33:49 -05:00
Clément Fournier
c967e63e6a
Merge branch 'master', fix merge conflicts
2018-03-13 16:15:44 +01:00
Clément Fournier
58f76f054e
Use javadoc @deprecated for ASTConstructorDeclaration.getParameters
2018-03-13 16:13:39 +01:00
Clément Fournier
92da9faee4
Fix pmd warnings
2018-03-13 00:33:37 +01:00
Andreas Dangel
b6c84e2ba3
[java] Remove new method getFormalParameters to preserve API compatibility
...
Refs #912
Refs #881
2018-03-12 20:38:38 +01:00
Clément Fournier
9eb79af16b
Update docs
2018-03-12 01:01:58 +01:00
Clément Fournier
e643da230d
Merge branch 'master'
2018-03-12 00:36:56 +01:00
Travis CI (pmd-bot)
f25e35f42d
Update documentation
2018-03-11 09:50:28 +00:00
Andreas Dangel
d27273581f
Fix PMD / Checkstyle issues
2018-03-11 10:32:37 +01:00
Andreas Dangel
f4441ce938
Merge branch 'pr-912'
2018-03-11 10:15:28 +01:00
Andreas Dangel
96446f384b
Update release notes, new rule MissingOverride, refs #912
2018-03-11 10:07:51 +01:00
Andreas Dangel
4514e6fb19
Update versions for new classes
2018-03-11 10:07:11 +01:00
Juan Martín Sotuyo Dodero
451815bf0a
Merge branch 'pr-954'
2018-03-11 02:23:26 -03:00
Juan Martín Sotuyo Dodero
1577931fe3
Update changelog
2018-03-11 02:21:59 -03:00
Juan Martín Sotuyo Dodero
5ead2eda16
Use TemporaryFolder instead
2018-03-11 02:16:01 -03:00
Juan Martín Sotuyo Dodero
53e11481dc
Merge branch 'pr-952'
2018-03-11 01:41:22 -03:00
Juan Martín Sotuyo Dodero
75b74afe8d
Update changelog, refs #952
2018-03-11 01:40:28 -03:00
Juan Martín Sotuyo Dodero
136d147210
Use positive checks
2018-03-11 01:38:29 -03:00
Juan Martín Sotuyo Dodero
309a2a4924
Merge branch 'pr-951'
2018-03-11 01:28:54 -03:00
Juan Martín Sotuyo Dodero
8f5b2a04b8
Update changelog, refs #951
2018-03-11 01:26:19 -03:00
Clément Fournier
6943803ccb
Merge branch 'pr-908'
2018-03-11 01:59:55 +01:00
Juan Martín Sotuyo Dodero
df2677457c
Use relative links in docs
2018-03-10 18:23:19 -03:00
Juan Martín Sotuyo Dodero
161d7be37e
Update broken links in doc
2018-03-10 17:30:19 -03:00
Juan Martín Sotuyo Dodero
05ab784d0b
Merge branch 'pr-969'
2018-03-10 17:16:51 -03:00
Juan Martín Sotuyo Dodero
20cddf5079
Update changelog, refs #969
2018-03-10 17:16:12 -03:00
Juan Martín Sotuyo Dodero
185fd15953
Refactor lombok check into separate method
2018-03-10 17:13:25 -03:00
Andreas Dangel
d6ccc58f20
Corrections from PR review ( #908 ), make the metrics visitors extendable again
2018-03-10 20:52:11 +01:00
Juan Martín Sotuyo Dodero
5ba5082ae2
Merge branch 'pr-965'
2018-03-10 16:49:13 -03:00
Juan Martín Sotuyo Dodero
7a0a31b149
Update changelog, refs #963
2018-03-10 16:47:56 -03:00
Clément Fournier
9766e632a9
Remove breaking API changes of JavaQualifiedName
...
Checked with japicmp
2018-03-10 19:20:02 +01:00
Clément Fournier
2fd5d7c41b
Remove breaking binary changes with metrics framework
...
Spotted using japicmp
2018-03-10 18:49:48 +01:00
Clément Fournier
110c8db6e0
Update release notes, refs #970
2018-03-10 17:13:35 +01:00
Clément Fournier
c88641fa5c
Merge branch 'pr-970'
2018-03-10 17:11:27 +01:00
epidemia
87f2403ec3
Remove unused import
2018-03-10 16:43:59 +03:00
epidemia
6e2b75e245
Fixed inefficient use of keySet iterator instead of entrySet iterator for pdm-java
2018-03-10 16:35:43 +03:00
epidemia
219b80a13b
Fixed inefficient use of keySet iterator instead of entrySet iterator for pdm-java
2018-03-10 16:03:19 +03:00
Clément Fournier
e592d4baf2
Update release notes, refs #967
2018-03-10 13:50:51 +01:00
Clément Fournier
75ecf7b66f
Merge branch 'pr-967'
2018-03-10 13:47:43 +01:00
Clément Fournier
4053e548bf
Fix link
2018-03-10 13:47:31 +01:00
Andreas Dangel
8bd1e3b486
Fix PMD dogfood: UncommentedEmptyMethodBody, SimplifyBooleanReturns,
...
UnnecessaryLocalBeforeReturn, OptimizableToArrayCall,
ClassWithOnlyPrivateConstructorsShouldBeFinal,
UseLocaleWithCaseConversions, NonStaticInitializer, UseCollectionIsEmpty
2018-03-10 12:04:50 +01:00
Kirk Clemens
d0ba8998e7
Minor code cleanup
2018-03-09 23:22:49 -06:00
Kirk Clemens
d94ff95db8
Fix checkstyle issues
2018-03-09 23:02:29 -06:00
Kirk Clemens
9938a4491c
Issue 968 Add logic to handle lombok private constructors with utility classes
2018-03-09 22:53:14 -06:00
epidemia
4c76a7f695
Issue 959: fixed broken link to XPath Rule Tutorial
2018-03-09 18:55:52 +03:00
Andreas Dangel
5b93b14373
Fix PMD dogfood: AssignmentInOperand, LooseCoupling
2018-03-09 16:28:14 +01:00
Stephen
264403b354
Make Varargs trigger ArrayIsStoredDirectly
...
fixes #963
2018-03-09 07:05:13 -08:00
Andreas Dangel
c85abd258a
Fix PMD dogfood: AvoidPrefixingMethodParameters, UnnecessaryConstructor,
...
AvoidUsingShortType
2018-03-09 16:04:15 +01:00
Andreas Dangel
9fb3206d9e
PMD dogfood: Upgrade PMD to 6.1.0
2018-03-09 13:00:52 +01:00
Andreas Dangel
cf88117820
Fix PMD dogfood: UnusedFormalParameter, UselessParentheses and UselessOverridingMethod
2018-03-09 12:52:20 +01:00
Andreas Dangel
b8a34eda97
TypeHelper: Remove misleading warning of incomplete auxclasspath
...
* Failing to resolve a class in that situation might happen, since
we use it to probe types
* Simplify AbstractJUnitRule
2018-03-09 11:22:15 +01:00
Andreas Dangel
f452adbf6a
Fix PMD dogfood: SimplifiedTernary
2018-03-09 10:26:23 +01:00
Andreas Dangel
5972c32ecf
Fix checkstyle
2018-03-09 10:01:00 +01:00
Andreas Dangel
fb4d564e8b
Fix PMD dogfood: AvoidBranchingStatementAsLastInLoop
2018-03-09 09:58:04 +01:00
Andreas Dangel
f3a358c419
Fix PMD dogfood: EmptyCatchBlock
2018-03-09 09:58:04 +01:00
Andreas Dangel
7aaa9966c2
Fix PMD dogfood: AvoidCatchingThrowable
...
Refs #361
2018-03-09 09:57:15 +01:00
Andreas Dangel
4ace14899c
Fix PMD dogfood: UnusedPrivateField
...
Refs #361
2018-03-09 09:57:15 +01:00
Andreas Dangel
e9abdf7a92
Update pmd configuration to use dogfood and fail build on violations
...
Refs #361
2018-03-09 09:53:15 +01:00
Clément Fournier
ca4500b40b
Delete multi property, add tests
2018-03-06 23:42:41 +01:00
Clément Fournier
9fcf146241
Add RegexMultiProperty
2018-03-06 23:41:32 +01:00
Clément Fournier
d489698157
Add RegexProperty
2018-03-06 23:40:56 +01:00
Clément Fournier
f60a64adb8
checkstyle
2018-03-05 22:25:26 +01:00
Clément Fournier
3d5a0aa4c6
Cleanup
2018-03-05 22:14:57 +01:00
Clément Fournier
f8864e9060
Make real Ant test cases
2018-03-05 21:58:05 +01:00
Clément Fournier
f74a6b3887
Update release notes
2018-03-05 20:56:48 +01:00
Clément Fournier
5d590a259e
Add basic Ant test cases, correct behaviour
2018-03-05 20:52:39 +01:00
Clément Fournier
07a9859ce3
Update Ant task and user docs
2018-03-05 17:15:08 +01:00
Clément Fournier
ff1c90d753
Some corrections for PR #954
2018-03-05 16:47:34 +01:00
Clément Fournier
0967d50275
Merge branch 'pr-950'
2018-03-05 14:42:21 +01:00
Clément Fournier
e2c6f1e467
Add '-no-cache' CLI switch, to disable incremental analysis
...
- The switch discards the argument provided to '-cache' if any
- Using the switch disables the suggestion to use incremental analysis
- Rule tests use that option to avoid the warning, which clutters build logs
- Refs #946
2018-03-05 13:47:48 +01:00
BBG
4e2aee3da3
Issue #839 : SignatureDeclareThrowsException's IgnoreJUnitCompletely property not honored for constructors
2018-03-04 22:03:58 +08:00
BBG
92031b1792
Add ignoredAnnotations ptoperty to unusedPrivateMethod rule
2018-03-04 21:32:19 +08:00
Juan Martín Sotuyo Dodero
30afff46c6
[java] Avoid a NPE in Type Resolution
...
- If a class extends a class that references / extends a missing class,
it's possible for the `NoClassDefFoundError` to only rise once we call
`isAnonymousClass()` on the `Class`.
- For consistency with missing classes, we set the type to null.
- Logging such missing classes is still pending #194
2018-03-04 03:46:05 -03:00
Travis CI (pmd-bot)
dc4f6b180b
Update documentation
2018-03-04 00:22:50 +00:00
Clément Fournier
e43e7316a7
Merge branch pr-943
2018-03-04 01:06:45 +01:00
Clément Fournier
534d0b62f2
Update release notes, refs #943
...
Closes #907
2018-03-04 00:57:13 +01:00
Clément Fournier
c96358506b
Minor cleanups
2018-03-04 00:52:00 +01:00
Clément Fournier
ba8aeaf648
Use abstract class + interface for AnyTypeDeclaration hierarchy
...
Remove one breaking API change
2018-03-04 00:37:04 +01:00
Clément Fournier
c9cfb1f29f
Rename MethodLike to MethodLikeNode
2018-03-04 00:37:01 +01:00
Clément Fournier
0ef1955080
Use abstract class + interface for MethodLike hierarchy
...
Removes a breaking API change
2018-03-04 00:36:21 +01:00
Juan Martín Sotuyo Dodero
fdd399393d
Update changelog, refs #941
2018-03-03 17:08:07 -03:00
Juan Martín Sotuyo Dodero
0e4a793dd3
Merge branch 'pr-941'
2018-03-03 17:06:56 -03:00
Juan Martín Sotuyo Dodero
a802fafb29
Merge branch 'pr-948'
2018-03-03 16:02:45 -03:00
Juan Martín Sotuyo Dodero
1415d283bc
Merge branch 'pr-947'
2018-03-03 16:01:53 -03:00
BBG
8b279fac25
fixes #907
2018-03-03 22:01:21 +08:00
Andreas Dangel
65a5d3f835
[java] Migrate internal rulesets used in unit tests
...
Avoiding deprecation warnings
References #946
2018-03-03 11:53:22 +01:00
Andreas Dangel
5a5977b1ea
Update release notes, fixes #928
2018-03-02 20:34:34 +01:00
Andreas Dangel
d6508c1b28
Fix checkstyle
2018-03-02 20:26:36 +01:00
Andreas Dangel
c94b3790bf
Upgrade checkstyle, use pmd-build-tools 1.1.0-SNAPSHOT
2018-03-02 20:24:48 +01:00
Clément Fournier
57e050f8c5
Fix typo
2018-03-02 18:34:46 +01:00
reudismam
e1b954289a
Use char notation to represent a character to improve performance.
2018-02-26 19:40:40 -03:00
Juan Martín Sotuyo Dodero
c8cd8e1fa8
Changelog update, Add more details about changes in Rhino
2018-02-25 19:29:23 -03:00
Juan Martín Sotuyo Dodero
502e96e3a3
Merge branch 'pr-930'
2018-02-25 19:27:02 -03:00
Juan Martín Sotuyo Dodero
5bf8945f99
Merge branch 'pr-937'
2018-02-25 19:24:52 -03:00
Andreas Dangel
8947876dab
Update release script to follow documented release procedure
2018-02-25 12:05:56 +01:00
Andreas Dangel
67a9f84a9c
Fix release script
2018-02-25 10:04:45 +01:00
Andreas Dangel
b71857e02b
Prepare next development version
2018-02-25 10:00:22 +01:00
Andreas Dangel
098b0dcac0
[maven-release-plugin] prepare for next development iteration
2018-02-25 09:53:26 +01:00
Andreas Dangel
101b71a13e
[maven-release-plugin] prepare release pmd_releases/6.1.0
2018-02-25 09:53:19 +01:00
Andreas Dangel
17e991b662
Prepare pmd release 6.1.0
2018-02-25 09:45:42 +01:00
Andreas Dangel
84e388cdf2
Merge branch 'pr-801'
2018-02-24 22:42:20 +01:00
Andreas Dangel
6b4962e479
Update release notes, refs #801
2018-02-24 22:41:36 +01:00
Andreas Dangel
039e4157e8
Merge branch 'pr-931'
2018-02-24 21:40:02 +01:00
Andreas Dangel
3c280b8ef2
Use Files.move instead of File.renameTo
...
This prevents problems when building PMD under Windows
2018-02-24 20:40:38 +01:00
Andreas Dangel
8f6f8e9842
Corrections for PR #931
2018-02-22 08:54:29 +01:00
Andreas Dangel
cc08bd47cf
[java] UnusedImports false positive for static import
...
Fixes #925
2018-02-21 20:43:14 +01:00
Andreas Dangel
d619fd360d
[ecmascript] Update rhino to 1.7.7.2
...
Refs #699
2018-02-21 19:56:20 +01:00
Travis CI (pmd-bot)
bff93c53fb
Update documentation
2018-02-20 17:01:00 +00:00
Juan Martín Sotuyo Dodero
97d8893b43
Merge branch 'pr-927'
2018-02-20 13:47:14 -03:00
Juan Martín Sotuyo Dodero
906c162d04
Update changelog, refs #927
2018-02-20 13:46:43 -03:00
Andreas Dangel
09f871d92e
Merge branch 'pr-918', fixes #909
2018-02-20 08:36:59 +01:00
Andreas Dangel
25421ba340
Update release notes, refs #918 , refs #909
2018-02-20 08:35:49 +01:00
wata727
8127b3c8e3
Fix example of AbstractClassWithoutAnyMethod
2018-02-20 14:45:22 +09:00
Travis CI (pmd-bot)
23b25056f0
Update documentation
2018-02-20 04:51:36 +00:00
Juan Martín Sotuyo Dodero
e6bf9f031f
Merge branch 'pr-926'
2018-02-20 01:40:06 -03:00
Juan Martín Sotuyo Dodero
90095480b0
Merge branch 'pr-924'
2018-02-20 01:37:10 -03:00
Clément Fournier
a6d3c2baa1
Miscellaneous cleanups
2018-02-20 01:24:23 +01:00
Clément Fournier
1c991dd79e
Fix property test random crash
2018-02-20 01:24:02 +01:00
Clément Fournier
3257aeae4f
Corrections for PR #912
2018-02-20 00:34:15 +01:00
Akshat Bahety
e2f37d4d97
Indentation
...
changed to 8 spaces for qa plugin.
2018-02-20 04:20:55 +05:30
Andreas Dangel
acf6a31bed
[java] ConsecutiveLiteralAppends with types other than string
...
* Updated documentation to include also non-string literals
* Added additional test cases
* Fixes #541
2018-02-19 20:03:31 +01:00
Juan Martín Sotuyo Dodero
b6a8402dc7
Merge branch 'pr-923'
2018-02-18 20:22:21 -03:00
Andreas Dangel
73de6eb1f0
[ci] Use Java9 for building PMD
...
Fixes #854
2018-02-18 21:49:25 +01:00
Juan Martín Sotuyo Dodero
1c9a4fd31c
Merge branch 'pr-922'
2018-02-18 17:36:57 -03:00
Andreas Dangel
394948624f
Update release notes, fixes #853
2018-02-18 20:37:59 +01:00
Andreas Dangel
18c79a34f4
Fix deprecations
2018-02-18 20:25:42 +01:00
Andreas Dangel
2087dd9472
Fix integration test - scala is now active always
2018-02-18 20:24:04 +01:00
Andreas Dangel
9392239c45
scala update, part 2
...
* Update to new scala API
* remove comments support which was not used anyway
* Use scala-maven-plugin to generate javadoc
2018-02-18 20:23:32 +01:00
Andreas Dangel
74ae8d0d6e
Remove profile jdk9-disabled - scala is now active always
2018-02-18 19:07:37 +01:00
Andreas Dangel
fc21190bb7
scala update, part 1
2018-02-18 18:52:07 +01:00
Andreas Dangel
9c007afb57
Fixes #795
...
Merge branch 'pr-919'
2018-02-18 18:40:33 +01:00
Andreas Dangel
9fbaa835ab
Fix typo, add removal version for deprecated interfaces/classes
2018-02-18 18:40:25 +01:00
Andreas Dangel
7997e16f1b
Merge branch 'pr-920'
2018-02-18 18:35:22 +01:00
Andreas Dangel
aac36cb11e
Update release notes, refs #920
2018-02-18 18:35:12 +01:00
Juan Martín Sotuyo Dodero
32af9cabf2
[java] Update valid identifiers
...
- Newer Java versions have allowed for a lot more tokens in identifiers
2018-02-18 04:44:27 -03:00
Juan Martín Sotuyo Dodero
21d02f90af
Remove unused import
2018-02-18 04:37:44 -03:00
Juan Martín Sotuyo Dodero
6d1a8888a9
Update changelog, refs #795
2018-02-17 21:45:15 -03:00
Juan Martín Sotuyo Dodero
1c68248eee
Update tests
2018-02-17 21:39:59 -03:00
Juan Martín Sotuyo Dodero
46aa1e2f2a
Remove usages of deprecated classes
2018-02-17 21:39:10 -03:00
Juan Martín Sotuyo Dodero
08560add78
Deprecate FileReporter
2018-02-17 21:38:39 -03:00
Juan Martín Sotuyo Dodero
33626e7a2d
Implement new renderer for CPD
...
- Write directly to writers, don't handle strings
2018-02-17 21:37:51 -03:00
Juan Martín Sotuyo Dodero
78890afe13
Merge branch 'pr-884'
2018-02-17 17:32:52 -03:00
Juan Martín Sotuyo Dodero
cdb28f72ff
Update changelog
2018-02-17 17:32:09 -03:00
Juan Martín Sotuyo Dodero
0253a0c615
Merge branch 'pr-916'
2018-02-17 17:25:54 -03:00
Travis CI (pmd-bot)
94bb23d22c
Update documentation
2018-02-17 17:30:18 +00:00
Juan Martín Sotuyo Dodero
123f2139b9
Merge branch 'pr-914'
2018-02-17 14:17:04 -03:00
Juan Martín Sotuyo Dodero
1992a0d33b
Update changelog, refs #914
2018-02-17 14:16:47 -03:00
Juan Martín Sotuyo Dodero
f4c7cc70bc
Merge branch 'pr-901'
2018-02-17 14:13:55 -03:00
Juan Martín Sotuyo Dodero
99d853c39d
Update changelog, refs #901
2018-02-17 14:13:32 -03:00
Juan Martín Sotuyo Dodero
f62fe38d97
Minor cleanups
2018-02-17 14:12:23 -03:00
Akshat Bahety
d2fb476eae
Docs Updated qa-Eclipse
...
Added a qa-Eclipse plugin to the table.
2018-02-17 12:28:11 +05:30
Clément Fournier
22596e5176
Add ghost production for TypeAnnotation to cleanup the grammar
...
Type annotations can be nearly everywhere since Java 8, which makes the grammar
really hard to read when the check for correct jdk version is repeated all over
the place.
2018-02-16 23:53:37 +01:00
Clément Fournier
c401e2cbc6
Move boilerplate to an abstract class
2018-02-16 15:31:52 +01:00
Clément Fournier
d25fbcf8c0
Remove unnecessary javadoc
2018-02-16 00:25:06 +01:00
Clément Fournier
f2ba4e442c
Update FormalParameter type resolution for varargs
2018-02-15 23:58:20 +01:00
Clément Fournier
4e3f1395e4
Consider return type covariance
2018-02-15 11:58:02 +01:00
Clément Fournier
6440d043c8
Cleanup, ensure no false positive
2018-02-15 02:33:33 +01:00
Clément Fournier
ab634bf720
Consider Object methods inherited into interfaces
2018-02-15 01:15:33 +01:00
Akshat Bahety
997a1f61fa
Documentation Updated
...
As written in issue #891 apex uses Single Quotes ' ' instead of Double " "
Updated the document to represent the same to the user.
2018-02-15 05:32:47 +05:30
Clément Fournier
8884599f8d
Consider varargs parameters
2018-02-15 00:12:21 +01:00
Clément Fournier
64a7e3780e
Use bridge method as cue to which method is overridden
...
This adds support for methods inherited from a supertype with type parameters.
Overloads of the inherited (bridged) methods defined in the subclass
with the same number of parameters still go undetected.
RuleViolationComparator contains a good example of this: the two compare
methods compile to three methods: compare(RV,RV), compare(String,String)
and a bridge method compare(Object,Object). But short of doing more
complicated analysis on the type parameters (or reading the bytecode),
there is no way to determine whether the bridge delegates to the
compare(String,String) or compare(RV,RV), so we can't know which is
overridden.
Another corner case is the following:
public <V> void setProperty(MultiValuePropertyDescriptor<V> propertyDescriptor, V... values)
in AbstractDelegateRule, inherited from Rule. I don't know yet why it's
not detected.
2018-02-14 19:40:29 +01:00
Clément Fournier
f330007278
Change algorithm to explore hierarchy only once, avoid exploring same classes twice
2018-02-14 17:32:19 +01:00
Clément Fournier
f1d0d74087
Checkstyle
2018-02-14 01:22:22 +01:00
Clément Fournier
4bb707a3bd
Test case for generic method
2018-02-14 00:42:07 +01:00
Clément Fournier
5ddb5a2a29
Make ASTFormalParameter a typenode
...
It feels right
2018-02-14 00:25:00 +01:00
Clément Fournier
9b93311c53
Cleanup ASTAnnotation
...
It's now a typenode
2018-02-14 00:14:20 +01:00
Clément Fournier
7db3f4a006
Add MissingOverrideRule and some tests
...
Doesn't support method overriden from generic supertype.
Known limitations that are supposed to be fixed shortly
are #910 and anonymous enum constants (the fix for that
is somewhere in my branches, after #895 )
2018-02-13 23:29:37 +01:00
Clément Fournier
8cb7573379
Fix problem with outer enum and annotation types
2018-02-13 12:30:38 +01:00
Clément Fournier
733c871b96
Fix nested anonymous class bug with type resolution
2018-02-13 02:46:55 +01:00
Juan Martín Sotuyo Dodero
cd9f4f2248
Merge branch 'pr-892'
2018-02-08 23:06:02 -03:00
Clément Fournier
1d9a2f194d
Fix merge fail + checkstyle
2018-02-08 18:55:00 +01:00
Clément Fournier
40a5e3c569
Merge branch 'master' into improve-javaqualifiedname
2018-02-08 17:03:15 +01:00
Clément Fournier
a039788dfb
Fix the bugfix
...
Qualified names now use structural comparison to determine equality. Using toString
hid away some bugs. We still use toString to shortcut the comparison,
since it's cached.
2018-02-08 16:59:07 +01:00
Clément Fournier
3ede676e0a
Fix two bugs with qname regex parsing
2018-02-08 16:24:46 +01:00
Clément Fournier
8d520b6d8d
Update JavaParserVisitorReducedAdapter to consider MethodLike
2018-02-07 23:14:28 +01:00
Juan Martín Sotuyo Dodero
2909eb02b7
Merge branch 'pr-903'
2018-02-07 12:59:26 -03:00
Juan Martín Sotuyo Dodero
ef85cf4c8f
Update changelog, refs #903
2018-02-07 12:59:08 -03:00
Clément Fournier
c245ef1ea9
Format test cases
2018-02-07 14:18:33 +01:00
Clément Fournier
45cb5f3252
Minor style corrections
2018-02-07 14:12:01 +01:00
Clément Fournier
bb2e35b815
Fix ImmutableField false positive when lambda is in constructor
...
Fixes #855
2018-02-07 14:05:47 +01:00
Clément Fournier
240ccfb32f
Improve a confusing code construct
2018-02-06 18:30:09 +01:00
Juan Martín Sotuyo Dodero
90527c646e
Update changelog, refs #900
2018-02-05 02:30:22 -03:00
Clément Fournier
3d8d9ff013
Corrections for PR comments #901
2018-02-04 20:47:20 +01:00
Clément Fournier
5a3e1941d0
Use multi valued property as a PoC
2018-02-03 14:31:31 +01:00
Clément Fournier
5e8e125afa
Replace synthetic proxy with static proxy for Xml nodes
...
Fixes #739
2018-02-03 14:24:24 +01:00
Juan Martín Sotuyo Dodero
117f4cf87a
Merge branch 'pr-900'
2018-02-02 13:48:54 -03:00
reudismam
7e380e5d98
Use isEmpty method.
2018-02-02 12:28:25 -03:00
Andreas Dangel
7938dcd8c4
[ci] Add pmd-commits@lists.sourceforge.net for build notifications
2018-02-01 19:25:46 +01:00
Clément Fournier
b30d64dd4f
Make cyclo count lambdas separately
2018-02-01 00:28:32 +01:00
Clément Fournier
7e2930be3f
Adapt the metrics framework to consider MethodLike
2018-02-01 00:28:32 +01:00
Clément Fournier
ba10a60a7c
Add JavaQualifiedName support for lambdas.
...
Add MethodLike superclass to ASTMethodDecl, ASTConstructorDecl, ASTLambdaExpr
2018-02-01 00:28:27 +01:00
Clément Fournier
1f6fc296c5
Split JavaQualifiedName into static factory + class
2018-01-31 22:44:59 +01:00
Clément Fournier
72a901089f
Optimise format regex
...
Use possessive quantifiers to make it fail faster
2018-01-31 22:44:59 +01:00
Clément Fournier
332dadce2d
Cleanup JavaQualifiedName to make it really immutable
...
Use an immutable list to avoid array copies everywhere
2018-01-31 22:44:59 +01:00
Clément Fournier
5fcfb0af8f
Formatting and code rearrangement
2018-01-31 22:44:59 +01:00
Clément Fournier
ece8c7e84c
Add qualified name support for anonymous classes
...
* Simplify the API of JavaQualifiedName
* The name of an anonymous class is for now
only available via JavaQualifiedName factories,
not from the nodes
2018-01-31 22:44:59 +01:00
Clément Fournier
a3c0f7d3ab
Documentation
2018-01-31 22:44:59 +01:00
Clément Fournier
f7636f27f3
Make JavaQualifiedName represent packages like in the JLS
...
The unnamed package is not represented as a lone full stop anymore.
Rename QualifiedNameTest into JavaQualifiedNameTest
2018-01-31 22:44:59 +01:00
Clément Fournier
55d3bbe881
Refactor ASTAnyTypeDeclaration into an abstract class.
...
Remove getQualifiedName's copypasta.
2018-01-31 22:44:59 +01:00
Clément Fournier
6ab52371cc
Fix NPE in ForLoopCanBeForeach
2018-01-30 16:29:00 +01:00
Clément Fournier
47cfc3909c
Merge branch 'master' into issue-784
2018-01-30 16:09:44 +01:00
Andreas Dangel
79882b1eb0
[ci] Fix coveralls integration: run a install first
2018-01-30 09:53:59 +01:00
Andreas Dangel
5c8016e58e
Merge branch 'pr-889'
2018-01-30 09:43:29 +01:00
Andreas Dangel
257402cf95
Merge branch 'pr-890'
2018-01-30 09:34:06 +01:00
Juan Martín Sotuyo Dodero
f86a06be4a
Fix checkstyle
2018-01-29 23:26:42 -03:00
Juan Martín Sotuyo Dodero
c2e11ddff2
[ci] Upgrade m-pmd-p
...
- Reenable pmd dogfoding
- Upgrade to use PMD 6.0.1 on self
2018-01-29 23:19:43 -03:00
Juan Martín Sotuyo Dodero
75b60b8a88
Update changelog, refs #888
2018-01-29 14:12:54 -03:00
Juan Martín Sotuyo Dodero
f9df6ed01e
[java] Fix grammar for <> in Java 1.8
...
- Fixes #888
- Allow the contents of an anonymous class to use diamong notation, but
the anonymous class itself can't use it
2018-01-29 14:10:40 -03:00
Juan Martín Sotuyo Dodero
53fa98a672
Merge branch 'pr-886'
2018-01-27 20:03:43 -03:00
Juan Martín Sotuyo Dodero
4c079ff9c5
Update changelog, refs #886
2018-01-27 20:03:26 -03:00
Matias Comercio
bdf988030c
Add missing unit test
2018-01-26 19:02:18 -03:00
Matias Comercio
d8d271c2f1
Fix issue-885
...
False positive on Java rule: CompareObjectsWithEqualsRule
Enum class exlicit usage was not being considered an Enum type in the rule
2018-01-26 18:18:10 -03:00
Andreas Dangel
22a42ecd6f
Merge branch 'pr-878'
2018-01-26 10:13:42 +01:00
Andreas Dangel
9062b4f09e
[java] CommentRequiredRule: Add unit test
...
Add a unit test to verify the dysfunctionalReason is detected
correctly.
Refs #877
2018-01-26 09:58:50 +01:00
Juan Martín Sotuyo Dodero
b439bb823f
Merge branch 'pr-875'
2018-01-25 21:25:18 -03:00
Juan Martín Sotuyo Dodero
0360e0838e
Update changelog, refs #875
2018-01-25 21:24:15 -03:00
Juan Martín Sotuyo Dodero
41de94776e
Properly handle shortnames with comma-separated args
...
- Also added unit tests to make sure the behavior is as expected
2018-01-25 21:20:13 -03:00
Clément Fournier
91790c387d
Merge branch 'pr-870'
2018-01-26 00:22:34 +01:00
Clément Fournier
21650ba85a
Move util.documents into n.s.pmd.documents
...
Fix commit 40ad978 compilation errors
2018-01-26 00:20:38 +01:00
Juan Martín Sotuyo Dodero
c34519431c
Merge branch 'pr-828'
2018-01-25 19:55:33 -03:00
Juan Martín Sotuyo Dodero
476d9a6d4d
Update changelog, refs #828
2018-01-25 19:54:16 -03:00
Juan Martín Sotuyo Dodero
6a801ee26c
Move document classes out of the util package
2018-01-25 19:53:58 -03:00
Juan Martín Sotuyo Dodero
a33958bc63
Merge branch 'pr-882'
2018-01-25 19:49:32 -03:00
Juan Martín Sotuyo Dodero
f816bb65ba
Merge branch 'pr-883'
2018-01-25 19:43:58 -03:00
Clément Fournier
35157be961
Update release notes, refs #784
2018-01-25 23:22:41 +01:00
Clément Fournier
69937a40e5
Fix ForLoopCanBeForeach flagging loops with two iterators
...
Resolves #784
2018-01-25 23:16:46 +01:00
Clément Fournier
34c29e93fb
Update release notes, refs #825
2018-01-25 22:59:24 +01:00
Clément Fournier
6fb01ca19d
ExcessiveClassLength considers annotation and enum types
2018-01-25 22:57:28 +01:00
Clément Fournier
3f38835d78
ExcessiveMethodLength considers constructors
2018-01-25 22:52:44 +01:00
Clément Fournier
b7950cca1b
Merge branch 'pr-868'
2018-01-25 18:46:03 +01:00
Clément Fournier
95eede5493
Update release notes, refs #868
2018-01-25 18:41:27 +01:00
Juan Martín Sotuyo Dodero
49a7c7d75b
update broken url
2018-01-25 12:10:27 -03:00
Clément Fournier
0578b36145
Cleanup AbstractNode
2018-01-25 14:15:57 +01:00
Juan Martín Sotuyo Dodero
ae0ef47e1d
Merge branch 'pr-879'
2018-01-25 10:09:45 -03:00
gonzalo
c25089ef9a
PR Improvements - 3
2018-01-25 09:46:38 -03:00
Clément Fournier
b1c5e3dfc0
Revert making AbstractVFNode and AbstractJspNode abstract
...
Revert me for 7.0.0
see #881 , #879
2018-01-25 12:14:22 +01:00
gonzalo
80aba0c858
PR Improvements - 2
2018-01-24 23:35:22 -03:00
Clément Fournier
0316462916
Checkstyle
2018-01-25 03:13:22 +01:00
Clément Fournier
1bdca98f03
Flag deprecated impl to find it quickly
2018-01-25 03:10:04 +01:00
Clément Fournier
27ccd140ef
Cleanup
2018-01-25 03:06:54 +01:00
Clément Fournier
6a3b332aee
Abstract toString into AbstractNode, deprecate the implementation
...
Log that the default implementation will be removed
2018-01-25 03:02:44 +01:00
gonzalo
3d818b0963
PR Improvements - 1
2018-01-24 20:09:13 -03:00
Clément Fournier
cd105125d8
Update release notes, refs #879
2018-01-24 19:36:17 +01:00
Clément Fournier
3c0bb45a60
Add getXPathNodeName to the Node interface
...
A default implementation is available in AbstractNode
to preserve compatibility with the previous way, which
used Object.toString.
Fixes #569
2018-01-24 19:22:36 +01:00
Juan Martín Sotuyo Dodero
ccb8bae42d
Update changelog, refs #877
2018-01-24 01:46:10 -03:00
Juan Martín Sotuyo Dodero
7ec99ba218
[java] Fix misconfiguration detection
...
- Resolves #877
2018-01-24 01:45:02 -03:00
Clément Fournier
0fb9c4678c
Update release notes, refs #845
2018-01-23 21:17:31 +01:00
Clément Fournier
80bd38485a
Merge branch 'pr-845'
...
Refs #543
2018-01-23 21:09:08 +01:00
Alberto Fernandez
9936b1f833
removed unnecesary counter
2018-01-23 17:56:10 +01:00
John Zhang
aeb554ee62
Issue 872 fix
...
This commit attempts a fix to issue 872.
The inputFileName ('master' file) parameter may be null,
in which case the function returns just the file name if short name is required.
2018-01-23 11:46:02 +11:00
Travis CI (pmd-bot)
8aeddd09a4
Update documentation
2018-01-21 20:01:11 +00:00
Juan Martín Sotuyo Dodero
02e84360aa
[doc] Update sidebar generation
2018-01-21 16:50:02 -03:00
Juan Martín Sotuyo Dodero
10d8b194bb
Revert "Update documentation"
...
This reverts commit 3548fd14c0 .
2018-01-21 16:24:40 -03:00
Juan Martín Sotuyo Dodero
c436e9bd94
Fix checkstyle errors
2018-01-21 16:16:06 -03:00
Juan Martín Sotuyo Dodero
26288b0022
[core] Remove usages of deprecated PMD.VERSION
...
- Take the chance to add some helpers to PMDVersion that seem needed
- Have CodeClimate renderer point to pmd.github.io rather than SF
2018-01-21 16:02:48 -03:00
Travis CI (pmd-bot)
3548fd14c0
Update documentation
2018-01-21 18:12:05 +00:00
Juan Martín Sotuyo Dodero
142fb16358
Merge branch 'pr-860'
2018-01-21 14:59:31 -03:00
Juan Martín Sotuyo Dodero
33edaeb46b
Update changelog, refs #803
2018-01-21 14:52:55 -03:00
Juan Martín Sotuyo Dodero
527bfce72f
Merge branch 'pr-803'
2018-01-21 14:52:00 -03:00
Juan Martín Sotuyo Dodero
77f3637f53
Remove quotes
2018-01-21 14:51:43 -03:00
Juan Martín Sotuyo Dodero
1065006b8a
Upodate changelog, refs #790
2018-01-21 14:47:45 -03:00
Juan Martín Sotuyo Dodero
e1e8ad5984
Merge branch 'pr-790'
2018-01-21 14:47:11 -03:00
Juan Martín Sotuyo Dodero
17c925b9db
Update changelog, refs #830
2018-01-21 14:45:06 -03:00
Juan Martín Sotuyo Dodero
3de3335714
Merge branch 'pr-830'
2018-01-21 14:42:09 -03:00
Juan Martín Sotuyo Dodero
69fc4ffc2d
Update changelog, refs #791
2018-01-21 14:39:57 -03:00
Juan Martín Sotuyo Dodero
e6be5b3e44
Merge branch 'pr-818'
2018-01-21 14:39:07 -03:00
Andreas Dangel
5bcc09ccc4
Release script: add step to update docs/_config.yml
2018-01-21 16:51:52 +01:00
Andreas Dangel
182dadaa4b
Prepare next development version
2018-01-21 16:45:02 +01:00
Andreas Dangel
8fbb156fd9
[maven-release-plugin] prepare for next development iteration
2018-01-21 16:42:50 +01:00
Andreas Dangel
0e460317e4
[maven-release-plugin] prepare release pmd_releases/6.0.1
2018-01-21 16:42:42 +01:00
Andreas Dangel
585b2c4642
Prepare pmd release 6.0.1
2018-01-21 16:30:51 +01:00
Andreas Dangel
34b9d23887
Update/fix release script
...
* fix syntax error
* allow to override the next version
2018-01-21 16:22:59 +01:00
Travis CI (pmd-bot)
81c5b27df0
Update documentation
2018-01-21 15:02:06 +00:00
Andreas Dangel
b3f4520ed1
Merge branch 'pr-867'
2018-01-21 15:42:40 +01:00
Andreas Dangel
02989303a6
[java] Avoid double rule de-referincing in controversial and migrating_*
2018-01-21 15:42:28 +01:00
Andreas Dangel
594f7e3254
Merge branch 'pr-865'
2018-01-21 15:30:48 +01:00
Andreas Dangel
f7ecfaa01b
Update release notes, refs #865
2018-01-21 15:30:41 +01:00
gonzalo
9d7d89b669
Add XPath flow documentation && Made small refactor
2018-01-21 11:09:50 -03:00
Juan Martín Sotuyo Dodero
15db5ad0b4
[java] typeresolution points directly to categories
...
- Fixes #866
2018-01-21 06:21:55 -03:00
Juan Martín Sotuyo Dodero
abc73bfc7b
[core] Log all rules' movements to categories
...
- All rules will log where they where moved to, even if the ruleset is
referenced as a whole
- All deprecation warnings now let's users know on which version
support will be removed.
2018-01-21 05:43:49 -03:00
Andreas Dangel
c6bc5ff306
Merge branch 'pr-857'
...
Closes #827
2018-01-20 17:57:38 +01:00
Clément Fournier
f8ca4a75d3
Extract Pattern constant from parse method
2018-01-20 01:53:23 +01:00
Andreas Dangel
3472bf1764
[doc] Fix wrong bootclasspath to be able to use java8 api
2018-01-18 16:33:33 +01:00
Andreas Dangel
7faba76809
Update release notes, fixes #848
2018-01-17 20:57:28 +01:00
Andreas Dangel
411be4ac00
[doc] Further changes for windows compatibility
2018-01-17 20:51:56 +01:00
Andreas Dangel
090975a972
[doc] Fix file handle leak in SidebarGenerator
2018-01-17 20:19:33 +01:00
Andreas Dangel
1ef5367498
[doc] Fix build/unit tests under windows
...
* expect line names with windows path normalized to unix paths
* normalize line endings
* File.separator might be a backslash and needs to be escaped in regex
2018-01-17 19:41:45 +01:00
Alberto Fernandez
2c2c2f4dd9
Checkstyle fixes
2018-01-17 16:06:54 +01:00
Alberto Fernandez
883bed3cf8
Better detection of corner cases
...
the firts changes checks for a exact level to search AdditiveExpression.
So code like
throw new Exception("something bad:" + (e)); gets undetected.
This change search if part of a AdditiveExpression to the base node.
2018-01-17 15:25:38 +01:00
Clément Fournier
6e461f09d7
Update release notes, refs #827
2018-01-17 00:15:35 +01:00
Clément Fournier
65949bcf6e
Merge branch 'master' of github.com:pmd/pmd into issue-827
2018-01-17 00:15:13 +01:00
Clément Fournier
2ca4b347c3
Make TCC consider local classes.
...
If a local class is declared inside a method of the outer class,
then attribute accesses made by the local class count as if they
are made by the enclosing method.
2018-01-16 23:42:29 +01:00
Clément Fournier
8cfc073b8c
Add local class support to JavaQualifiedName
2018-01-16 20:35:15 +01:00
Clément Fournier
27b4abe221
Add isLocal() to ASTClassOrInterfaceDeclaration
2018-01-16 18:18:23 +01:00
Juan Martín Sotuyo Dodero
c843a6f534
Make test cases more direct
...
- No personal interpretation, but let Java process the values
2018-01-16 01:14:42 -03:00
Andreas Dangel
96cc4f01f3
Merge branch 'pr-849'
...
Closes #841
2018-01-15 20:45:34 +01:00
Andreas Dangel
23a673114c
Merge branch 'pr-835'
2018-01-15 20:42:48 +01:00
Juan Martín Sotuyo Dodero
fe53f8bb91
Update changelog, refs #841
2018-01-14 16:17:11 -03:00
Juan Martín Sotuyo Dodero
391c1e8842
Unify literal parsing logic
2018-01-14 16:15:22 -03:00
Juan Martín Sotuyo Dodero
ab96e34099
[java] Resolve NumberFormatException
...
- InsufficientStringBufferDeclaration now supports all numbr formats
(even octal and binary)
- We move the logic of understanding the literal value to the literal
node. Looking for other places where this logic is being replicated is
pending
2018-01-14 16:14:38 -03:00
Juan Martín Sotuyo Dodero
a5b546d044
Java 7 compatible implementation
2018-01-13 21:01:37 -03:00
Juan Martín Sotuyo Dodero
79a43fac0f
Update changelog, refs #831
2018-01-13 20:44:29 -03:00
Juan Martín Sotuyo Dodero
303f05d8d3
[java] Resolve StackOverflow in JavaTypeDefinitionSimple.toString()
...
- Resolves #831
2018-01-13 20:43:01 -03:00
Juan Martín Sotuyo Dodero
0c9f27bbbe
Inline gitter badge
2018-01-13 20:42:22 -03:00
Juan Martín Sotuyo Dodero
b0775343ca
Merge pull request #840 from gitter-badger/gitter-badge
...
Add a Gitter chat badge to README.md
2018-01-13 20:41:48 -03:00
Juan Martín Sotuyo Dodero
554abc4ac9
Merge branch 'pr-846'
2018-01-13 20:40:46 -03:00
Andreas Dangel
ff9a951c9e
Determine java7 home with jdk_switcher
2018-01-13 11:23:26 +01:00
Andreas Dangel
4f62e84392
Use openjdk7
...
See https://raw.githubusercontent.com/michaelklishin/jdk_switcher/1e091549285fb0f2591cef679b4135cfbfcc0b4c/jdk_switcher.sh for the paths
See travis-ci/travis-ci#7964
2018-01-13 11:13:59 +01:00
Andreas Dangel
12409be1ef
Update release notes, refs #842
2018-01-12 23:37:14 +01:00
Andreas Dangel
4ba1cbcb46
Use bootclasspath when building for java7
...
Note: this is only works correctly, if the property java7.home is set
Fixes #842
2018-01-12 23:36:18 +01:00
Alberto Fernandez
a4d5ff683d
Fix checkstyle
2018-01-12 23:31:58 +01:00
Alberto Fernandez
4f67d99c9f
Fix false negative PreserveStackTrace on string concatenation
...
PMD should fire PreserveStackTrace in the following code
public void foo(String a) throws Exception {
try {
int i = Integer.parseInt(a);
} catch(Exception e){
throw new Exception("something bad:" + e);
// Stack trace is lost, but no violation was reported!
}
}
Closes pmd/pmd#543
2018-01-12 23:09:17 +01:00
Andreas Dangel
9bc7074fb9
Merge branch 'pr-821'
2018-01-11 17:30:40 +01:00
Andreas Dangel
b6fc30964e
Add unit test, refs #817
2018-01-11 17:29:34 +01:00
Andreas Dangel
17ea5a89a0
Merge branch 'pr-820'
2018-01-11 17:16:04 +01:00
The Gitter Badger
e6df2c4436
Add Gitter badge
2018-01-11 07:48:19 +00:00
gonzalo
40ad978d8f
Receive Charset of Document in the constructor
2018-01-08 08:56:40 -03:00
gonzalo
de09472421
Change filePath type from String to Path
2018-01-08 02:34:30 -03:00
gonzalo
000d72d3be
Change name in document operations comparator inner method && Change visibility of getter in DocumentFile
2018-01-08 02:29:44 -03:00
gonzalo
bb8b2cdd4e
[WIP] Working fix for <Line, Offset> mapping to support any type of line separators in the same source file && other minor fixes
2018-01-08 01:55:52 -03:00
Clément Fournier
4b43bbcb19
Merge branch 'pr-822'
2018-01-08 00:33:17 +01:00
Juan Martín Sotuyo Dodero
dd0c94a082
Merge branch 'pr-826'
2018-01-07 18:17:31 -03:00
Juan Martín Sotuyo Dodero
4ce6a019e1
Add test scenario
2018-01-07 17:33:33 -03:00
Tobias Weimer
fd51f6254a
Update performance.xml
...
Added missing CDATA
2018-01-07 19:19:17 +01:00
Tobias Weimer
af4c5b2a87
Update performance.xml
...
Added note about Arrays.asList()
2018-01-05 15:47:16 +01:00
Tobias Weimer
142e533833
Update performance.xml
...
new Boolean(), new Byte() and new Short() are deoprecated in JDK 9 too.
2018-01-05 15:29:59 +01:00
gonzalo
40bb0a0fe6
Remove Java 8 and 9 language usages
2018-01-03 23:37:58 -03:00
gonzalo
f09a9b62bd
Remove source/target configuration for maven-compiler-plugin added by IDEA
2018-01-03 12:03:13 -03:00
gonzalo
8f6484cadc
Add operations to manipulate a document
2018-01-03 11:30:07 -03:00
Andreas Dangel
baee671c4a
Update release notes, refs #782
2018-01-01 16:33:35 +01:00
Clément Fournier
17dee8d1aa
Merge branch 'pr-823'
2017-12-31 18:54:14 +01:00
Juan Martín Sotuyo Dodero
72b22cfa5f
Update changelog, refs #812
2017-12-31 01:38:26 -03:00
Juan Martín Sotuyo Dodero
2059eac54b
[java] Fix concurrency issue on metrics' framework
...
- Resolves #812
2017-12-31 01:36:56 -03:00
Juan Martín Sotuyo Dodero
99f8a72f27
Update changelog, refs #800
2017-12-31 01:23:13 -03:00
Juan Martín Sotuyo Dodero
c64f6af157
[java] Avoid NPE in ForLoopCanBeForeachRule
...
- Take the chance to make this rule use the rulechain
- This partially fixes #800 , but the FN is still unhandled
2017-12-31 01:20:04 -03:00
Juan Martín Sotuyo Dodero
c10a8c6844
Update changelog, refs #817
2017-12-31 01:03:13 -03:00
Juan Martín Sotuyo Dodero
83496c0e59
[java] Fix NPE on UnnecessaryModifierRule
...
- Fixes #817
2017-12-31 01:01:30 -03:00
Juan Martín Sotuyo Dodero
ec7f64fe55
Update changelog, refs #814
2017-12-31 00:49:59 -03:00
Juan Martín Sotuyo Dodero
729d77614f
Handle more kinds of errors
...
- Handle equally incomplete classpath, having a classpath which
requires a different JRE version than the one used to run PMD and
others.
- Fixes #814
2017-12-31 00:48:23 -03:00
Clément Fournier
ea63134e6b
Reorganise sidebar and files
2017-12-31 00:36:18 +01:00
Andreas Dangel
f4577f9e14
[core] Only issue a deprecation warning, if the referenced ruleset is not empty
...
and all rules have been deprecated.
Fixes #782
2017-12-28 17:17:11 +01:00
Juan Martín Sotuyo Dodero
cd58d15bc2
Merge branch 'pr-806'
2017-12-24 13:35:45 -03:00
Andreas Dangel
4700692e29
[java] Rewrite GuardLogStatementRule without XPath
...
- uses now a Java only implementions
- Fixes #783
2017-12-24 11:51:29 +01:00
Andreas Dangel
0ce2939c6b
Change version to 6.0.1-SNAPSHOT
2017-12-23 09:54:03 +01:00
Andreas Dangel
0c46f3b6dc
Merge branch 'pr-804'
2017-12-23 09:41:58 +01:00
Juan Martín Sotuyo Dodero
3d75a7fdfd
Update changelog, refs #794
2017-12-23 02:03:41 -03:00
Juan Martín Sotuyo Dodero
f1b4674505
Update docs
...
- Be more clear as to how to enable incremental analysis
- Fix broken links
2017-12-23 02:02:09 -03:00
Juan Martín Sotuyo Dodero
d5a7edf7ff
Log links to the proper PMD version
2017-12-23 02:01:43 -03:00
Juan Martín Sotuyo Dodero
19cda30527
Merge branch 'pr-798'
2017-12-23 00:57:09 -03:00
Andreas Dangel
109f458dbf
Fixes #793 [java] Parser error with private method in nested classes in interfaces
...
* Remember old state to allow nesting
* Fix ASTMethodDeclaration.isInterfaceMember
* Extended tests
2017-12-22 12:03:20 +01:00
Tobias Weimer
99ea002a95
Update similarprojects.md
...
Added SpotBugs
2017-12-21 20:58:13 +01:00
Clément Fournier
bc95ca803c
Beanify controllers, new settings persistence logic
...
Add property edition to the XPath panel
2017-12-21 17:08:11 +01:00
Juan Martín Sotuyo Dodero
b25e68d907
Merge branch 'pr-799'
2017-12-21 00:35:48 -03:00
Juan Martín Sotuyo Dodero
3f478bc6f3
Update changelog, refs #799
2017-12-21 00:35:05 -03:00
Travis CI (pmd-bot)
ca41530cf3
Update documentation
2017-12-21 02:41:34 +00:00
Juan Martín Sotuyo Dodero
a42203edc4
Merge branch 'pr-786'
2017-12-20 23:32:30 -03:00
Juan Martín Sotuyo Dodero
0d33ba12b2
Update changelog, refs #786
2017-12-20 23:31:54 -03:00
Juan Martín Sotuyo Dodero
481dcc85b3
Merge branch 'pr-789'
2017-12-20 23:27:56 -03:00
Juan Martín Sotuyo Dodero
9788b8a998
Merge branch 'pr-796'
2017-12-20 23:25:04 -03:00
Juan Martín Sotuyo Dodero
91bce046f5
Update change log, refs #796
2017-12-20 23:24:37 -03:00
Robert Sösemann
9304c70084
Fixes #788 [apex] Method chaining breaks ApexCRUDViolation
2017-12-20 23:25:40 +01:00
Andreas Dangel
64b862eef9
Fixes #793 [java] Parser error with private method in nested classes in interfaces
2017-12-20 22:42:34 +01:00
Andreas Dangel
ef41c71870
github - Update issue template
2017-12-20 20:39:41 +01:00
Robert Sösemann
f267a8f7c7
Fixed https://github.com/pmd/pmd/issues/792
2017-12-20 15:58:12 +01:00
Tobias Weimer
766565a0bf
Update performance.xml
...
new Integer() and new Long() is deoprecated in JDK 9.
2017-12-19 20:55:48 +01:00
Tobias Weimer
fbd9306889
Update performance.xml
...
Reference to Arrays.copyOf
2017-12-19 20:52:23 +01:00
Tobias Weimer
75fe76cbf5
Update errorprone.xml
...
Note that Oracle has declared Object.finalize() as deprecated since JDK 9.
2017-12-19 20:48:45 +01:00
Clément Fournier
904924a0c5
Update framework impl page
2017-12-19 12:25:29 +01:00
Clément Fournier
4f7786abc9
Update metrics tuto page
2017-12-19 00:40:00 +01:00
Clément Fournier
c5ddb2fa3c
Remove code ref
2017-12-18 12:50:45 +01:00
Clément Fournier
42deb3791c
Fix #785 : NPE with metrics on empty declarations
2017-12-17 12:59:49 +01:00
Andreas Dangel
b3161639f8
[doc] Update Ruby/Jekyll/Gems
2017-12-15 18:26:26 +01:00
Andreas Dangel
1e25611991
[doc] next version
2017-12-15 16:50:58 +01:00
Andreas Dangel
342b5c3c1d
[ci] fix uploading doc to pmd.github.io during release
2017-12-15 16:46:34 +01:00
Andreas Dangel
05d29f4c9b
[doc] fix documentation of rule pom/ProjectVersionAsDependencyVersion
2017-12-15 16:46:34 +01:00
Andreas Dangel
cb954e93e5
Prepare next development version
2017-12-15 16:45:46 +01:00
Travis CI (pmd-bot)
cdc33280d6
Update documentation
2017-12-15 15:21:42 +00:00
Andreas Dangel
a975048655
[maven-release-plugin] prepare for next development iteration
2017-12-15 16:01:22 +01:00
Andreas Dangel
9b6fe90225
[maven-release-plugin] prepare release pmd_releases/6.0.0
2017-12-15 16:01:14 +01:00
Andreas Dangel
63742b98e9
Avoid pmdVersion property which conflicts with releasing
...
See https://issues.apache.org/jira/browse/MRELEASE-932
2017-12-15 15:50:56 +01:00
Andreas Dangel
e88db416b2
[doc] Update release docu
2017-12-15 15:39:59 +01:00
Andreas Dangel
bab09de827
Prepare pmd release 6.0.0
2017-12-15 15:39:39 +01:00
Travis CI (pmd-bot)
bc66441da6
Update documentation
2017-12-15 11:12:04 +00:00
Andreas Dangel
ca07aa2964
[doc] Update release notes, docs
2017-12-15 12:02:24 +01:00
Andreas Dangel
5eb3ecd5ad
[core] Make sure, a language with empty version selects the default version
2017-12-15 12:02:04 +01:00
Andreas Dangel
d6a9be55a8
Unify rule category names
2017-12-15 11:22:33 +01:00
Andreas Dangel
998cad8595
[java] fix PMDCoverageTest ruleset
2017-12-15 11:13:35 +01:00
Andreas Dangel
bd77ba6a0f
[ci] Go back to java8 in order to include scala in the release
2017-12-15 11:05:36 +01:00
Andreas Dangel
a61b2e16c1
[scala] Properly activate/decativate scala depending on java version
2017-12-15 10:58:09 +01:00
Andreas Dangel
02fadc1689
[core] Fix classloader closed issue when executing Ant task
...
Note: the problem (ClassNotFoundExceptions) only shows up with java8
- with java9 the classloader seems to be still usable, even after
we closed it...
2017-12-15 10:32:06 +01:00
Andreas Dangel
99d1e96b1b
[doc] Update doc regarding properties
...
refs #504 , refs #762
2017-12-11 19:50:33 +01:00
Andreas Dangel
7e5c272f17
release notes: add missing toc entry
2017-12-09 10:44:39 +01:00
Travis CI (pmd-bot)
5ae9607cfc
Update documentation
2017-12-09 09:42:47 +00:00
Andreas Dangel
c8645440f2
Update release notes with new rules
2017-12-09 10:24:30 +01:00
Andreas Dangel
1bdb412c09
Merge branch 'pr-764'
2017-12-09 10:12:12 +01:00
Andreas Dangel
060848a455
Update release notes, refs #764
...
closes #762
closes #763
2017-12-09 10:11:10 +01:00
Andreas Dangel
2f4e1ba20d
Update release notes, closes #766
2017-12-09 09:44:29 +01:00
Juan Martín Sotuyo Dodero
83c15e2e45
Merge branch 'pr-774'
2017-12-08 00:59:32 -03:00
Juan Martín Sotuyo Dodero
9c832e3ac5
Update changelog, refs #774
2017-12-08 00:59:03 -03:00
Juan Martín Sotuyo Dodero
0f9e521ea7
Update docs
2017-12-08 00:54:48 -03:00
Juan Martín Sotuyo Dodero
3817dc2782
Improve docs
2017-12-08 00:42:56 -03:00
Juan Martín Sotuyo Dodero
53a9449141
Use autogenerated versions of docs
2017-12-08 00:39:29 -03:00
Travis CI (pmd-bot)
5a228d2b6f
Update documentation
2017-12-08 01:56:40 +00:00
Juan Martín Sotuyo Dodero
b32644c744
Merge branch 'pr-775'
2017-12-07 22:48:36 -03:00
Juan Martín Sotuyo Dodero
dc75904de6
Make sure we only recomend this to "modern" JVMs
2017-12-07 22:48:08 -03:00
Juan Martín Sotuyo Dodero
8accdf01a4
Merge branch 'pr-733'
2017-12-07 22:41:15 -03:00
Andreas Dangel
a86aea2379
[apex] Create separate module "pmd-apex-jorje" which provides the apex jorje parser
2017-12-06 20:14:03 +01:00
Andreas Dangel
6a5e49efee
[apex] Attach apex jorje jar using classifier "apex-jorje"
2017-12-05 22:34:43 +01:00
Andreas Dangel
38bc6bf1fa
[apex] Fix suppress warnings support
2017-12-04 21:44:57 +01:00
Andreas Dangel
892a673c9f
[apex] Remove empty catches, fix old reflections calls in Helper
2017-12-04 21:44:57 +01:00
Andreas Dangel
dbcd36cd7a
[apex] Fix ApexCRUDViolation rule
...
- reflection not necessary anymore
- constructor is now not anymore returned
as <init> but as the actual name
2017-12-04 21:44:57 +01:00
Andreas Dangel
7f8c8a0854
[apex] Fix line/column numbering
2017-12-04 21:44:57 +01:00
Andreas Dangel
29c7061bde
[apex] Adjust to new apex jorje
2017-12-04 21:44:52 +01:00
Andreas Dangel
6caad3485c
[apex] Add script to create minimized apex jorje jar, add jar as dependency
2017-12-04 21:14:27 +01:00
Andreas Dangel
7fa49aacc6
[apex] Declare transitive dependencies
2017-12-04 21:13:54 +01:00
Travis CI (pmd-bot)
e8023e8913
Update documentation
2017-12-04 04:41:05 +00:00
Juan Martín Sotuyo Dodero
2ff93cc82e
Merge branch 'pr-772'
2017-12-04 01:33:05 -03:00
Travis CI (pmd-bot)
8405ce3d65
Update documentation
2017-12-03 18:48:50 +00:00
Andreas Dangel
b3a7271b98
Merge branch 'pr-771'
2017-12-03 19:32:19 +01:00
Andreas Dangel
83b2e91f3d
Update release notes, closes #768
2017-12-03 19:22:11 +01:00
Andreas Dangel
07cb937d6e
[java] Update OptimizableToArrayCall rule for current JVMs
...
See https://sourceforge.net/p/pmd/bugs/1454/
and https://shipilev.net/blog/2016/arrays-wisdom-ancients/
2017-12-01 11:41:23 +01:00
Chas Honton
ac36d678bb
Updates per suggestions; merge four rules into one
2017-11-30 21:53:48 -08:00
Chas Honton
51241368b3
Avoid using FileInput/Output - see JDK-8080225
2017-11-30 20:10:04 -08:00
Andreas Dangel
e84800b34c
Update ruleset factory compatibility
2017-11-30 22:54:07 +01:00
Andreas Dangel
0f96c82695
Update release notes, closes #457
2017-11-30 22:49:34 +01:00
Andreas Dangel
5e3b4504d8
[java] Remove old rules GuardDebugLogging and GuardLogStatementJavaUtil
2017-11-30 22:48:01 +01:00
Andreas Dangel
1447ac8a4a
[java] Merge GuardDebugLogging and GuardLogStatementJavaUtil into
...
the rule GuardLogStatement
2017-11-30 22:38:14 +01:00
Clément Fournier
2c94dd993d
Corrections for PR #771
2017-11-30 19:31:11 +01:00
Clément Fournier
41a6b78231
Revert back to __ from :: for Apex namespaces
2017-11-30 18:38:11 +01:00
Clément Fournier
41a3202a18
Fix Apex metrics framework failing on triggers, refs #768
2017-11-30 15:22:26 +01:00
Clément Fournier
36ba0e9581
Add a handle on the value parser of the property
2017-11-30 11:34:44 +01:00
Clément Fournier
53f6c39f65
Make the constants available from the string type id
2017-11-29 00:18:40 +01:00
Clément Fournier
b81158ecf0
Convert PropertyDescriptorUtil to an enum and enrich its interface
...
refs #763
2017-11-28 19:44:24 +01:00
Clément Fournier
539d541ffd
Hide factories of MethodProperty, MethodMultiProperty, FileProperty from XPath rules
...
refs #762
2017-11-28 19:02:29 +01:00
Clément Fournier
abdb96238d
Improve builders interface
2017-11-28 18:49:23 +01:00
Travis CI (pmd-bot)
345cc50f78
Update documentation
2017-11-27 20:11:47 +00:00
Andreas Dangel
ae6894c73f
Merge branch 'pr-761'
2017-11-27 20:57:45 +01:00
Andreas Dangel
a0de21003a
Update release notes, refs #760
2017-11-27 20:57:23 +01:00
Andreas Dangel
be29ba44e2
Merge branch 'pr-758'
2017-11-27 20:55:42 +01:00
Andreas Dangel
cbeaea0e73
Update release notes, refs #758
2017-11-27 20:54:37 +01:00
Andreas Dangel
7976170300
[doc] Update working with properties
...
Refs #736
2017-11-27 20:48:38 +01:00
Andreas Dangel
8eb5170b31
Merge branch 'pr-736'
2017-11-27 20:47:27 +01:00
Andreas Dangel
acef94f28a
Update release notes, refs #736
2017-11-27 20:46:44 +01:00
Juan Martín Sotuyo Dodero
309b964441
[apex] Avoid FPs on non-existing else block
...
- IfElseStatement always has 2 BlockStatements, for the if and the
else, even if not present on the code. When that happens, the phantom
block is given the same location the parent has.
- Fixes #760
2017-11-27 10:43:23 -03:00
Clément Fournier
4724ed4636
Expose the full mappings in property descriptor util
2017-11-25 16:15:42 +01:00
Juan Martín Sotuyo Dodero
decf2ae7d0
Merge branch 'pr-756'
2017-11-25 00:26:02 -03:00
Travis CI (pmd-bot)
fe6592882c
Update documentation
2017-11-25 02:43:53 +00:00
Juan Martín Sotuyo Dodero
e3a6ee76d4
Merge branch 'pr-753'
2017-11-24 23:35:47 -03:00
Andreas Dangel
456432ad6f
Resolve deprecated usages
2017-11-24 20:48:02 +01:00
Andreas Dangel
08b018274c
[core] Fix rule loading - only override the flags, if they are true
...
Avoid disabling type resolution
2017-11-24 20:45:13 +01:00
Andreas Dangel
b879e76d8b
Update release notes
2017-11-24 20:21:12 +01:00
Andreas Dangel
fa1e16fcf8
[java] Remove FUTURE comment from AccessNode
2017-11-24 20:15:58 +01:00
Andreas Dangel
4214a75fc4
[core] Add bean-like getter/setter for Rule
2017-11-24 20:13:20 +01:00
Andreas Dangel
2a1b7addb4
Revert "[core] add temporary support for maven debug output"
...
This reverts commit 61376f8112 .
With https://issues.apache.org/jira/browse/MPMD-246 this is not needed
anymore.
2017-11-24 18:11:12 +01:00
Andreas Dangel
71ee2b6d9e
Merge branch 'pr-749'
2017-11-24 14:36:55 +01:00
Andreas Dangel
62eb616ea6
Update release notes, refs #749
2017-11-24 14:36:06 +01:00
Andreas Dangel
114afdaa0e
[doc] Fix type names of property value types
2017-11-24 14:35:00 +01:00
Andreas Dangel
c49ae6b769
Merge branch 'pr-742'
2017-11-24 11:51:18 +01:00
Andreas Dangel
6c14880afa
Merge branch 'pr-741'
2017-11-24 11:45:10 +01:00
Andreas Dangel
4ad209c81f
Update release notes, refs #732
2017-11-24 11:44:59 +01:00
Andreas Dangel
3bad361e2f
[java] Change MoreThanOneLoggerRule to avoid classloader issues
...
refs #732
2017-11-24 11:43:23 +01:00
Andreas Dangel
2d0f6ffc89
[doc] Fix automated links generation
...
Resolves #751
2017-11-24 09:51:08 +01:00
Andreas Dangel
3132080b83
[doc] Fix how moved and deprecated rules are linked
...
Text should be the old name, the link should point to the new name/rule
2017-11-24 09:28:05 +01:00
Travis CI (pmd-bot)
70fc3d75bb
Update documentation
2017-11-23 20:47:04 +00:00
Andreas Dangel
8b77f6769e
Merge branch 'pr-748'
2017-11-23 21:27:41 +01:00
Andreas Dangel
31725ae241
Merge branch 'pr-747'
2017-11-23 21:25:36 +01:00
Travis CI (pmd-bot)
9bfde52869
Update documentation
2017-11-23 19:39:06 +00:00
Andreas Dangel
6136de2d28
Fix Metrics ruleset name
2017-11-23 20:30:32 +01:00
Andreas Dangel
f436e8b38f
[ci] fix sonar.host.url - it's now https://sonarcloud.io
2017-11-23 20:23:31 +01:00
Andreas Dangel
72b5bda178
Deprecate the old bgastviewer implementation
2017-11-23 20:20:38 +01:00
Juan Martín Sotuyo Dodero
a95b2a6d85
Deprecate the old designer's classes
2017-11-23 00:39:43 -03:00
Juan Martín Sotuyo Dodero
cbef7a5602
Merge branch 'pr-731'
2017-11-22 18:03:49 -03:00
Andreas Dangel
204e64ea62
Merge branch 'pr-711'
2017-11-22 21:51:31 +01:00
Andreas Dangel
7d7189f749
Update release notes, refs #711
2017-11-22 21:43:57 +01:00
Andreas Dangel
c17322a9e6
Add new designer to start scripts
2017-11-22 21:37:38 +01:00
Andreas Dangel
47a29fdb17
Add break and adjust logging
2017-11-22 21:31:13 +01:00
Andreas Dangel
16c3c161bc
Merge remote-tracking branch 'origin/master' into api-ruleset-compatibility
2017-11-22 21:29:28 +01:00
Clément Fournier
9c0b865477
Add disclaimer and xpath example
2017-11-21 22:38:28 +01:00
Clément Fournier
6fa288497a
Remove the remains of the old article.
...
That part was about developing a UI for an IDE plugin. The info was heavily outdated, and the up to date info can be found in the javadoc of the PropertyDescriptor interface.
2017-11-21 22:38:28 +01:00
Clément Fournier
c43717f66d
Fix some inconsistencies
2017-11-21 22:38:27 +01:00
Clément Fournier
09d9cdd3a5
Update title, link and sidebar
2017-11-21 22:38:27 +01:00
Clément Fournier
02f0ab05a8
Remove outdated info
2017-11-21 22:38:27 +01:00
Clément Fournier
2101233235
Complete XPath properties doc
2017-11-21 22:38:13 +01:00
Juan Martin Sotuyo Dodero
b4e0cd3649
[java] EmptyCatchBlock ignore expected by default
...
- We chnge the default to ignore exceptions named `ignore` or
`expected`, users can still override this behaviour.
2017-11-21 18:30:50 -03:00
Juan Martin Sotuyo Dodero
4e29faa3eb
[java] Merge EmptyStaticInitializer into EmptyInitializer
2017-11-21 17:51:59 -03:00
Juan Martin Sotuyo Dodero
802e7a7df0
Fix checkstyle
2017-11-21 17:51:34 -03:00
Clément Fournier
b654b1b839
Complete properties doc for java rules
2017-11-21 21:21:46 +01:00
Juan Martín Sotuyo Dodero
4cae41deb9
Merge branch 'master' into api-ruleset-compatibility
2017-11-21 14:54:41 -03:00
Juan Martín Sotuyo Dodero
a9ce410845
Merge branch 'master' into api-ruleset-compatibility
2017-11-21 14:53:42 -03:00
Juan Martin Sotuyo Dodero
e79cc20da4
Merge branch 'pr-723'
2017-11-21 14:50:42 -03:00
Juan Martin Sotuyo Dodero
23035524b9
Update changelog, refs #723
2017-11-21 14:50:00 -03:00
Juan Martin Sotuyo Dodero
4f5b18dfba
Simplifications
2017-11-21 14:48:06 -03:00
Juan Martin Sotuyo Dodero
62397892ae
Merge branch 'pr-746'
2017-11-21 13:49:16 -03:00
Juan Martin Sotuyo Dodero
42676fee09
Update changelog, refs #746
2017-11-21 13:49:02 -03:00
Clément Fournier
77048f16ea
Fix another few things
2017-11-21 17:33:29 +01:00
Clément Fournier
60abf4994f
Fix typo in incremental analysis log message
2017-11-21 17:14:21 +01:00
Juan Martin Sotuyo Dodero
1ad3c7e194
Merge branch 'pr-744'
2017-11-21 12:50:04 -03:00
Juan Martin Sotuyo Dodero
0bdf831845
Update changelog, refs #744
2017-11-21 12:49:49 -03:00
Juan Martin Sotuyo Dodero
b5fc443ae3
Further improve the CPD supported language list
2017-11-21 12:48:43 -03:00
Travis CI (pmd-bot)
41b6644c1f
Update documentation
2017-11-21 15:43:00 +00:00
Juan Martin Sotuyo Dodero
8edd3ed091
Merge branch 'pr-733'
2017-11-21 12:34:06 -03:00
Michał Kuliński
452a77abfd
Added Apex to supported languages
2017-11-21 16:32:58 +01:00
Juan Martin Sotuyo Dodero
324e0216df
Update changelog, refs #733
2017-11-21 12:29:41 -03:00
Clément Fournier
5a978cb7b0
Make CommentRequirement private
2017-11-21 11:45:09 +01:00
Clément Fournier
632ed17464
Corrections for PR #723
2017-11-21 11:28:25 +01:00
Juan Martin Sotuyo Dodero
6028e77e62
[core] Improve classloaders
...
- Avoid a race condition that could produce multiple threads loading
the same class at the same time.
- Fixed a broken check on PMDASMClassLoader that would always return
false.
2017-11-21 00:16:20 -03:00
Juan Martin Sotuyo Dodero
3ca4b71f72
[java] Don't expect to load classes from execution classpath
...
- We can't assume the classes needed for analysis will be available
in the execution classpath, we need to make sure to load them from the
same classloader / auxclaspath used during analysis.
- Resolves #732
2017-11-21 00:12:52 -03:00
Travis CI (pmd-bot)
0ff05ed740
Update documentation
2017-11-20 20:38:24 +00:00
Juan Martin Sotuyo Dodero
d8fdbde68d
Merge branch 'pr-727'
2017-11-20 17:29:41 -03:00
Juan Martin Sotuyo Dodero
a2985b89ab
Update changelog, refs #727
2017-11-20 16:57:51 -03:00
Juan Martin Sotuyo Dodero
3ffeeca518
Only allow null default values
2017-11-20 16:56:10 -03:00
Juan Martin Sotuyo Dodero
73df7d048a
Merge branch 'pr-729'
2017-11-20 16:37:12 -03:00
Juan Martin Sotuyo Dodero
301f8db6f5
Merge branch 'pr-738'
2017-11-20 15:49:16 -03:00
Clément Fournier
7fa795ba89
Revert "Fix xml/InvalidDependencyTypes property", which triggers #739
...
This reverts commit 9e6be2d8a2 .
2017-11-19 18:17:37 +01:00
Clément Fournier
d4b39729f1
Make attributes support full value range
2017-11-19 16:19:18 +01:00
Travis CI (pmd-bot)
45c74ba6f6
Update documentation
2017-11-19 13:06:13 +00:00
Andreas Dangel
c4b8c72cf6
Merge remote-tracking branch 'origin/master'
2017-11-19 13:53:21 +01:00
Andreas Dangel
98ac510443
Merge branch 'pr-734'
2017-11-19 13:47:02 +01:00
Andreas Dangel
35bed4e2d0
Update release notes, refs #734
2017-11-19 13:44:54 +01:00
Andreas Dangel
fd0cdb9514
Mark property "reportLevel" of CyclomaticComplexityRule as deprecated
2017-11-19 13:39:21 +01:00
Clément Fournier
9e6be2d8a2
Fix xml/InvalidDependencyTypes property
2017-11-19 13:30:20 +01:00
Travis CI (pmd-bot)
ab80d18ff6
Update documentation
2017-11-19 09:54:59 +00:00
Andreas Dangel
7a29a71c0d
Merge branch 'pr-737'
2017-11-19 10:38:55 +01:00
Andreas Dangel
05836de7a8
Update release notes, refs #737
2017-11-19 10:38:16 +01:00
Andreas Dangel
d2d79bcfca
Update release notes, mention the new rule categories
2017-11-19 10:31:10 +01:00
Andreas Dangel
9b8571e688
[doc] Mention rule categories
2017-11-19 10:30:38 +01:00
Andreas Dangel
ca3960a106
[doc] Remove reference to gettingstarted ruleset
2017-11-19 09:46:49 +01:00
Clément Fournier
3055d25aac
Fix doc
2017-11-18 15:34:42 +01:00
Clément Fournier
79dd6c525f
Fix npath documentation bad rendering
2017-11-18 15:31:58 +01:00
Clément Fournier
3f91560c11
Remove directories from recent files
2017-11-18 14:47:51 +01:00
Clément Fournier
38034fe517
Make export wizard work!
2017-11-17 22:06:45 +01:00
Clément Fournier
456ae3db98
Put list cell factories into fxml
2017-11-17 21:58:50 +01:00
Clément Fournier
2dce5e1ea5
Improve scope hierarchy node display
2017-11-17 21:13:19 +01:00
Clément Fournier
f9c00d8408
Cleanup pom
2017-11-17 20:33:16 +01:00
Clément Fournier
652b80004d
Make Saxon support multival properties as XPath sequences
2017-11-17 18:41:07 +01:00
Clément Fournier
09da4255df
Change List<> syntax to List[] for xpath prop descriptors
2017-11-17 14:09:34 +01:00
Andreas Dangel
42da2b89f2
[doc] Use category instead of rulesets
2017-11-13 21:29:24 +01:00
Clément Fournier
7cab3cbc73
Move CyclomaticComplexity from metrics to design w/ deprecated property
2017-11-12 13:33:05 +01:00
Juan Martín Sotuyo Dodero
227a0046c5
Merge branch 'pr-726'
2017-11-11 19:14:02 -03:00
Juan Martín Sotuyo Dodero
64627765e3
Update changelog, refs #726
2017-11-11 19:13:16 -03:00
Clément Fournier
2eee7a1276
Decouple enum constants from their labels
2017-11-11 22:40:02 +01:00
Clément Fournier
a9843c6a44
Add accessor comment requirement property
2017-11-11 22:17:11 +01:00
Clément Fournier
3e1a787f26
Fix override property
2017-11-11 22:17:11 +01:00
Clément Fournier
57deb9d78d
Pretty print the messages
2017-11-11 22:17:11 +01:00
Clément Fournier
e316fcc64f
Remove some garbage
2017-11-11 22:17:00 +01:00
Clément Fournier
2efb52be14
Add ignore override property
2017-11-11 20:59:27 +01:00
Andreas Dangel
ea38e30204
Update release notes, refs #394
2017-11-11 14:31:27 +01:00
Andreas Dangel
58b996a634
[core] Add all rules of a ruleset, if the ruleset itself is deprecated
...
that is: The ruleset only contains deprecated rules.
2017-11-11 14:06:50 +01:00
Clément Fournier
bf3ce9d37a
Allow null value for numeric properties
2017-11-11 12:20:43 +01:00
Clément Fournier
b9a605c86a
Shorten test case
2017-11-11 12:07:51 +01:00
Andreas Dangel
0e389af616
[core] Add old RuleSetFactory constructor back for API backwards compatibility
2017-11-11 12:07:13 +01:00
Andreas Dangel
ba3e2bc788
[core] RuleSetFactory: Filter by minimumPriority at the end
...
- Resolves #394
2017-11-11 12:03:45 +01:00
Clément Fournier
64d07ccf5a
Add annotations to apex syntax highlighter
2017-11-10 20:34:08 +01:00
Andreas Dangel
6b5e8ce344
[doc] List the rules of the additional rulesets
2017-11-10 20:18:23 +01:00
Clément Fournier
2979d82755
Allow tokens to receive several css classes
2017-11-10 18:57:59 +01:00
Andreas Dangel
490fe312f2
[doc] Move the additional rulesets to the bottom
2017-11-10 17:59:04 +01:00
Andreas Dangel
26ba531c85
[doc] Add sidebar entries for rule categories
2017-11-10 17:49:16 +01:00
Andreas Dangel
9a9fb0b12f
[doc] Scan for additional rulesets and list them per language
2017-11-10 14:23:22 +01:00
Andreas Dangel
06a1244e15
[doc] Add unit test for all rulesets and fix existing rulesets
2017-11-10 14:03:05 +01:00
Andreas Dangel
1c9c750a0a
[doc] Strip leading whitespace indentation from rule description
2017-11-10 11:44:35 +01:00
Andreas Dangel
490bf99a01
[doc] Mark deprecated properties
2017-11-10 10:35:55 +01:00
Travis CI (pmd-bot)
c647f73811
Update documentation
2017-11-09 21:19:35 +00:00
Andreas Dangel
fe086dd1ee
Merge remote-tracking branch 'pmd-sf/master'
2017-11-09 22:07:30 +01:00
Andreas Dangel
3b624bf687
Merge branch 'pr-722'
2017-11-09 22:04:46 +01:00
Andreas Dangel
24d79fe5b9
Merge branch 'pr-722'
2017-11-09 21:57:28 +01:00
Andreas Dangel
80638f663d
Update release notes, refs #722
2017-11-09 21:57:21 +01:00
Clément Fournier
c1ccc26de8
Fix #725 : numeric property descriptors now check their default value
2017-11-09 21:25:41 +01:00
Clément Fournier
947d4ab1a8
Fix issue #721
2017-11-09 20:54:03 +01:00
Clément Fournier
31696c7397
Deprecate compat property for 7.0.0
2017-11-09 20:28:09 +01:00
Clément Fournier
695defcc61
Add old property back and log warning + correct the property range
2017-11-09 15:02:59 +01:00
Travis CI (pmd-bot)
b159143a06
Update documentation
2017-11-08 20:08:46 +00:00
Andreas Dangel
d0f0c467a0
Merge branch 'pr-717'
2017-11-08 20:54:12 +01:00
Clément Fournier
33b22cb7de
Remove ruledef dir
2017-11-08 19:08:45 +01:00
Clément Fournier
d3f72c27bd
Adapt to changes on master
2017-11-08 19:08:01 +01:00
Clément Fournier
3dfdef1467
Correct override behaviour
2017-11-08 18:57:10 +01:00
Clément Fournier
b7caf2ff76
Remove rule factory singleton
2017-11-08 18:57:10 +01:00
Clément Fournier
f98ac47045
Inline ruleset schema constants
2017-11-08 18:57:10 +01:00
Clément Fournier
b5761ec2a1
Fix documentation
2017-11-08 18:57:10 +01:00
Clément Fournier
e3bc90c1eb
Use enum constants to identify nodes
2017-11-08 18:57:10 +01:00
Clément Fournier
86b0bb4cd7
Rule references use rule factory. Properties declared in a rule ref throw an exception while parsing
2017-11-08 18:57:10 +01:00
Clément Fournier
845e7ca7a8
Plug into RuleSetFactory
2017-11-08 18:56:09 +01:00
Clément Fournier
d933deed6b
Fix merge conflicts
2017-11-08 18:52:53 +01:00
Clément Fournier
8a048fd18d
Rule factory and builder
2017-11-08 18:52:53 +01:00
Clément Fournier
f8bea7f580
Move NPathComplexity from metrics to design
2017-11-08 14:11:36 +01:00
Clément Fournier
1337533920
Use enum for css class names in highlighters
2017-11-08 13:10:54 +01:00
Clément Fournier
e336a4f711
Use ${project.version} in the pom.xml
2017-11-08 12:49:26 +01:00
Juan Martín Sotuyo Dodero
aa3068fedd
Merge branch 'pr-716'
2017-11-07 23:11:22 -03:00
Juan Martín Sotuyo Dodero
2c0957a07b
Add back the removed UnnecessaryFinalModifier rule
2017-11-07 20:39:30 -03:00
Andreas Dangel
6bba28acbe
Add categories.properties files
2017-11-07 22:23:17 +01:00
Clément Fournier
56c8662d2c
Merge branch 'master' into fx-designer
2017-11-07 19:34:41 +01:00
Clément Fournier
7d85448659
Merge branch 'master' into fx-designer
2017-11-07 19:34:02 +01:00
Clément Fournier
539269b3d7
Correct syntax highlighters
2017-11-07 19:31:28 +01:00
Juan Martín Sotuyo Dodero
7bbf6d1a56
Update changelog, refs #717
2017-11-07 00:34:15 -03:00
Juan Martín Sotuyo Dodero
f9f96b84fe
[java] merge UnnecessaryFinalModifier into UnnecessaryModifier
...
- I take the chance to also flag final resources in try-with-resources
- This resolves #411
- This resolves #676
- The rule is now using the rulechain
2017-11-07 00:34:00 -03:00
Juan Martín Sotuyo Dodero
b1665cf6c1
Merge branch 'pr-708'
2017-11-06 18:54:59 -03:00
Andreas Dangel
243044b056
[doc] Update doc for xml/pom rules
2017-11-06 21:26:23 +01:00
Andreas Dangel
d07dcb085a
[xml] Move pom/ProjectVersionAsDependencyVersion to errorprone
2017-11-06 21:22:45 +01:00
Juan Martín Sotuyo Dodero
25da0c86f2
Merge branch 'pr-697'
2017-11-06 13:41:27 -03:00
Clément Fournier
82b76de771
More
2017-11-06 13:58:14 +01:00
Clément Fournier
fc683fbe12
Small improvements, PR #711
2017-11-06 13:57:12 +01:00
Clément Fournier
29f373dd78
Fix a few things, PR #711
2017-11-06 00:38:33 +01:00
Clément Fournier
9f10c9ca5c
Fix core and pom bug
2017-11-05 23:14:31 +01:00
Clément Fournier
b5a9857fbf
Remove unnecessary icons
2017-11-05 17:13:31 +01:00
Clément Fournier
eef30d2761
Add verbose mode
2017-11-05 16:52:39 +01:00
Juan Martín Sotuyo Dodero
9e1342f30a
Merge branch 'pr-696'
2017-11-04 19:48:28 -03:00
Juan Martín Sotuyo Dodero
9e894fdce9
Update changelog, refs #696
2017-11-04 19:47:58 -03:00
Juan Martín Sotuyo Dodero
8d381daeb3
Merge branch 'pr-669'
2017-11-04 19:40:14 -03:00
Juan Martín Sotuyo Dodero
3b28625b8a
Update changelog, refs #669
2017-11-04 19:39:31 -03:00
Juan Martín Sotuyo Dodero
5d6a03612e
Rename builder method
2017-11-04 19:19:39 -03:00
Travis CI (pmd-bot)
c011398c93
Update documentation
2017-11-04 21:26:32 +00:00
Juan Martín Sotuyo Dodero
e7e5e13a7d
Merge branch 'pr-703'
2017-11-04 18:18:13 -03:00
Andreas Dangel
e064efbad3
[apex] Move AvoidHardCodingId Rule to errorprone
2017-11-04 20:16:04 +01:00
Travis CI (pmd-bot)
dd2b06f748
Update documentation
2017-11-04 19:12:47 +00:00
Andreas Dangel
d0b3845ba0
Consider renamed rule MisleadingVariableName in RuleSetFactoryCompatibility
2017-11-04 19:57:31 +01:00
Andreas Dangel
e1a588f499
Merge branch 'master' into ruleset-categories
2017-11-04 19:53:21 +01:00
Andreas Dangel
04c8d0a6c9
Merge branch 'pr-687'
2017-11-04 19:40:56 +01:00
Andreas Dangel
961cf8d49a
Merge branch 'pr-686'
2017-11-04 19:32:36 +01:00
Juan Martín Sotuyo Dodero
0c0486d40c
Update maven wrapper to 3.5.2
2017-11-04 02:27:42 -03:00
Travis CI (pmd-bot)
1678017fe0
Update documentation
2017-11-03 21:24:16 +00:00
Juan Martín Sotuyo Dodero
9e024e06c0
Merge branch 'pr-706'
2017-11-03 18:16:28 -03:00
Juan Martín Sotuyo Dodero
6b618f6ce2
Merge branch 'pr-705'
2017-11-03 17:58:19 -03:00
Juan Martín Sotuyo Dodero
4f53c3efb8
Merge branch 'pr-707'
2017-11-03 17:53:25 -03:00
Juan Martín Sotuyo Dodero
e4440982cc
Merge branch 'pr-704'
2017-11-03 17:51:34 -03:00
Travis CI (pmd-bot)
51c7024a77
Update documentation
2017-11-03 20:43:10 +00:00
Juan Martín Sotuyo Dodero
e74237c74b
Merge branch 'pr-700'
2017-11-03 17:26:34 -03:00
Andreas Dangel
17f2e793d7
Fix TODO - false positive of UselessParenthesis (refs #709 )
2017-11-03 20:09:16 +01:00
Andreas Dangel
e0f92716d9
[xml] Reorganize rules into categories
2017-11-03 17:36:25 +01:00
Andreas Dangel
5b0472950c
[vm] Reorganize rules into categories
2017-11-03 17:08:34 +01:00
Andreas Dangel
cae170f4e2
[visualforce] Reorganize rules into categories
2017-11-03 16:37:34 +01:00
Andreas Dangel
9f70e9d2c8
[doc] Update generated plsql ruleset files
2017-11-03 16:30:15 +01:00
Andreas Dangel
5459636fbe
[plsql] Move rules and tests to new packages
2017-11-03 16:24:51 +01:00
Andreas Dangel
d05ca8ade4
[plsql] Reorganize rules into categories
2017-11-03 16:17:14 +01:00
Andreas Dangel
ac49d6fb6f
[doc] Update generated jsp ruleset files
2017-11-03 15:37:24 +01:00
Andreas Dangel
15526591d4
[jsp] Move rules and tests to new packages
2017-11-03 15:31:00 +01:00
Andreas Dangel
f05c865a24
[jsp] Reorganize rules into categories
2017-11-03 15:20:42 +01:00
Andreas Dangel
981887869d
[doc] Update generated apex ruleset files
2017-11-03 14:45:56 +01:00
Andreas Dangel
7e3b3fbff5
[apex] Update code climate ruleset
2017-11-03 14:45:27 +01:00
Andreas Dangel
8c53cb8879
[apex] Move rules and tests to new packages
2017-11-03 14:25:26 +01:00
Andreas Dangel
e9425e34d8
[apex] Reorganize rules into categories
2017-11-03 14:05:40 +01:00
Andreas Dangel
f00224cd90
[javascript] Update rule category descriptions
2017-11-03 12:27:00 +01:00
Andreas Dangel
5359b71569
[doc] Update generated ruleset documentation
2017-11-03 12:24:38 +01:00
Andreas Dangel
aacae9e47d
[java] Update category descriptions
2017-11-03 12:18:22 +01:00
Andreas Dangel
19c48cbcee
[doc] Fix unit test
2017-11-03 12:13:45 +01:00
Andreas Dangel
20863e1853
Fix checkstyle
2017-11-03 12:08:00 +01:00
Andreas Dangel
c9952e613c
[core] fix references to new rules for v6.0.0
2017-11-03 12:04:45 +01:00
Andreas Dangel
77959e9937
[java] Fix unit tests
2017-11-03 12:04:26 +01:00
Andreas Dangel
238494b092
[java] Moving rules into correct packages according to the new category - Part 3
2017-11-03 11:54:34 +01:00
Andreas Dangel
696c1cb651
[java] Moving rules into correct packages according to the new category - Part 2
2017-11-02 20:36:28 +01:00
Andreas Dangel
b3e485d325
[java] Moving rules into correct packages according to the new category - Part 1
2017-11-01 20:17:11 +01:00
Andreas Dangel
c29f2a44e6
Revert "Temporarily disable the unit tests until the rules are moved into the"
...
This reverts commit ded09b6498 .
2017-11-01 18:54:10 +01:00
Clément Fournier
ac2ff0f6af
Merge branch 'master' into properties-builder
2017-11-01 18:47:29 +01:00
Andreas Dangel
69be69c35c
[javascript] Add category descriptions
2017-11-01 18:44:34 +01:00
Andreas Dangel
fb79716cfa
[javascript] Move rule AvoidTrailingComma to errorprone
2017-11-01 18:43:35 +01:00
Clément Fournier
fc0cb45f49
Merge branch 'master' into properties-builder
2017-11-01 18:21:54 +01:00
Clément Fournier
6b50104cb5
Corrections for PR #669
2017-11-01 18:17:57 +01:00
Clément Fournier
8915e17f20
Fix focus problems
2017-11-01 15:47:46 +01:00
Clément Fournier
63a35c2967
Merge branch 'master' of https://github.com/pmd/pmd into fx-designer
2017-11-01 15:29:32 +01:00
Clément Fournier
c58921303d
Support Java 9 and 8
2017-11-01 15:29:11 +01:00
Clément Fournier
1295f29ac9
Export to rule wizard
2017-10-31 19:01:51 +01:00
Andreas Dangel
593226ce2a
[doc] Update generated ecmascript ruleset files
2017-10-31 15:58:35 +01:00
Andreas Dangel
a4248afbbc
[javascript] Move rules and tests to new packages
2017-10-31 15:48:05 +01:00
Andreas Dangel
b2f8cc094c
[javascript] Reorganize rules into categories
2017-10-31 15:32:50 +01:00
Andreas Dangel
1d07ad353e
[doc] Update generated ruleset documentation
2017-10-31 12:17:55 +01:00
Andreas Dangel
57c1021c3c
[java] Move rules between categories, fix typo for AvoidAccessibilityAlteration
2017-10-31 11:58:22 +01:00
Juan Martín Sotuyo Dodero
c466179c2a
Handle SecurityErrors on bad auxclasspath entries
2017-10-31 01:53:03 -03:00
Andreas Dangel
cee3d6ad2d
Fix invalid language version
2017-10-30 22:00:52 +01:00
Andreas Dangel
cc5ff0a018
[doc] Adjust rule doc generator to use "category"
2017-10-30 21:19:49 +01:00
Andreas Dangel
68a56ee0d8
[java] Move category rulesets into own category directory
...
restore previous design rulesest
2017-10-30 21:19:36 +01:00
Andreas Dangel
bf6eacf96b
[java] Fix wrong externalInfoUrls, add missing minimumLanguageVersion
2017-10-30 21:19:04 +01:00
Juan Martín Sotuyo Dodero
64628370c8
Merge branch 'pr-679'
2017-10-30 16:56:17 -03:00
Juan Martín Sotuyo Dodero
eb526f55ac
Update changelog, refs #679
2017-10-30 16:55:40 -03:00
Juan Martín Sotuyo Dodero
91d40710dc
Temporarily disable PMD checks on Travis
2017-10-30 16:54:38 -03:00
Matias Comercio
9348c54afb
Fix PR - 1
...
- Remove unnecessary asserts for checking setup
- Improve `for` loop performance in AbstractNode.removeChildAtIndex method
- Remove unnecessary detachment of the node being removed children
2017-10-30 15:39:16 -03:00
Juan Martín Sotuyo Dodero
67f0fbbbfe
Add missing @Overrides
2017-10-30 00:26:42 -03:00
Andreas Dangel
0a38e06442
[doc] add generated ruleset documentation
2017-10-29 21:32:45 +01:00
Andreas Dangel
6a6ef9e18e
[doc] fix doc generator tests which depended on a ruleset from java
2017-10-29 21:28:40 +01:00
Andreas Dangel
ded09b6498
Temporarily disable the unit tests until the rules are moved into the
...
correct packages
2017-10-29 21:12:39 +01:00
Andreas Dangel
42973c4291
[java] Reorganize rulesets into new categories
...
Best Practices, Code Style, Design, Documentation, Error Prone,
Multithreading, Performance, Security
2017-10-29 21:11:59 +01:00
Matias Comercio
2466ba7163
Add remove & removeChildAtIndex to Node interface
...
- Implement these methods at AbstractNode.
- Add AbstractNodeTest class with test cases for the implemented methods.
- Add JUnitParams dependency: https://github.com/Pragmatists/JUnitParams
- Implement these test cases using JUnitParams features
2017-10-29 13:18:06 -03:00
Matias Comercio
8e120da008
Fix missing validation on cast for AbstractJavaRule
2017-10-28 19:47:32 -03:00
Juan Martín Sotuyo Dodero
368ca2b3d6
Merge branch 'pr-694'
2017-10-28 18:14:38 -03:00
Juan Martín Sotuyo Dodero
6072b50f11
Update changelog, refs #694
2017-10-28 18:14:16 -03:00
Matias Comercio
d21be5ddc1
Add minor fixes to root pom
2017-10-28 17:44:18 -03:00
Andreas Dangel
989dd133fd
Merge branch 'pr-692'
2017-10-28 20:18:56 +02:00
Andreas Dangel
2dec92c9d5
Merge branch 'pr-691'
2017-10-28 20:04:10 +02:00
Andreas Dangel
0cff7b841a
[java] Mark ASTArrayDimsAndInits and ASTVariableDeclaratorId as Dimensionable
2017-10-28 20:01:07 +02:00
Andreas Dangel
6b1b135104
Merge branch 'pr-690'
2017-10-28 19:55:59 +02:00
Andreas Dangel
ca9b42b7e5
Merge branch 'pr-689'
2017-10-28 19:48:39 +02:00
gonzalo
91b8a22b42
Update GenericToken specialToken method to obtain only comment tokens
2017-10-28 14:42:44 -03:00
gonzalo
e8fdbdbca4
Update GenericToken interface to expose directly region methods
2017-10-28 14:42:44 -03:00
gonzalo
0e011767ce
Change ant tasks over (VM) Token class
2017-10-28 14:42:44 -03:00
gonzalo
c606d409f4
Change ant tasks over (Python) Token class
2017-10-28 14:42:44 -03:00
gonzalo
1c0d762a37
Change ant tasks over (PL/SQL) Token class
2017-10-28 14:42:44 -03:00
gonzalo
da902d658f
Change ant tasks over (Objective-C) Token class
2017-10-28 14:42:44 -03:00
gonzalo
026576e266
Change ant tasks over (Matlab) Token class
2017-10-28 14:42:44 -03:00
gonzalo
f29e3f0408
Change ant tasks over (CPP) Token class
2017-10-28 14:42:44 -03:00
gonzalo
647a17f060
Change ant tasks over (Ecmascript5) Token class
2017-10-28 14:42:44 -03:00
gonzalo
26461e59c1
Simplify method name in GenericToken && improve ant task replacetoken
2017-10-28 14:42:44 -03:00
gonzalo
95835b8134
Update getter in GenericToken
2017-10-28 14:42:44 -03:00
gonzalo
00ed0a1eab
Add RegionByLineImpl javadoc
2017-10-28 14:42:44 -03:00
gonzalo
00ce16c177
[Not Working] Change ant tasks over (VisualForce) Token class
2017-10-28 14:42:44 -03:00
gonzalo
020abafeab
Change ant tasks over (JSP) Token class
2017-10-28 14:42:44 -03:00
gonzalo
490b34fea3
Change ant tasks over (Java) Token class
2017-10-28 14:42:44 -03:00
gonzalo
2d01332635
Convert GenericToken from class to interface && Add RegionByLine
2017-10-28 14:42:44 -03:00
Andreas Dangel
591737b2d9
Merge branch 'pr-688'
2017-10-28 19:41:28 +02:00
Andreas Dangel
c728db039e
Merge branch 'pr-683'
2017-10-28 19:31:49 +02:00
Andreas Dangel
6d846af07e
Merge branch 'pr-680'
2017-10-28 19:27:39 +02:00
Andreas Dangel
20f16762f2
Update release notes, refs #680
2017-10-28 19:19:27 +02:00
Juan Martín Sotuyo Dodero
d1d9c6f3c6
[java] Fix NPE in type resolution
...
- The resolution of `GenericArrayType` was broken, so we caused NPEs.
- Those types are now properly resolved, but the test case is still
incomplete due to missing pieces in type inference
2017-10-27 23:53:17 -03:00
Juan Martín Sotuyo Dodero
71d94b4ccd
[java] Avoid runtime errors on incomplete classpath
2017-10-27 02:27:32 -03:00
Juan Martín Sotuyo Dodero
83d513edca
Fix specificity test for varargs vs fixed
...
- We used to fail upon mixing varargs with fixed arity instead of
treating the vararg as a fixed arity as per the spec
2017-10-27 00:57:21 -03:00
Juan Martín Sotuyo Dodero
1d02c24b34
Consider only direct children
2017-10-27 00:08:26 -03:00
Juan Martín Sotuyo Dodero
b3dea3240c
Generalize test
2017-10-26 22:38:40 -03:00
Juan Martín Sotuyo Dodero
b76945bbbb
Be consistent on naming
2017-10-26 22:33:31 -03:00
Juan Martín Sotuyo Dodero
05927af574
[java] Properly resolve array types
...
- Honor dimensions of arrays
- Resolve types for allocations as well as declarations of arrays
2017-10-26 22:31:29 -03:00
Juan Martín Sotuyo Dodero
d8f203a859
Chesktyle
2017-10-26 18:03:54 -03:00
Juan Martín Sotuyo Dodero
8fe2befbbc
Add a proper test case
2017-10-26 13:11:39 -03:00
Juan Martín Sotuyo Dodero
ae2898e238
[java] Properly handle 0-arg calls
...
- We no longer take all methods as applicable for a 0-arg method call
during type resolution.
2017-10-26 12:23:44 -03:00
Juan Martín Sotuyo Dodero
71200e6a67
Default to reduce to false for the time being
2017-10-26 10:06:18 -03:00
Juan Martín Sotuyo Dodero
92cc66a8cd
Checkstyle fixes
2017-10-26 01:13:04 -03:00
Juan Martín Sotuyo Dodero
9d59c0317c
[java] Fix boxing rules
...
- Boolean types were not considered since we were using the
subtypability set which deals exclusively with numeric types
- Fixes #650
2017-10-26 00:54:47 -03:00
Juan Martín Sotuyo Dodero
eb22ab194c
Update changelog, refs #603
2017-10-25 18:06:34 -03:00
Juan Martín Sotuyo Dodero
1308b2c7fa
[core] Changes to execution classpath invalidate cache
...
- Resolves #603
2017-10-25 18:03:13 -03:00
Juan Martín Sotuyo Dodero
ebeab0f445
[java] Simplify ForLoopShouldBeWhileLoop
...
- Remove checks that will always be true (a node can't be a Type and
a Statement and an Expression at the same time)
- Simplify count(*) > 1 checks (expensive) for an Expression check (the one
node we actually care about)
2017-10-25 12:57:35 -03:00
Juan Martín Sotuyo Dodero
20093c809a
Rework ruleset loading
...
- ResourceLoader is now instantiable, and we can tell which classloader
to use to get resources
- We will always use the execution classloader, or just add the paths
added by ant, but *never* the auxclasspath
- The classpath added by Ant won't get into the auxclasspath either
2017-10-24 18:07:09 -03:00
Juan Martín Sotuyo Dodero
042b1bda02
[java] Handle properly reduction incompatibilities
...
- When a reduce operation return null (it's incompatible), we should
handle it properly instead of producing a NPE.
2017-10-24 00:13:01 -03:00
Juan Martín Sotuyo Dodero
42d965844f
Avoid duplicate code
2017-10-23 17:46:21 -03:00
Juan Martín Sotuyo Dodero
96bb1f4bc7
[core] Support parent-last classloading
...
- We will now always load classes from auxclasspath during
typeresolution, even if we have a class with the same name in PMD's
classpath
- This prevents conflicts when using different versions of the same
dependencies
2017-10-23 14:23:05 -03:00
Juan Martín Sotuyo Dodero
2d15c6dba6
Merge branch 'pr-661'
2017-10-19 00:42:27 -03:00
Juan Martín Sotuyo Dodero
91bf92fe26
Update changelog, refs #661
2017-10-18 23:59:07 -03:00
Juan Martín Sotuyo Dodero
8ef0d6989c
Move AvoidHardcodingIdRule to style ruleset
2017-10-18 23:58:44 -03:00
Juan Martín Sotuyo Dodero
e3f9c728d7
content update
2017-10-18 23:51:01 -03:00
Juan Martín Sotuyo Dodero
b9e76ab28f
Merge branch 'pr-675'
2017-10-18 11:45:41 -03:00
Juan Martín Sotuyo Dodero
fded4f140f
Update changelog, refs #675
2017-10-18 11:45:26 -03:00
gonzalo
c00400ef77
Fix try with final resource
2017-10-18 08:50:06 -03:00
Travis CI (pmd-bot)
53210842c8
Update documentation
2017-10-17 16:59:20 +00:00
Juan Martín Sotuyo Dodero
fc3da283bd
Merge branch 'pr-666'
2017-10-17 13:43:52 -03:00
Juan Martín Sotuyo Dodero
92f1cdd923
Update changelog, refs #666
2017-10-17 13:42:28 -03:00
Juan Martín Sotuyo Dodero
30aa7fca11
Add DoNotExtendJavaLangThrowable to release ruleset
2017-10-17 13:35:45 -03:00
Juan Martín Sotuyo Dodero
2e3e884426
Merge branch 'pr-665'
2017-10-17 13:13:06 -03:00
Juan Martín Sotuyo Dodero
a8823b96cf
Merge branch 'pr-670'
2017-10-17 12:54:51 -03:00
Andreas Dangel
2b60ecaead
Update release notes, refs #605
2017-10-16 21:26:12 +02:00
Andreas Dangel
ffcf5cb704
[apex] Remove shading for the apex modules - not needed anymore
...
Fixes #605 . The apex modules do not contain any non-apex code anymore
(not an uber-jar anymore).
Explicitely defining asm as runtime dependency.
2017-10-16 21:26:12 +02:00
Andreas Dangel
4eab602fd3
Merge branch 'pr-668'
2017-10-16 21:18:14 +02:00
Andreas Dangel
4f2c7960e6
Update changelog, refs #668
2017-10-16 21:18:06 +02:00
Clément Fournier
d7d502e0c4
Fix maven
2017-10-16 19:53:43 +02:00
Clément Fournier
a986e38b3d
Merge branch 'master' of https://github.com/pmd/pmd into fx-designer
2017-10-16 13:54:30 +02:00
Clément Fournier
c50311bd85
Correct formatter
2017-10-16 00:08:56 +02:00
Clément Fournier
a47471f742
Replace IntegerProperty
2017-10-15 22:22:36 +02:00
Clément Fournier
d891fe048a
Fix javadoc warnings on pmd-core
2017-10-15 22:07:34 +02:00
Clément Fournier
13f3651048
Cleanup
2017-10-15 21:56:09 +02:00
Clément Fournier
57631bfb30
Few PoCs
2017-10-15 19:59:58 +02:00
Clément Fournier
12855d3cf2
Fix tests
2017-10-15 18:02:24 +02:00
Clément Fournier
6295a96783
Refactored everything
2017-10-15 17:50:02 +02:00
Clément Fournier
2c16faff36
Refactor numeric properties
2017-10-15 16:45:26 +02:00
Clément Fournier
2d449dbef6
Full builder hierarchy
2017-10-15 16:30:14 +02:00
Clément Fournier
610cd21a9c
Clarify design
2017-10-15 15:58:23 +02:00
Clément Fournier
2e272c3f7b
More mature design w/ small PoC
2017-10-15 14:42:44 +02:00
Clément Fournier
aff5f20112
Draft of builders
2017-10-15 13:08:47 +02:00
Clément Fournier
4f6e55ce26
Mediator pattern
2017-10-14 20:02:00 +02:00
Robert Painsi
82b219428b
[java] Add DoNotExtendJavaLangThrowable rule
...
Copy and pasted code from DoNotExtendJavaLangError rule.
Resolves #367
https://github.com/pmd/pmd/issues/367
2017-10-14 18:19:55 +02:00
Andreas Dangel
77968550ef
[java] Fix unit tests
2017-10-13 14:09:47 +02:00
Andreas Dangel
944b2f448b
[java] Move rule SignatureDeclareThrowsException from typeresolution to strictexception
...
Replace existing rule with the typeresolution-based implementation.
2017-10-13 14:04:27 +02:00
Andreas Dangel
8470d32322
[java] Move rule UnusedImports from typeresolution to imports
...
Replace existing rule with the typeresolution-based implementation.
2017-10-13 12:54:26 +02:00
Andreas Dangel
a89d449169
[java] Move rule CloneMethodMustImplementCloneable from typeresolution to clone
...
Replace existing rule with the typeresolution-based implementation.
2017-10-13 12:37:04 +02:00
Andreas Dangel
2ef082ae19
[java] Move rule LooseCoupling from typeresolution to coupling
...
Replace existing rule with the typeresolution-based implementation.
2017-10-13 12:36:36 +02:00
Andreas Dangel
598c7910a3
Merge branch 'pr-664'
2017-10-13 10:51:00 +02:00
Andreas Dangel
d2c52eb37b
Merge branch 'pr-662'
2017-10-13 10:48:31 +02:00
Andreas Dangel
e737e38d73
[ci] check for var encrypted_5630fbebf057_iv in setup-secrets
...
This should now allow forked builds to finally run on travis...
2017-10-13 10:37:16 +02:00
Juan Martín Sotuyo Dodero
6f5f6d3d97
Update changelog, refs #328
2017-10-10 12:10:59 -03:00
Juan Martín Sotuyo Dodero
dbe0168865
[java] Avoid errors upon resolving invalid classes
...
- Resolves #328
- Take the chance to simplify some error handling
(`NoClassDefFoundError` extends `LinkageError`)
2017-10-10 12:08:52 -03:00
Juan Martín Sotuyo Dodero
a81d142317
[core] Avoid a phony warning about not using cache
...
- Avoid creating a NoopAnalysisCache by default to prevent a phony
warning about not using the cache being printed.
- This way, we only produce a new instance lazily if not configured,
preserving the same behaviour bu without the warning.
2017-10-10 00:46:07 -03:00
Jan Aertgeerts
475405e18f
[apex] test issue - count
2017-10-09 23:43:43 +02:00
Jan Aertgeerts
9845f74f68
[apex] rework visit
2017-10-09 23:35:14 +02:00
Jan Aertgeerts
6989b45067
[apex] avoid hardcoding id's
2017-10-09 23:24:47 +02:00
Travis CI (pmd-bot)
da8ac69f4e
Update documentation
2017-10-09 19:10:37 +00:00
Juan Martín Sotuyo Dodero
6000bcb2e2
Merge branch 'pr-660'
2017-10-09 15:51:11 -03:00
Juan Martín Sotuyo Dodero
047dfa54f0
Update changelog, refs #660
2017-10-09 15:48:40 -03:00
Juan Martín Sotuyo Dodero
4dcef95e43
Add new apex-performance/AvoidSoslInLoops rule to 600 ruleset
2017-10-09 15:44:20 -03:00
Jan Aertgeerts
96de1715cd
[apex] avoid sosl in loops
2017-10-09 16:04:54 +02:00
Travis CI (pmd-bot)
591eedecea
Update documentation
2017-10-08 23:28:51 +00:00
Juan Martín Sotuyo Dodero
60c87ff783
Merge branch 'pr-625'
2017-10-08 20:20:10 -03:00
Juan Martín Sotuyo Dodero
34a565ca00
Update changelog, refs #625
2017-10-08 20:00:36 -03:00
Juan Martín Sotuyo Dodero
3c067d8071
Add references to 6.0.0 release ruleset
2017-10-08 19:55:32 -03:00
Travis CI (pmd-bot)
ec63573517
Update documentation
2017-10-08 22:54:47 +00:00
Juan Martín Sotuyo Dodero
33804aa08f
Merge branch 'pr-632'
2017-10-08 19:45:38 -03:00
Juan Martín Sotuyo Dodero
f3b3bdb693
Update changelog, refs #632
2017-10-08 19:44:56 -03:00
Juan Martín Sotuyo Dodero
9b28bdbe86
Add AvoidDirectAccessTriggerMap to 6.0.0 release rs
2017-10-08 19:37:16 -03:00
Andreas Dangel
5279901a03
[ci] fix script
2017-10-08 09:54:02 +02:00
Andreas Dangel
f13ba86f9c
[ci] consider forked builds as pull requests
...
forked builds are travis builds on forked repos
2017-10-08 09:43:56 +02:00
Jan Aertgeerts
dedf954cb0
[apex] move to style ruleset and add literal expression in arrayload exception
2017-10-07 23:28:38 +02:00
Andreas Dangel
61376f8112
[core] add temporary support for maven debug output
...
refs #650
2017-10-07 21:28:56 +02:00
Juan Martín Sotuyo Dodero
005e0d0fdf
Merge branch 'pr-653'
2017-10-06 19:09:21 -03:00
Juan Martín Sotuyo Dodero
312d896db8
update changelog, refs #653
2017-10-06 19:08:59 -03:00
Andreas Dangel
1c3049ee6c
Fix checkstyle
2017-10-06 21:07:25 +02:00
Andreas Dangel
1af49cdca9
Fix checkstyle
2017-10-06 20:25:01 +02:00
Andreas Dangel
af4ddfbbcf
[java] Fix rule StringToString after arrays are arrays
2017-10-06 20:17:09 +02:00
Andreas Dangel
e84866aa8d
[java] typeresolution: don't throw if the type variables couldn't be resolved
2017-10-06 20:09:26 +02:00
Andreas Dangel
ece871c2f7
[java] typeresolution: when we couldn't resolve a method in
...
the first two phases, we assumed, that it would be varargs method.
This is not always the case.
2017-10-06 19:48:55 +02:00
Andreas Dangel
afae1385aa
[java] typeresolution: support varags with generics
2017-10-06 18:05:30 +02:00
Andreas Dangel
acc05d4c9c
[java] typeresolution: resolve arrays in some cases correctly
2017-10-06 18:05:27 +02:00
Andreas Dangel
04e65cd20c
[java] typeresolution: avoid NPE if no type is known for a method argument
2017-10-06 18:05:27 +02:00
Andreas Dangel
231956c47e
[java] typeresolution: simple inheritance/override check
2017-10-06 18:05:24 +02:00
Andreas Dangel
c0302cd314
[java] check for parsing/processing errors in unit test
2017-10-05 22:40:37 +02:00
Andreas Dangel
1582e40055
[java] typeresolution - add unit test for abstract return type case
2017-10-05 22:31:55 +02:00
Andreas Dangel
716e21221c
[java] typeresolution: add test for generic wildcard method parameters
2017-10-05 22:28:00 +02:00
Juan Martín Sotuyo Dodero
d5a83ae807
Revert "Revert "Merge branch 'pr-287'""
...
This reverts commit 63ea1906af .
2017-10-05 17:03:57 -03:00
Andreas Dangel
efb78e9f79
[java] TypeResolution - support basic method overriding
2017-10-05 21:39:16 +02:00
Andreas Dangel
2e5dcf9a95
[java] Fix NPE in NcssCount rule
...
Parent could also be a enum or an annotation and not just a class/interface.
2017-10-05 21:04:25 +02:00
Andreas Dangel
dd596f0aef
[java] Typeresolution: Return empty set instead of null for erased cadidate set
2017-10-05 20:56:46 +02:00
Andreas Dangel
b517838fbb
[java] Fix ClassTypeResolver when using annotated types
2017-10-04 21:09:49 +02:00
Andreas Dangel
1ecf87c2b5
[java] Fix RedundantFieldInitializerRule not able to parse java7 literals with underscore
2017-10-04 20:54:42 +02:00
Clément Fournier
0cb4d99645
Make it work
2017-10-02 23:05:04 +02:00
Clément Fournier
15b638082b
Split fxml and controllers
2017-10-02 02:24:39 +02:00
Clément Fournier
619f19cd83
Extracted XPath and node info
2017-10-01 22:06:19 +02:00
Clément Fournier
e96604dec2
Merge branch 'master' of https://github.com/pmd/pmd into fx-designer
2017-10-01 17:49:28 +02:00
Clément Fournier
9d1c491c8d
Use random group names in highlighters
2017-10-01 15:37:26 +02:00
Clément Fournier
b8ac709161
Change syntax highlighting algorithm
...
Boost in time and space performance
2017-10-01 15:00:34 +02:00
Andreas Dangel
6fc758c21a
[ci] enable all java9 modules for sonar and coveralls
2017-10-01 14:08:07 +02:00
Andreas Dangel
e991f2c4f3
[ci] run sonar and coveralls without travis wait
2017-10-01 13:40:49 +02:00
Andreas Dangel
a1a4b0b9eb
Defining jacoco version, so that sonar might work again
2017-10-01 13:18:35 +02:00
Juan Martín Sotuyo Dodero
d192c5668b
Merge branch 'pr-646'
2017-09-30 19:16:57 -03:00
Juan Martín Sotuyo Dodero
e055416aaa
Merge branch 'pr-645'
2017-09-30 18:54:03 -03:00
Juan Martín Sotuyo Dodero
f7c0437470
Merge branch 'pr-644'
2017-09-30 18:40:48 -03:00
Juan Martín Sotuyo Dodero
077792cf26
Update changelog, refs #644
2017-09-30 18:40:00 -03:00
Juan Martín Sotuyo Dodero
5d51df880a
Add JUnit test to validate output
2017-09-30 18:37:04 -03:00
Juan Martín Sotuyo Dodero
8086746d96
Merge branch 'pr-606'
2017-09-30 17:38:55 -03:00
Clément Fournier
c0c5e73a0b
Improve syntax highlighting performance
2017-09-30 17:37:50 +02:00
Clément Fournier
ab8feda251
Styling
2017-09-30 15:24:31 +02:00
Andreas Dangel
24097aa3fa
Fix whitespace
2017-09-30 11:32:01 +02:00
Andreas Dangel
d7c1dac59a
Merge branch 'pr-619'
2017-09-30 11:31:27 +02:00
Andreas Dangel
54b68c9238
Update changelog, refs #618
2017-09-30 11:30:39 +02:00
Andreas Dangel
72db0dfc07
Merge branch 'pr-616'
2017-09-30 10:39:04 +02:00
Andreas Dangel
15a1097aa2
Update release notes, mention PMD.setupReport is gone.
2017-09-30 10:38:20 +02:00
Andreas Dangel
ef42ac0d88
Update release notes, refs #604
2017-09-29 19:52:16 +02:00
Andreas Dangel
e60d1c2a24
Merge branch 'pr-615'
2017-09-29 19:42:11 +02:00
Andreas Dangel
66b67a8a95
Merge branch 'pr-614'
2017-09-29 14:16:29 +02:00
Andreas Dangel
f59ec03db1
Merge branch 'pr-612'
2017-09-29 11:42:08 +02:00
Andreas Dangel
883465772c
[doc] Updated getting help
2017-09-29 11:38:11 +02:00
Andreas Dangel
3f2610ea21
Merge branch 'pr-602'
2017-09-29 11:21:26 +02:00
Andreas Dangel
eb6624deb6
Update doc about "How PMD Works"
2017-09-29 11:20:42 +02:00
Andreas Dangel
f7d67df442
Remove ruleset schema 3.0.0
2017-09-29 11:20:37 +02:00
Andreas Dangel
b42ba5ea45
Update release notes, refs #602
2017-09-29 10:41:09 +02:00
Clément Fournier
e21cf002f6
Documentation
2017-09-28 21:21:01 +02:00
Clément Fournier
1de1633587
Improve syntax highlighting internals
2017-09-28 21:20:41 +02:00
Clément Fournier
3f503e9f7d
Draft of exception logging
2017-09-28 00:25:56 +02:00
Andreas Dangel
712a29d3ea
Update release notes, mentioning java9 is the new default
2017-09-27 21:26:21 +02:00
Andreas Dangel
5bfff7615f
Add missing entity resolver in unit test
2017-09-27 21:20:45 +02:00
Andreas Dangel
8113696941
Update ASM library to support java9
2017-09-27 21:11:37 +02:00
Clément Fournier
9e906da5db
Fix xml syntax highlighter overflow
2017-09-27 12:44:24 +02:00
Clément Fournier
f0f289df0c
Major UI redesign, looking good
2017-09-27 01:35:59 +02:00
Clément Fournier
4173e7c495
Fix synchronization problem
2017-09-25 23:09:46 +02:00
Clément Fournier
cd16b18ed6
Revamp syntax highlighting + support XML
2017-09-25 22:41:13 +02:00
Clément Fournier
0e2803c1f8
Nice tab model
2017-09-25 15:16:02 +02:00
Clément Fournier
8a05e36196
Focus from violation results to ast -> inefficient for large files
2017-09-24 18:25:08 +02:00
Clément Fournier
27addb5014
Made UI for event logging
2017-09-24 17:40:26 +02:00
Clément Fournier
f686c4858c
Fix open recent menu
2017-09-24 16:08:59 +02:00
Clément Fournier
0f6ad23a78
Change xpath selection to choicebox
2017-09-24 15:06:49 +02:00
Clément Fournier
7e475632b4
Make css great again
2017-09-24 14:37:39 +02:00
Clément Fournier
49dd443a48
Reorganise style context
2017-09-24 13:39:17 +02:00
Clément Fournier
fa19af9a57
Refactor CSS pt 1
2017-09-24 13:29:43 +02:00
Andreas Dangel
2f67eaf7e6
[ci] Update travis scripts to use java 9
2017-09-24 10:39:54 +02:00
Andreas Dangel
166f958ce2
[doc] Update docs, remove toolchain requirements, require java 9
2017-09-24 10:39:49 +02:00
Andreas Dangel
577ef1ff71
Declaring used dependencies explicitly
...
as determined by dependency:analyze
2017-09-24 10:39:49 +02:00
Andreas Dangel
a175b90665
Update plugins
2017-09-24 10:39:44 +02:00
Andreas Dangel
b72f1bd18c
Adjust javadoc settings: disable doclint, add weird dependency
2017-09-24 10:39:39 +02:00
Clément Fournier
1451ff80a2
Improve Java syntax highlighting
2017-09-24 03:16:44 +02:00
Clément Fournier
f784d85b92
Add XPath syntax highlighter
2017-09-24 02:42:20 +02:00
Clément Fournier
5cb7aa0620
Move language selection into choicebox
2017-09-24 00:52:16 +02:00
Clément Fournier
facc7c141c
Simplify syntax highlighting internals
2017-09-23 23:49:56 +02:00
Clément Fournier
b8a99a2174
Add logo proposition
2017-09-23 22:43:39 +02:00
Clément Fournier
1878916abe
Apex syntax highlighter
2017-09-23 22:43:07 +02:00
Clément Fournier
a8f8d60870
Add manifest stuff to package jar
2017-09-23 22:40:34 +02:00
Clément Fournier
f5e72214ba
Add opt out for syntax highlighting
2017-09-23 20:25:16 +02:00
Andreas Dangel
8bd413591f
Add enforcer plugin to make sure, we are using java9
2017-09-23 19:24:37 +02:00
Andreas Dangel
ade0d7d029
Update compiler plugin, use "release" option, adjust java.version properties
...
No need for the toolchain plugin anymore
2017-09-23 19:24:17 +02:00
Andreas Dangel
8fc518c814
Using java9 as default version
2017-09-23 18:48:37 +02:00
Clément Fournier
d93fa7535e
Syntax highlighting for Java
2017-09-23 18:48:02 +02:00
Clément Fournier
a66c5a448f
Style layer management
2017-09-23 16:03:34 +02:00
Clément Fournier
ca2e28742d
Custom code area control
2017-09-23 02:15:01 +02:00
Andreas Dangel
51181f123f
Update release notes, refs #584
2017-09-23 00:31:02 +02:00
Andreas Dangel
6590a358e6
Support concise try-with-resources with java9
2017-09-23 00:15:08 +02:00
Andreas Dangel
280a656f87
Checkstyle
2017-09-22 23:51:56 +02:00
Andreas Dangel
f30eb4b5ff
Use semantic lookahead for the module productions
...
The new keyword are only "restricted keywords" and can still be used
as identifiers.
2017-09-22 23:43:43 +02:00
Andreas Dangel
07eede38db
Fix unit test after changing return type to String (for XPath attributes)
2017-09-22 23:39:38 +02:00
Filipe Esperandio
a4c1150891
Fix wrong internal property name
2017-09-22 17:18:48 -03:00
Filipe Esperandio
4d01d2c6d5
Remove import
2017-09-22 17:13:01 -03:00
Filipe Esperandio
c6aaf3fbc4
Prevent internal dev-properties from being displayed on CodeClimate's documentation markdown
2017-09-22 17:10:10 -03:00
Andreas Dangel
1020bf73db
Enhance grammar to parse Java 9 module-info.java
2017-09-22 21:35:24 +02:00
Andreas Dangel
cb772167bb
Simplify Java Language Module
2017-09-22 15:37:23 +02:00
Andreas Dangel
fa44c405bd
Interface methods can be private now
2017-09-22 15:32:24 +02:00
Andreas Dangel
672f9216dd
Simplify grammar: TypeArguments is not used here, it's resolved
...
as a child by ClassOrInterfaceType already
2017-09-22 15:32:24 +02:00
Andreas Dangel
77222904de
Check for diamond operator for anonymous classes
2017-09-22 15:32:19 +02:00
Andreas Dangel
722b2b1657
Allow nested private methods
2017-09-22 13:33:08 +02:00
Andreas Dangel
cfa4b5b85c
Add Java9 Language Module, Update grammar
...
* Java8 mode now rejects private methods in interfaces
* Java9 mode now rejects "_" as identifier
2017-09-22 12:19:38 +02:00
Clément Fournier
d12e70aab5
Truly disable multifile
2017-09-22 01:04:48 +02:00
Jan Aertgeerts
2639b4fe66
[apex] Add AvoidDirectAccessTriggerMap rule to the performance set
2017-09-20 12:42:22 +02:00
Jan Aertgeerts
8bc6810196
[apex] add empty statement block rule
2017-09-19 10:21:55 +02:00
Jan Aertgeerts
a890dbf68c
[apex] use correct AST
2017-09-18 20:12:57 +02:00
Jan Aertgeerts
5d7237cd2d
[apex] style, indent
2017-09-18 00:35:00 +02:00
Jan Aertgeerts
882139e189
[apex] fix tests and add to ruleset for tests
2017-09-17 23:35:42 +02:00
Clément Fournier
60d40aee6b
Checkstyle
2017-09-17 23:17:32 +02:00
Clément Fournier
4f25c1feb3
Add test case for operations
2017-09-17 22:54:40 +02:00
Clément Fournier
8af7d28197
Corrections for PR #602
2017-09-17 22:38:54 +02:00
Jan Aertgeerts
62c1a6fc68
[apex] single quote ruining tests xml
2017-09-17 21:50:39 +02:00
Jan Aertgeerts
1ddd5d2ac6
[apex] fix catch xpath and add meaningful names for test cases
2017-09-17 21:37:54 +02:00
Jan Aertgeerts
8a95fcd257
[apex] fix xpath, test recheck
2017-09-17 19:54:01 +02:00
Jan Aertgeerts
bec10ce1d2
[apex] add tests for empty checks
2017-09-17 19:42:24 +02:00
Jan Aertgeerts
00b06ef810
[apex] version since in empty rules, correct xpath expression
2017-09-17 18:46:05 +02:00
Jan Aertgeerts
cacb82ace5
[apex] Add test for empty xpath checks.
2017-09-17 18:45:37 +02:00
Clément Fournier
4545c8bf18
Ignore typeres failures
2017-09-17 16:35:24 +02:00
Jan Aertgeerts
c3da9ec086
empty code ruleset for apex
2017-09-17 16:19:51 +02:00
Clément Fournier
48b89ac8d2
Remember recent files
2017-09-17 15:18:29 +02:00
Clément Fournier
6e645502ec
Fix divider positions on maximize
2017-09-17 14:03:39 +02:00
Clément Fournier
62a1fbd189
Save full screen setting
2017-09-17 02:28:48 +02:00
Clément Fournier
88f4e2722e
Scope hierarchy
2017-09-16 20:26:58 +02:00
Clément Fournier
fee9c5cdef
Add license and load source from file
2017-09-16 18:24:21 +02:00
Travis CI (pmd-bot)
df87db8d7a
Update documentation
2017-09-16 14:34:19 +00:00
Andreas Dangel
9e55969eb1
Merge branch 'pr-601'
2017-09-16 16:18:17 +02:00
Andreas Dangel
16eb55d0c8
Merge branch 'pr-596'
2017-09-16 16:09:45 +02:00
Andreas Dangel
4272674488
Merge branch 'pr-593'
2017-09-15 11:07:56 +02:00
Andreas Dangel
7ec56e37b0
Merge branch 'pr-592'
2017-09-15 10:59:14 +02:00
Juan Martín Sotuyo Dodero
8d808049f3
Merge branch 'pr-620'
2017-09-14 11:49:25 -03:00
Juan Martín Sotuyo Dodero
5bbca3e59d
Update changelog, refs #620
2017-09-14 11:49:08 -03:00
Juan Martín Sotuyo Dodero
02fc43737a
Remove commented default access modifier
2017-09-14 11:47:52 -03:00
Clément Fournier
51fc08a8f6
Fix compil error
2017-09-14 15:31:31 +02:00
Clément Fournier
0349ad74c1
Forgot stuff in n.s.pmd
2017-09-14 15:28:40 +02:00
Clément Fournier
45cb608c17
Merge branch 'multifile-split' of https://github.com/oowekyala/pmd into multifile-split
2017-09-14 14:37:18 +02:00
Clément Fournier
f02026995d
Merge upstream
2017-09-14 14:37:00 +02:00
Clément Fournier
4743b92a09
Merge branch 'master' into multifile-split
2017-09-14 00:30:04 +02:00
Clément Fournier
6a162c238c
Moved properties to n.s.pmd.properties
2017-09-14 00:05:55 +02:00
Juan Martín Sotuyo Dodero
14cb503713
[core] Revamp charset / stream management
...
- File encoding is converted to Charset only once. Errors in it's setup
wil fail the run immeditable instead of producing one error per file.
- We make sure to close the source stream from the same place we create
it, by using try-with-resources
- When wrapping the stream to a reader, we use try-with-resources
again, just in case
- The bechmark code now takes into account charset setup, and more
closely resembles the normal execution path
- This fixes #618
2017-09-13 18:22:38 -03:00
Juan Martín Sotuyo Dodero
09d49c6e68
Merge branch 'pr-587'
2017-09-12 18:01:10 -03:00
Juan Martín Sotuyo Dodero
8273c9e188
Update changelog, refs #587
2017-09-12 18:00:25 -03:00
Juan Martín Sotuyo Dodero
835792d0fb
Merge branch 'pr-607'
2017-09-12 17:50:37 -03:00
Juan Martín Sotuyo Dodero
be27dea8de
Checkstyle fixes
2017-09-12 17:23:12 -03:00
Juan Martín Sotuyo Dodero
e734c9cce9
Add failing test scenario for repeated config error
2017-09-12 17:11:38 -03:00
Juan Martín Sotuyo Dodero
62fd6b3be4
[core] dysfunctional rules are removed only once
...
Under multi-thread runs, each thread parsed it's own copy of the
ruleset, and removed dysfunctional rules. This meant 1 `ConfigError` per
thread was being generated.
Since #519 , we now log `ConfigErrors`, meaning multiple identical
logs in reports and noise for the user.
Therefore, we change our approach. RuleSets are parsed only once.
Dysfunctional rules are filtered and reported early on, before
dispathing actual file analysis. Each analysis thread can then produce
their own copy of the ruleset by taking advantage of the `deepCopy`
support for rules, ruleset and rulesets introduced in #464 .
The result is not only more concise reports, but the analysis thread
actually perform less work. Rulesets XMLs are parsed exactly once,
instead of 1 + 1 per thread as before, and rule configuration is
validated only once.
During this process an issue with how property descriptors where
copied has arised and was fixed. A new unit test to validate this
scenario has been introduced.
2017-09-12 17:11:25 -03:00
Andreas Dangel
ee727c4504
Fix remaining tests after merge
2017-09-11 22:08:32 +02:00
Andreas Dangel
54423d05a6
Merge branch 'master' into junit-rule-pmd-test-runner
2017-09-11 22:04:55 +02:00
Andreas Dangel
29523c7ec5
[doc] Fix doc about testing framework
2017-09-11 21:58:00 +02:00
Andreas Dangel
59b12b7bcd
Apply schema for apex rules tests
2017-09-11 21:56:06 +02:00
Andreas Dangel
d10d4abe52
Apply schema for xml rules tests
2017-09-11 21:56:06 +02:00
Andreas Dangel
dd0b776d1d
Apply schema for velocity rules tests
2017-09-11 21:56:05 +02:00
Andreas Dangel
5266436b69
Apply schema for plsql rules tests
2017-09-11 21:56:05 +02:00
Andreas Dangel
284938b97b
Apply schema for visualforce tests
2017-09-11 21:56:05 +02:00
Andreas Dangel
c903294c61
Apply schema for jsp rules tests
2017-09-11 21:56:05 +02:00
Andreas Dangel
555448aba8
Apply schema for javascript rules tests
2017-09-11 21:56:05 +02:00
Andreas Dangel
4f5cae32d9
Apply schema for java rules tests
2017-09-11 21:55:50 +02:00
Andreas Dangel
ef3d3a87c6
Fix schema and exception reporting
...
* relax order of test-code and code-fragment
* allow sourceType with language version
* define complexTypes
* relax requirements
2017-09-11 21:55:25 +02:00
Andreas Dangel
72b5ca8b4f
Fix schema and parser after rename
2017-09-11 21:55:25 +02:00
Andreas Dangel
21388c3638
[doc] Mention schema in documentation
2017-09-11 21:55:25 +02:00
Andreas Dangel
116f218907
Add schema validation to rule tests
2017-09-11 21:55:18 +02:00
Clément Fournier
732af08f16
Corrections for PR #587
2017-09-10 21:30:45 +02:00
Juan Martín Sotuyo Dodero
599f588e16
Typo
2017-09-10 06:09:57 -03:00
Juan Martín Sotuyo Dodero
4ef8495dcb
Update changelog, refs #615
2017-09-10 05:51:16 -03:00
Juan Martín Sotuyo Dodero
1f4144e975
Update changelog, refs #614
2017-09-10 05:43:08 -03:00
Juan Martín Sotuyo Dodero
ad1013c2ba
Fix typo
2017-09-10 05:36:58 -03:00
Juan Martín Sotuyo Dodero
49d314fc5b
[core] Incremental Analysis can detect changes to jars
...
- We now look inside the jars of the classpath in search for any
changes. If we find any, we invalidate the cache.
- Resolves #604
2017-09-10 05:35:09 -03:00
Juan Martín Sotuyo Dodero
9418ab1822
[core] Improve incremental analysis logging
...
- Resolves #608
- Log succesful cache loading
- Log hits / misses on debug, reason for miss too
- Invite users to enable incremental analysis
- Provide a new section on the web for the feature. May be promoted to
a top level page at some point.
2017-09-09 21:57:28 -03:00
Juan Martín Sotuyo Dodero
116c428708
[core] Restrict root element of ruleset xml
...
- Unfortunately DTD doesn't allow to do this... we should probably
cease to support DTD altogether...
2017-09-09 19:45:12 -03:00
Juan Martín Sotuyo Dodero
2bb4d3fbfe
Restrict root element to pmd
2017-09-09 19:27:23 -03:00
Travis CI (pmd-bot)
6d4e902a2a
Update documentation
2017-09-09 22:20:05 +00:00
Juan Martín Sotuyo Dodero
1e67bbc9c1
Merge branch 'pr-568'
2017-09-09 19:11:58 -03:00
Juan Martín Sotuyo Dodero
1600891562
Merge branch 'pr-598'
2017-09-09 18:56:30 -03:00
Juan Martín Sotuyo Dodero
2fdb8de3f2
Update changelog, refs #598
2017-09-09 18:55:29 -03:00
Clément Fournier
e993a7bf21
Test xml keys are unique
2017-09-09 18:00:38 +02:00
Andreas Dangel
4f371618d9
Add initial xml schema for rule tests
2017-09-09 11:11:35 +02:00
Travis CI (pmd-bot)
3d18e8b36f
Update documentation
2017-09-09 08:12:38 +00:00
Andreas Dangel
aba96473f3
Merge branch 'pr-566'
2017-09-09 09:58:16 +02:00
Andreas Dangel
388afb9618
Fix typo
2017-09-09 09:58:05 +02:00
Andreas Dangel
a50d5a82cc
Add new rule to internal ruleset 600.xml
2017-09-09 09:56:27 +02:00
Andreas Dangel
4672249157
Update release notes, refs #566
2017-09-09 09:54:53 +02:00
Andreas Dangel
41b4eed58f
Merge remote-tracking branch 'origin/master' into pr-566
2017-09-09 09:53:17 +02:00
Andreas Dangel
b99d8ec519
[doc] Add the minimal version of "Getting help"
2017-09-08 16:35:56 +02:00
Andreas Dangel
b5eb2ef467
Fix checkstyle
2017-09-08 16:35:48 +02:00
Andreas Dangel
cb9f0d0c69
[doc] Add test framework documentation
2017-09-08 16:35:48 +02:00
Andreas Dangel
9498473c20
PMDTestRunner should not fail, if there are no unit tests
2017-09-08 16:35:48 +02:00
Andreas Dangel
276028d04e
Simplify PMDTestRunner
2017-09-08 16:35:48 +02:00
Andreas Dangel
154616e9f5
Create a new JUnit test runner to execute rule tests
...
This runner now also supports Before, After, and (JUnit) Rules.
2017-09-08 16:35:48 +02:00
Andreas Dangel
d8351ee6d6
Merge branch 'pr-588'
2017-09-08 16:28:13 +02:00
Andreas Dangel
2fe26b7e53
Update release notes, refs #588
2017-09-08 16:27:53 +02:00
Clément Fournier
dfb6bd4d50
Fix unneeded recompilation causing loss of node focus
2017-09-08 00:41:43 +02:00
Clément Fournier
61c98d25cb
Display metrics in node info section
2017-09-08 00:18:35 +02:00
Clément Fournier
68cb110491
Preserve old cache file
2017-09-07 23:50:30 +02:00
Clément Fournier
8944071975
Cache compilation unit
2017-09-07 23:50:16 +02:00
Clément Fournier
b7aefda068
Checkstyle
2017-09-07 18:46:00 +02:00
oowekyala
443f73b744
Fix #388
2017-09-07 17:21:11 +02:00
Juan Martín Sotuyo Dodero
194106fb73
Update changelog, refs #601
2017-09-07 12:12:26 -03:00
Clément Fournier
cb76a82e77
Documentation
2017-09-07 17:11:25 +02:00
Juan Martín Sotuyo Dodero
96d2983f4f
[core] Fix NPE on cache
...
- Resolves #600
2017-09-07 12:05:58 -03:00
Clément Fournier
9bf8a50a30
Fix ncss tests
2017-09-07 00:16:36 +02:00
Clément Fournier
4f393648cb
Separation in apex module
2017-09-07 00:00:11 +02:00
Clément Fournier
e2d8076f9e
Deleted the façade
2017-09-06 23:33:24 +02:00
Clément Fournier
7464705cf7
Merge branch 'master' of https://github.com/pmd/pmd into multifile-split
2017-09-06 23:25:51 +02:00
Clément Fournier
be936fb0cd
Save left toolbar divider position
2017-09-06 23:18:54 +02:00
Clément Fournier
1cbc4b06f4
Remove the refresh XPath toggle
2017-09-06 21:17:37 +02:00
Clément Fournier
500fa16abf
Improve encapsulation
2017-09-06 21:01:32 +02:00
Clément Fournier
9beee76492
Fix xpath eval
2017-09-06 19:38:58 +02:00
Clément Fournier
8127404f2c
Documentation for metric XPath function
2017-09-06 11:24:20 +02:00
Clément Fournier
d1a311fe7b
Merge branch 'master' of https://github.com/pmd/pmd into xpath-metrics
2017-09-06 10:55:18 +02:00
Clément Fournier
1e9724a8b8
Small improvements
2017-09-06 00:15:24 +02:00
Clément Fournier
d925c91bb6
Implemented settings save/restore cycle
2017-09-06 00:05:06 +02:00
Clément Fournier
660ce96558
Refactor into MVP
2017-09-06 00:05:06 +02:00
Clément Fournier
681552af86
Language version selection
2017-09-06 00:05:06 +02:00
Clément Fournier
2828f5c9bc
UI redesign
2017-09-06 00:04:54 +02:00
Travis CI (pmd-bot)
6d8c41113f
Update documentation
2017-09-05 16:54:59 +00:00
Andreas Dangel
fdfd0f79e6
Merge remote-tracking branch 'origin/master'
2017-09-05 18:38:23 +02:00
Travis CI (pmd-bot)
5e5ddc36b6
Update documentation
2017-09-05 16:29:26 +00:00
Andreas Dangel
a887393d29
Merge branch 'pr-591'
2017-09-05 18:28:17 +02:00
Andreas Dangel
fa86d073af
Merge branch 'pr-585'
2017-09-05 18:03:47 +02:00
Andreas Dangel
a41df604e5
Update release notes, refs #585
2017-09-05 18:03:15 +02:00
Andreas Dangel
2e9c21f9a6
Merge branch 'master' into docs-updates
2017-09-05 17:46:42 +02:00
Andreas Dangel
57cfbb08cc
[doc] fix typos
2017-09-05 17:44:22 +02:00
Andreas Dangel
7120369c12
[doc] document for each rule a sample how to reference it
2017-09-05 17:37:31 +02:00
Andreas Dangel
b37210d8da
[doc] Add "Understanding Rulesets"
2017-09-05 17:28:42 +02:00
Andreas Dangel
f4fa09bfdc
[doc] XPath rule: Add missing ruleset example
2017-09-05 17:18:38 +02:00
Andreas Dangel
b7f3032070
[doc] Update gems
2017-09-05 17:05:03 +02:00
Juan Martín Sotuyo Dodero
c6acda64f2
Update changelog, refs #565
2017-09-04 11:47:48 -03:00
Juan Martín Sotuyo Dodero
02c016d95f
[java] java-basic/DontCallThreadRun false negative
...
- Use type resolution to determine when we are using a `Thread`
- Fixes #565
2017-09-04 11:35:36 -03:00
Juan Martín Sotuyo Dodero
402b14f859
Update changelog, refs #593
2017-09-04 02:06:47 -03:00
Juan Martín Sotuyo Dodero
079fc1cc68
[core] Provide and XML Schema for XML reports
...
- Fixes #538
2017-09-04 02:01:50 -03:00
Juan Martín Sotuyo Dodero
3023a8274d
Update changelog, refs #592
2017-09-03 21:23:09 -03:00
Juan Martín Sotuyo Dodero
e295711343
Harden XML parsing
...
- Fixes #532
2017-09-03 21:12:15 -03:00
Juan Martín Sotuyo Dodero
1ede9323a2
Update changelog, refs #591
2017-09-03 20:15:47 -03:00
Juan Martín Sotuyo Dodero
0b90595de3
Update changelog, refs #533
2017-09-03 20:06:07 -03:00
Juan Martín Sotuyo Dodero
cdc5cde3a0
Merge branch 'pr-533'
2017-09-03 19:56:14 -03:00
Juan Martín Sotuyo Dodero
e18fb2398b
Include stacktrace for ProcessingError on reports
2017-09-03 19:55:02 -03:00
Juan Martín Sotuyo Dodero
de506f35ae
Improve java-design/MissingStaticMethodInNonInstantiatableClass
...
- Remove false positives
- Simplify xpath expression
- Don't use count for checking for `= 0` or `> 0`
- Fixes #590
2017-09-03 18:52:19 -03:00
Juan Martín Sotuyo Dodero
69b44c4cb4
Fix compilation warning
2017-09-03 18:47:04 -03:00
Clément Fournier
f8a717b6af
Attributes popup, still buggy
2017-09-01 09:16:32 +02:00
Clément Fournier
76ab8d5cf2
XPath version and errors
2017-08-31 21:19:54 +02:00
Clément Fournier
c25b503026
Fix highlighting
2017-08-31 18:44:07 +02:00
Clément Fournier
6ed3bcd463
Highlighting of selected node
2017-08-31 16:46:41 +02:00
Clément Fournier
22ee16b09b
Icons
2017-08-31 14:29:43 +02:00
Clément Fournier
097ae9cb1f
XPath evaluation, custom CodeArea dependency
2017-08-31 00:21:03 +02:00
Clément Fournier
12bb17bf8f
XPath attributes in listview
2017-08-30 23:16:24 +02:00
Clément Fournier
85cb3fc215
Add xpath pane
2017-08-30 21:07:32 +02:00
Clément Fournier
fbccc8a523
TreeCellFactory to format ast tree cells
2017-08-30 20:20:01 +02:00
Clément Fournier
f240760c4a
TreeView for the AST working
2017-08-30 15:17:12 +02:00
Clément Fournier
36bc618789
Refresh AST button
2017-08-30 15:15:12 +02:00
Clément Fournier
6c63f39a29
Styling for code area
2017-08-30 15:15:12 +02:00
Clément Fournier
820b561cc4
Rename package
2017-08-30 15:15:12 +02:00
Clément Fournier
808ef0cc89
Added text area handle
2017-08-30 15:15:12 +02:00
Clément Fournier
e7c1a520d6
Moved to pmd-ui
2017-08-30 15:15:12 +02:00
oowekyala
14d0d14a18
Draft w/ mvn system dependency
2017-08-30 15:15:12 +02:00
Clément Fournier
e751992761
XPath function for metrics
2017-08-29 23:04:20 +02:00
Andreas Dangel
d301e99737
Merge branch 'pr-583'
2017-08-29 19:55:11 +02:00
Andreas Dangel
ef90939d8c
Update release notes, refs #583
2017-08-29 19:54:34 +02:00
Clément Fournier
5b519459b9
Move static constants of ValueParser to class ValueParsers
2017-08-29 19:53:44 +02:00
Clément Fournier
d3300079b9
Add reference to GodClassRule, complete code sample
2017-08-29 13:27:21 +02:00
Clément Fournier
cc362d764f
Moved NcssCountRule to codesize.xml
2017-08-28 22:01:11 +02:00
Juan Martín Sotuyo Dodero
2c5190aa91
Merge branch 'pr-582'
2017-08-28 16:42:11 -03:00
Juan Martín Sotuyo Dodero
ef91d41680
Merge branch 'pr-579'
2017-08-28 16:18:42 -03:00
Juan Martín Sotuyo Dodero
6d30cf7789
Update changelog, refs #579
2017-08-28 16:14:24 -03:00
Andreas Dangel
6fccc0c2eb
Merge branch 'pr-518'
2017-08-28 20:31:08 +02:00
Andreas Dangel
cb2e7a3a13
Update release notes, refs #518
2017-08-28 20:30:12 +02:00
Bendegúz Nagy
599f91a796
Java, typeres: rename JavaTypeDefinitionSpecial to JavaTypeDefinitionUpper
2017-08-28 19:27:17 +02:00
Bendegúz Nagy
e1892944ff
Java, typeres: make java type definition lower bound into a subclass
2017-08-28 13:59:30 +02:00
Clément Fournier
87e1e1834d
Pimp up the docs
2017-08-28 01:07:52 +02:00
Clément Fournier
ac7e1e970f
WeakHashMap for project memoizers
2017-08-27 23:42:13 +02:00
Clément Fournier
dcf5403003
Cache signatures in nodes
2017-08-27 23:32:17 +02:00
Clément Fournier
8b0eaa6c3d
Remove fluent API for sigmasks
2017-08-27 23:32:17 +02:00
Clément Fournier
584041e1e7
Removed the metrics visitor
2017-08-27 23:32:17 +02:00
Clément Fournier
eed9859053
Hide multifile from rules
2017-08-27 23:32:17 +02:00
oowekyala
76b9b39368
Separated multifile analysis from metrics
2017-08-27 23:32:09 +02:00
Clément Fournier
c1459ab4f9
Added version info to the API
2017-08-26 21:58:52 +02:00
Clément Fournier
99a42461a7
Writing custom metrics
2017-08-26 21:58:46 +02:00
Andreas Dangel
23a936e654
Merge branch 'pr-580'
2017-08-26 11:06:33 +02:00
Andreas Dangel
fcdc2bde4d
Update relase notes, refs #580
2017-08-26 11:05:41 +02:00
Andreas Dangel
d31d0dd7cd
Merge branch 'pr-578'
2017-08-26 10:57:34 +02:00
Andreas Dangel
f6be3b8620
Update release notes, refs #578
2017-08-26 10:56:20 +02:00
Travis CI (pmd-bot)
0055eb15f3
Update documentation
2017-08-25 18:18:18 +00:00
Juan Martín Sotuyo Dodero
1e4c963003
Merge branch 'pr-581'
2017-08-25 15:01:54 -03:00
Juan Martín Sotuyo Dodero
c7314cc55e
Update changelog, refs #581
2017-08-25 15:01:37 -03:00
Andreas Dangel
87d8a2fc45
[core] java9 build updates
...
* Updates the javadoc maven plugin, so that PMD can be built
with a java9+mvn3.5.0 environment
* Makes sure, that the java8 modules are also enabled for java9
and later
2017-08-25 11:47:20 +02:00
Niklas Baudy
f0d5f9392a
Address comments.
2017-08-25 08:34:09 +02:00
Clément Fournier
5a2fc3e2c3
Checkstyle
2017-08-25 00:20:45 +02:00
Clément Fournier
f5530660af
Corrections for PR #578
2017-08-24 23:57:16 +02:00
Niklas Baudy
cfa99e291e
Relax AbstractClassWithoutAnyMethod when class is annotated by @AutoValue.
2017-08-24 23:27:04 +02:00
Andreas Dangel
d3757e7611
Merge branch 'pr-464'
2017-08-24 23:01:21 +02:00
Clément Fournier
9d5b2a5e7c
Add AbstractMetric to topple the class hierarchy of metrics
2017-08-24 22:28:43 +02:00
Bendegúz Nagy
186d0edd91
Java, typeres: update generics parsing to produce upper and lower bounds
2017-08-24 22:10:17 +02:00
Andreas Dangel
ef90a6ed4c
[doc] Finish pull request documentation
...
refs #359
2017-08-24 21:35:08 +02:00
Juan Martín Sotuyo Dodero
d544c7f122
Merge branch 'pr-570'
2017-08-24 11:15:57 -03:00
Juan Martín Sotuyo Dodero
7fb8989977
Update changelog, refs #570
2017-08-24 11:15:12 -03:00
Bendegúz Nagy
2126517563
Java, typeres: fix PR comments
2017-08-24 16:06:51 +02:00
Bendegúz Nagy
a61ca6b2b3
Java, typeres: fix PR comments
2017-08-24 12:16:55 +02:00
Clément Fournier
f631abc6d3
Fix tests
2017-08-24 09:53:30 +02:00
Clément Fournier
9f1e520ee9
Data class rule displays metric values
2017-08-24 09:24:07 +02:00
Clément Fournier
925be17be3
Merge upstream
2017-08-24 09:09:21 +02:00
Andreas Dangel
c675004a7d
[doc] Fixes from PR #568
2017-08-23 21:08:58 +02:00
Andreas Dangel
1008f7ef70
Merge branch 'pr-573'
2017-08-23 20:40:08 +02:00
Andreas Dangel
0e906f386a
Update release notes, refs #573
2017-08-23 20:39:05 +02:00
Juan Martín Sotuyo Dodero
1967b7de8d
Add Visualforce to README
2017-08-23 14:55:09 -03:00
Andreas Dangel
b1b2683e92
[core] Use new schema version 3.0.0
2017-08-22 20:59:42 -03:00
Travis CI (pmd-bot)
9a4e1fb577
Update documentation
2017-08-22 21:48:40 +00:00
Juan Martín Sotuyo Dodero
9f64519b0a
Merge branch 'pr-576'
2017-08-22 18:30:50 -03:00
Juan Martín Sotuyo Dodero
8abfe5958e
Update changelog, refs #576
2017-08-22 18:30:28 -03:00
Marcel Möhring
dbf3adb770
[doc][java] Add hint for Guava users in InefficientEmptyStringCheck
...
Fixes issue #571 .
2017-08-22 22:51:43 +02:00
Clément Fournier
57439e9dc9
Remove findChildNodesWithXPathChecked from Node interface
2017-08-22 22:23:22 +02:00
Clément Fournier
e45061962e
Corrections for PR #573
2017-08-22 22:23:11 +02:00
Andreas Dangel
4cf5be95cd
[doc] Enhance pull request documentation, use existing page
...
refs #359
2017-08-22 20:45:47 +02:00
Clément Fournier
d85f4ce341
Documentation
2017-08-22 17:14:29 +02:00
Clément Fournier
5001701989
Use ATFD metric in GodClassRule -> done refactoring
2017-08-22 17:14:27 +02:00
Clément Fournier
2f678791cc
ATFD metric
2017-08-22 17:13:54 +02:00
Clément Fournier
d14603078d
Use TCC metric in GodClassRule
2017-08-22 17:13:54 +02:00
Clément Fournier
6a6804c7a1
TCC metric
2017-08-22 17:13:53 +02:00
Clément Fournier
a9be7d4f59
Use WMC metric in GodClassRule
2017-08-22 16:20:14 +02:00
Clément Fournier
43bbe83e6b
Fix Woc integer division
2017-08-22 16:15:52 +02:00
Bendegúz Nagy
8676d8b544
Java, typeres: model wildcard types
2017-08-22 03:05:43 +02:00
Bendegúz Nagy
86d7d24e9c
Java, typeres: model intersection types
2017-08-22 02:58:57 +02:00
Bendegúz Nagy
c17ab78ae1
Java, typeres: model lower bounds
2017-08-22 02:58:57 +02:00
Bendegúz Nagy
ed42fed650
Java, typeres: model upper bounds
2017-08-22 02:58:57 +02:00
Andreas Dangel
7f87882a43
[doc] Add first draft for pull request merge process
...
refs #359
2017-08-21 22:33:20 +02:00
Andreas Dangel
08dddc2ba7
Merge branch 'pr-567'
2017-08-21 22:23:42 +02:00
Andreas Dangel
2fa98064c7
Update release notes, refs #567
2017-08-21 22:08:29 +02:00
Andreas Dangel
bc2ed8cade
Merge branch 'metric-options' of https://github.com/oowekyala/pmd into pr-567
2017-08-21 22:07:13 +02:00
Andreas Dangel
aef1c81da0
Merge branch 'pr-515'
2017-08-20 19:40:11 +02:00
Andreas Dangel
9ed5f651fa
Remove unused ProgressMonitor interface
2017-08-20 19:33:24 +02:00
Andreas Dangel
b49eb24579
Merge branch 'issue-463' of https://github.com/Monits/pmd into pr-515
2017-08-20 19:30:15 +02:00
Clément Fournier
8f45685af6
Documented metrics and rule
2017-08-20 18:00:55 +02:00
Clément Fournier
1379142788
Added test case
2017-08-20 17:43:03 +02:00
Clément Fournier
768c8a7227
Started doc
2017-08-20 17:43:03 +02:00
Clément Fournier
6e4a293009
DataClassRule working -> champagne!!
2017-08-20 17:42:54 +02:00
Clément Fournier
55c6c8865d
WOC tests
2017-08-20 17:41:35 +02:00
Clément Fournier
60df71fc85
NOAM tests
2017-08-20 17:41:35 +02:00
Clément Fournier
3643883f5f
NOPA tests
2017-08-20 17:41:35 +02:00
Clément Fournier
acc06a91e4
Consider double results in metric test rules
2017-08-20 17:41:35 +02:00
Clément Fournier
ea097cc600
WOC metric
2017-08-20 17:41:35 +02:00
Clément Fournier
68490f7320
Added metric keys
2017-08-20 17:41:35 +02:00
Clément Fournier
41f0c14d17
NOPA metric
2017-08-20 17:41:35 +02:00
Clément Fournier
21f268c0fb
NOAM metric
2017-08-20 17:41:34 +02:00
Clément Fournier
47aa1435ad
Consider ConcurrentModificationException in iterator loop
2017-08-20 14:30:00 +02:00
Clément Fournier
9b05d5264e
Corrections for PR #567
2017-08-19 20:23:38 +02:00
Andreas Dangel
9ae5f0d3a9
Merge branch 'pr-553'
2017-08-19 18:42:57 +02:00
Andreas Dangel
785b04944c
Fix checkstyle
2017-08-19 18:34:54 +02:00
Andreas Dangel
dc5b814d05
Update release notes, refs #553
2017-08-19 18:32:49 +02:00
Andreas Dangel
b58e23ca71
Merge branch 'parserTst++' of https://github.com/oowekyala/pmd into pr-553
2017-08-19 18:31:31 +02:00
Andreas Dangel
e05940b246
[doc] Complete the maven PMD version upgrade example
...
To be sure, that it works, all dependencies need to be referenced/overridden.
Refs #402
2017-08-19 10:40:33 +02:00
Andreas Dangel
5957bc3db5
[doc] Restored original author information
2017-08-18 20:37:35 +02:00
Andreas Dangel
f3a3af1333
[doc] Upgrade PMD version at runtime for Maven PMD Plugin
...
Fixes #402
2017-08-18 19:55:16 +02:00
Andreas Dangel
2c2d62a66a
[doc] Restructure Tools + Integrations
2017-08-18 19:42:12 +02:00
Andreas Dangel
f0134cbca7
[doc] Add "Writing Documentation"
2017-08-18 19:06:39 +02:00
Clément Fournier
4096f9f077
Update doc
2017-08-18 17:58:12 +02:00
Clément Fournier
d28620fd45
Removed a few hundred unnecessary lines
2017-08-18 15:22:15 +02:00
Clément Fournier
8b11246bb3
Replaced javadoc for metrics with link to doc site
2017-08-18 14:58:04 +02:00
Clément Fournier
36f3dbaf03
ConsiderAssert option for cyclo
2017-08-18 14:53:46 +02:00
Clément Fournier
66b418de79
Update doc
2017-08-18 14:44:57 +02:00
oowekyala
d33039870b
Fixed tests
2017-08-18 14:44:57 +02:00
oowekyala
3a2866b703
Finished the doc
2017-08-18 14:44:57 +02:00
oowekyala
f747129e8c
Internal builder for MetricOptions
2017-08-18 14:44:57 +02:00
oowekyala
8bac632333
Documentation
2017-08-18 14:44:57 +02:00
oowekyala
34894bca6f
Decorators work
2017-08-18 14:44:57 +02:00
oowekyala
ceba5afece
MetricOptions bundle, decorator doesn't work
...
The decorator needs some work because the decorated visitor takes over control to visit the children
2017-08-18 14:44:57 +02:00
oowekyala
6408b57b8e
Varargs options -> bad
2017-08-18 14:44:57 +02:00
Clément Fournier
eb645b379a
Fix failed build
2017-08-18 13:56:31 +02:00
Clément Fournier
7194328c4f
Completed doc and tests
2017-08-18 12:12:45 +02:00
Andreas Dangel
fd1a3b78fa
[doc] Create developer resources
2017-08-18 10:47:11 +02:00
Andreas Dangel
dda923fe1e
[doc] Rework introduction page
2017-08-18 10:33:43 +02:00
Andreas Dangel
b3f76562a3
Update email for pmd-bot
2017-08-18 09:45:15 +02:00
oowekyala
1c73437a78
Merge branch 'master' of https://github.com/pmd/pmd into for2foreach
2017-08-17 21:46:26 +02:00
Travis CI (pmd-bot)
0351b88c83
Update documentation
2017-08-17 18:54:02 +00:00
Juan Martín Sotuyo Dodero
24213a80ca
Merge branch 'pr-562'
2017-08-17 15:35:18 -03:00
Andreas Dangel
24e9a9f5c5
[doc] Add UnnecessaryParentheses back as deprecated and moved
2017-08-17 20:25:13 +02:00
Andreas Dangel
35e25912ac
Merge remote-tracking branch 'origin/master' into docs-update-for-405
...
# Conflicts:
# pmd-java/src/main/resources/rulesets/java/controversial.xml
# pmd-java/src/main/resources/rulesets/java/design.xml
# pmd-java/src/main/resources/rulesets/java/unnecessary.xml
2017-08-17 20:15:10 +02:00
Andreas Dangel
0cf2bb4845
[doc] Remove internal links from release_notes_old.md...
...
...since they don't and won't work
...and we have a TOC generated anyways
2017-08-17 20:06:30 +02:00
Juan Martín Sotuyo Dodero
a661b5a2bb
Merge branch 'pr-563'
2017-08-17 15:04:36 -03:00
Juan Martín Sotuyo Dodero
0b56cdd416
Update changelog, refs #563
2017-08-17 15:04:16 -03:00
Andreas Dangel
b3f04079d6
[doc] Fixes from PR review
2017-08-17 20:01:50 +02:00
Bendegúz Nagy
80a15c7851
Java, typeres: fix PR comments
2017-08-17 18:11:37 +02:00
Travis CI (pmd-bot)
42c7980932
Update documentation
2017-08-16 18:28:00 +00:00
Juan Martín Sotuyo Dodero
8eb2986192
Merge branch 'pr-556'
2017-08-16 15:18:00 -03:00
Juan Martín Sotuyo Dodero
ddc9fcacbc
Update changelog, refs #556
2017-08-16 15:16:44 -03:00
Juan Martín Sotuyo Dodero
93c3393999
Add fully qualified test case
2017-08-16 15:16:35 -03:00
Juan Martín Sotuyo Dodero
9d234d9567
Merge branch 'pr-554'
2017-08-16 14:16:25 -03:00
Juan Martín Sotuyo Dodero
3ba55ff1c0
Update changelog, refs #554
2017-08-16 14:15:46 -03:00
oowekyala
248b9837d6
Corrections for PR #554
2017-08-16 17:26:08 +02:00
oowekyala
2b8ed89edd
Merge branch 'master' of https://github.com/pmd/pmd into for2foreach
2017-08-16 15:56:47 +02:00
oowekyala
2d5f1355c2
Deleted controversial/UnnecessaryParentheses
2017-08-16 14:37:46 +02:00
oowekyala
a4dc70610b
Enhanced unnecessary/UselessParentheses with tests from controversial/UnnecessaryParentheses
2017-08-16 14:31:52 +02:00
Bendegúz Nagy
bc20be1ed8
Java, typeres: add basic method type inference
2017-08-16 00:02:34 +02:00
Bendegúz Nagy
1426b23ce5
Java, typeres: add support for producing initial method inference constraints
2017-08-16 00:02:34 +02:00
Bendegúz Nagy
90b802526c
Java, typeres: add producing initial bounds for method invocation
2017-08-16 00:02:34 +02:00
Andreas Dangel
c48e2dad01
[ci] update email notification
2017-08-15 20:39:34 +02:00
Andreas Dangel
3a8a4ae969
Merge branch 'pr-557'
2017-08-15 20:36:55 +02:00
Andreas Dangel
dc8d3403f7
Update changelog, refs #557
2017-08-15 20:36:33 +02:00
Andreas Dangel
238f5f9eab
Merge branch 'npath' of https://github.com/oowekyala/pmd into pr-557
2017-08-15 20:35:30 +02:00
Andreas Dangel
fa6b41215f
Merge branch 'pr-555'
2017-08-15 20:31:01 +02:00
Andreas Dangel
16c55fca20
Remove bogus file
2017-08-15 20:26:00 +02:00
Andreas Dangel
28470d47ff
Update changelog, refs #555
2017-08-15 20:13:08 +02:00
Andreas Dangel
35fb3c8723
Merge branch 'cyclo' of https://github.com/oowekyala/pmd into pr-555
2017-08-15 20:11:53 +02:00
oowekyala
0df423f1d2
Removed some redundancy in ClassTypeResolver and MetricsVisitorTest
2017-08-15 14:56:07 +02:00
oowekyala
17bb56a179
Made ParserTst a static utility class
2017-08-15 14:40:18 +02:00
Andreas Dangel
c8c4b73c80
[doc] Move the changelog to docs as "pmd_release_notes"
...
Also update the release scripts
2017-08-15 14:31:03 +02:00
Andreas Dangel
23d947b4bf
[doc] Add syntax highlighting for code examples
2017-08-15 14:31:03 +02:00
Andreas Dangel
f918249eda
[doc] Fix unit test after ruleset.xml changes
2017-08-15 14:31:03 +02:00
Andreas Dangel
b8cea8b7d4
[xml] Fix unit tests
2017-08-15 14:31:03 +02:00
Andreas Dangel
f29dcd549f
Remove remaining references to pmd-build-tools-plugin
2017-08-15 14:31:03 +02:00
Andreas Dangel
819da2c3b4
[doc] [xml] Adjust externalInfoUrl properties to new site - Part 11
...
Note: I also took the chance to fix tab damage
2017-08-15 14:31:03 +02:00
Andreas Dangel
ceef1819e5
[doc] [vm] Adjust externalInfoUrl properties to new site - Part 10
...
Note: I also took the chance to fix tab damage
2017-08-15 14:31:03 +02:00
Andreas Dangel
af782c542c
[doc] [visualforce] Adjust externalInfoUrl properties to new site - Part 9
...
Note: I also took the chance to fix tab damage
2017-08-15 14:31:03 +02:00
Andreas Dangel
9eb3aef9d6
[doc] [plsql] Adjust externalInfoUrl properties to new site - Part 8
...
Note: I also took the chance to fix tab damage
2017-08-15 14:31:03 +02:00
Andreas Dangel
69267eebdd
[doc] [jsp] Adjust externalInfoUrl properties to new site - Part 7
...
Note: I also took the chance to fix tab damage
2017-08-15 14:31:03 +02:00
Andreas Dangel
7efa9021be
[doc] [javascript] Adjust externalInfoUrl properties to new site - Part 6
...
Note: I also took the chance to fix tab damage
2017-08-15 14:31:03 +02:00
Andreas Dangel
cfa4e15d54
[doc] [apex] Adjust externalInfoUrl properties to new site - Part 5
...
Note: I also took the chance to fix tab damage
2017-08-15 14:31:03 +02:00
Andreas Dangel
1aaf52f0b0
[doc] [java] Adjust externalInfoUrl properties to new site - Part 4
...
Note: I also took the chance to fix tab damage
2017-08-15 14:31:03 +02:00
Andreas Dangel
9b1b3654b3
[doc] [java] Adjust externalInfoUrl properties to new site - Part 3
...
Note: I also took the chance to fix tab damage
2017-08-15 14:31:03 +02:00
Andreas Dangel
745acfa350
[doc] [java] Adjust externalInfoUrl properties to new site - Part 2
...
Note: I also took the chance to fix tab damage
2017-08-15 14:31:03 +02:00
Andreas Dangel
6e02494e5e
[doc] [java] Adjust externalInfoUrl properties to new site - Part 1
...
Note: I also took the chance to fix tab damage
2017-08-15 14:31:03 +02:00
Andreas Dangel
3972be80cc
[doc] Render rule names as keywords, so that the rules can be searched
2017-08-15 14:31:03 +02:00
Andreas Dangel
85c41033f5
[doc] Fix relative paths to images
2017-08-15 14:31:03 +02:00
Andreas Dangel
3d9511a0e5
[doc] Remove old maven site
2017-08-15 14:31:03 +02:00
Juan Martín Sotuyo Dodero
f3aa28ca1c
Merge branch 'pr-550'
2017-08-15 00:30:17 -03:00
Juan Martín Sotuyo Dodero
98d43ee9dd
Update changelog, refs #550
2017-08-15 00:29:39 -03:00
Bendegúz Nagy
288ca5da43
Java, typres: fix PR comments
2017-08-14 22:17:27 +02:00
Andreas Dangel
888dd2305c
Merge branch 'pr-545'
2017-08-14 10:21:20 +02:00
Andreas Dangel
40c65acabb
Update changelog, refs #545
2017-08-14 10:20:48 +02:00
oowekyala
41123508bc
Use typeresolution in UncommentedEmptyConstructorRule
2017-08-13 23:28:39 +02:00
oowekyala
7d126ab206
Fix cyclo doc
2017-08-13 19:23:42 +02:00
oowekyala
b24edf9565
Merge branch 'master' of https://github.com/pmd/pmd into npath
2017-08-13 19:20:48 +02:00
oowekyala
3d08dbb480
Fix #357
2017-08-13 19:18:25 +02:00
oowekyala
abc70c6cf6
Fix test
2017-08-13 18:42:46 +02:00
oowekyala
5bd2fc1382
Merge branch 'master' of https://github.com/pmd/pmd into cyclo
2017-08-13 18:40:46 +02:00
oowekyala
69b32d4c00
Fix #537
2017-08-13 18:36:13 +02:00
oowekyala
5cff0e7a7a
Added some utility methods to ParserTst
2017-08-13 17:56:40 +02:00
oowekyala
65fd4ea123
Added examples to metric docs & visitor description
2017-08-13 16:59:22 +02:00
oowekyala
54ec57bb3e
Corrections for PR #545
2017-08-13 16:58:59 +02:00
oowekyala
2598c2dcce
Merge branch 'master' of https://github.com/pmd/pmd into PR-apex
2017-08-13 16:57:59 +02:00
Travis CI (pmd-bot)
52d78d2fa9
Update documentation
2017-08-13 11:40:50 +00:00
Andreas Dangel
4c255cb1fa
[ci] Fix script to actually push the docs
2017-08-13 13:30:49 +02:00
Andreas Dangel
8fa15fa0f0
Merge branch 'pr-548'
2017-08-13 12:44:23 +02:00
Andreas Dangel
908e8edc13
Update docs
2017-08-13 12:37:57 +02:00
Andreas Dangel
c38961720d
Update changelog, refs #548
2017-08-13 12:07:15 +02:00
Andreas Dangel
d87ae0e4f7
Merge branch 'docs-metrics' of https://github.com/oowekyala/pmd into pr-548
2017-08-13 12:05:51 +02:00
Juan Martín Sotuyo Dodero
39250fce10
Merge branch 'pr-489'
2017-08-12 20:20:58 -03:00
Juan Martín Sotuyo Dodero
df0eba603d
Update changelog, reflect impact of Apex Jorje update
2017-08-12 20:19:24 -03:00
Juan Martín Sotuyo Dodero
8fc1cc526d
Merge branch 'pr-552'
2017-08-12 19:27:13 -03:00
Juan Martín Sotuyo Dodero
25f081de24
Merge branch 'pr-526'
2017-08-12 19:23:45 -03:00
Andreas Dangel
332e982508
Merge branch 'pr-539'
2017-08-12 22:07:22 +02:00
Andreas Dangel
86f5fa99c0
Merge branch 'issue-536' of https://github.com/Monits/pmd into pr-539
2017-08-12 22:06:56 +02:00
Andreas Dangel
c8dd41ac32
[ci] Push changes to docs, if there are any
...
refs #526
2017-08-12 21:55:31 +02:00
Andreas Dangel
58e52a5ce3
Update changelog, refs #489
2017-08-12 19:12:44 +02:00
Andreas Dangel
d070c35112
Merge remote-tracking branch 'origin/master' into apex-update
2017-08-12 19:10:32 +02:00
Andreas Dangel
9a71a6fd75
[apex] Handle blockstatements without curly braces
...
The new parser seems to always return a BlockStatement, regardless
whether it's a real block or just an expression statement.
2017-08-12 18:48:38 +02:00
Andreas Dangel
174184d9bc
[apex] fix syntax errors in unit tests
...
Note: the test case in VariableNamingConvetion with a
custom annotation type is not relevant
for apex, since there are no custom annotations.
2017-08-12 17:52:33 +02:00
oowekyala
c9d3c8b5ae
Moved to migrating ruleset
2017-08-12 17:51:12 +02:00
Andreas Dangel
da4272dc74
[doc] update generated documentation
2017-08-12 12:08:17 +02:00
Andreas Dangel
ca9004b9f7
[doc] add test for simple markdown formatting in rule description
2017-08-12 12:02:03 +02:00
Andreas Dangel
a4416a78e2
[doc] add minimum language version, add property for tests
2017-08-12 11:55:40 +02:00
Andreas Dangel
f1630932f2
[doc] update generated documentation
2017-08-12 11:47:47 +02:00
Andreas Dangel
2bff86d0f7
[doc] Output XPath expression and link to rule class implementation
2017-08-12 11:22:54 +02:00
oowekyala
ff89698cd2
Considers iterators
2017-08-11 23:16:13 +02:00
Andreas Dangel
06e8e32d23
[doc] update generated documentation
2017-08-11 21:52:18 +02:00
Andreas Dangel
9111316c01
[doc] Support renamed/moved rules
2017-08-11 21:37:24 +02:00
oowekyala
d749166191
Prefix increment works
2017-08-11 21:35:06 +02:00
Andreas Dangel
171ebad444
[doc] Add deprecation label for deprecated rules
2017-08-11 20:28:06 +02:00
Andreas Dangel
ba32ed572b
[core] Take deprecated flag into account when loading rulesets/rules
2017-08-11 20:17:37 +02:00
oowekyala
1f6ef4a497
Removed false positives with start index != 0
2017-08-11 19:32:14 +02:00
Bendegúz Nagy
f51c75fa73
Java, typeres: basic type variable resolution in place
2017-08-11 18:41:49 +02:00
Bendegúz Nagy
7e49521762
Java, typeres: WIP resolution
2017-08-11 18:19:17 +02:00
Bendegúz Nagy
7a707aa7b6
Java, typeres: add erased candidate set and minimal erased candidate set methods
2017-08-11 18:19:17 +02:00
Bendegúz Nagy
0f657b3a52
Java, typeres: add supertype set and erased supertype set methods to JavaTypeDefinition
2017-08-11 18:19:17 +02:00
Bendegúz Nagy
37139c4038
Java, typeres: implement equals for JavaTypeDefinition
2017-08-11 18:19:17 +02:00
Bendegúz Nagy
c94bb39352
Java, typeres: partial resolution algorithm for type inference
2017-08-11 18:19:17 +02:00
Bendegúz Nagy
b22b4ec588
Java, typeres: compute variable's dependencies in type inference resolution step
2017-08-11 18:19:17 +02:00
oowekyala
b9e71bf4e4
Support for iteration on arrays
2017-08-11 18:16:55 +02:00
oowekyala
038503677b
Added more tests
2017-08-11 17:49:00 +02:00
oowekyala
c0f1d36b05
First test passed
2017-08-11 13:02:59 +02:00
Andreas Dangel
2816988454
[doc] update generated documentation
...
Note: only new lines have been added
2017-08-11 11:41:15 +02:00
Andreas Dangel
d6c23fd17f
[doc] Add unit test for rule doc generator
...
Therefore the file writer has been mocked. The rulesets to be
documented are now given, rather than determined by the generator.
2017-08-11 11:40:38 +02:00
Andreas Dangel
0b9b7e2a5d
Fix checkstyle
2017-08-10 19:41:00 +02:00
Andreas Dangel
5113af6568
Fix build
2017-08-10 19:27:33 +02:00
Andreas Dangel
d537b2acbe
[doc] move RuleDocGenerator into pmd-doc
...
It'll be executed during package phase.
2017-08-10 19:18:35 +02:00
Andreas Dangel
8bdb0a5d22
[doc] add pmd-doc submodule
2017-08-10 19:00:10 +02:00
Juan Martín Sotuyo Dodero
69fc7c8451
Merge branch 'pr-549'
2017-08-09 12:24:42 -03:00
Juan Martín Sotuyo Dodero
79ff3a461d
Update changelog, refs #549
2017-08-09 12:24:15 -03:00
oowekyala
0958621ca8
Fix #521
2017-08-09 16:51:43 +02:00
oowekyala
319e6977d1
Fix spacing problem in descriptions
2017-08-09 14:59:10 +02:00
oowekyala
4be56ab274
Added code example for npath
2017-08-08 22:09:24 +02:00
oowekyala
1105d62a29
Interface doc
2017-08-08 20:33:47 +02:00
oowekyala
2bd9dc6a70
Finished NPath description
2017-08-08 16:39:12 +02:00
oowekyala
b86f0aec59
Fix npath bugs with ternary
2017-08-08 16:00:30 +02:00
oowekyala
c9783209f4
Changed defaults
2017-08-08 15:54:08 +02:00
oowekyala
a712f5cc5c
Refactored Cyclo into op metric
...
The rule now uses WMC to report classes
2017-08-08 15:51:45 +02:00
oowekyala
6abe95d2be
Metrics rule descriptions
2017-08-08 15:43:41 +02:00
oowekyala
193ae355bb
Documentation
2017-08-08 00:13:20 +02:00
oowekyala
62d40be59a
Merge branch 'master' of https://github.com/pmd/pmd into docs-metrics
2017-08-07 22:23:05 +02:00
oowekyala
51bc82c889
Custom namespace when they're unknown
2017-08-07 19:49:11 +02:00
oowekyala
904b7f84fa
Merge branch 'master' of https://github.com/pmd/pmd into metrics-apex
2017-08-07 18:15:32 +02:00
oowekyala
b937d84515
Documentation
2017-08-07 18:01:29 +02:00
oowekyala
02307ca8d5
Code examples for doc + fix Ncss ignoring asserts
2017-08-07 17:47:57 +02:00
Andreas Dangel
585a555ba5
Merge pull request #542 from oowekyala/metrics-abstraction
...
[java, core] Metrics abstraction
2017-08-07 17:05:05 +02:00
oowekyala
e9f4674f30
Merge branch 'master' of https://github.com/pmd/pmd into docs-metrics
2017-08-07 16:17:34 +02:00
oowekyala
f982acca32
Checkstyle
2017-08-06 23:57:36 +02:00
oowekyala
3b27387c76
Updated changelog
2017-08-06 22:22:17 +02:00
oowekyala
f804e11ec5
Merge branch 'metrics-abstraction' into metrics-apex
2017-08-05 14:44:32 +02:00
oowekyala
6c8c6f917a
Made basicProjectMemoizer abstract
2017-08-05 14:44:15 +02:00
oowekyala
510938c013
Merge branch 'metrics-abstraction' into metrics-apex
2017-08-04 22:27:49 +02:00
oowekyala
58c7978913
Checkstyle fix
2017-08-04 22:27:29 +02:00
oowekyala
05b502e247
Fix Apex module
2017-08-04 22:26:58 +02:00
oowekyala
2df4ad9bf4
Merge metrics-abstraction + fix pmd-java
2017-08-04 21:36:50 +02:00
oowekyala
78814b5edb
Deleted OperationStats
2017-08-04 21:29:43 +02:00
oowekyala
2771448a37
Restricted qualifiedName interface
2017-08-04 19:44:43 +02:00
oowekyala
152dddf6c5
Separated memoization from signature matching
2017-08-04 19:19:50 +02:00
oowekyala
35e2610473
Merge branch metrics-abstraction
2017-08-03 18:56:00 +02:00
oowekyala
909f989571
Checkstyle fixes
2017-08-03 18:49:04 +02:00
oowekyala
379f1be403
Merge branch metrics-abstraction
2017-08-03 18:46:26 +02:00
oowekyala
6d0ebbf63d
Resolve conflicts
2017-08-03 18:42:58 +02:00
oowekyala
aa8c21d6e9
Picked changes to pmd-core and pmd-java from branch metrics-apex
2017-08-03 18:10:24 +02:00
oowekyala
f2e9a9a1ac
Merge branch 'master' of https://github.com/pmd/pmd into metrics-apex
2017-08-03 18:00:11 +02:00
Dennis Kieselhorst
1643e10cbd
add Throwable to ProcessingError to allow full error reporting
2017-08-03 09:21:01 +02:00
Juan Martín Sotuyo Dodero
0b2389c798
Update changelog, refs #536
2017-08-02 23:58:57 -03:00
Juan Martín Sotuyo Dodero
86501e6bc0
[java] CommentDefaultAccessModifierRule should consider constructors too
...
- Resolves #536
2017-08-02 23:56:34 -03:00
Juan Martín Sotuyo Dodero
be5ae89bc0
Merge branch 'pr-524'
2017-08-02 16:39:04 -03:00
Juan Martín Sotuyo Dodero
57b556350c
Update changelog, refs #524
2017-08-02 16:38:18 -03:00
Bendegúz Nagy
bd503ba139
Java, typeres: fix PR comments
2017-08-02 21:13:28 +02:00
Andreas Dangel
1b71861d9b
Merge pull request #519 from Monits/render-config-errors
...
[core] Render config errors
2017-08-02 16:52:18 +02:00
Andreas Dangel
ed3c8e85c4
Merge pull request #529 from oowekyala/metrics-abstraction
...
[java] Abstracted the Java metrics framework
2017-08-01 20:06:42 +02:00
oowekyala
661dfdb6c1
Merge branch 'master' of https://github.com/pmd/pmd into metrics-apex
2017-08-01 19:20:33 +02:00
Clément Fournier
acb8e6582c
Merge branch 'master' into metrics-abstraction
2017-08-01 19:16:00 +02:00
oowekyala
ba73842aa4
Changelog entry
2017-08-01 19:15:03 +02:00
oowekyala
40af40bcd2
Made signature matching optional + doc
2017-08-01 19:07:44 +02:00
oowekyala
a0c6437c0e
Cyclo rule + more stuff
2017-08-01 17:02:51 +02:00
oowekyala
68452939ab
More work
2017-08-01 17:01:10 +02:00
oowekyala
e1c985c7d5
Adapted components to AST
2017-08-01 16:56:21 +02:00
oowekyala
e4e3fd33d8
Marker interface for class and interface
2017-08-01 16:55:30 +02:00
Juan Martín Sotuyo Dodero
8d3abb1268
Merge branch 'pr-535'
2017-08-01 11:24:33 -03:00
Juan Martín Sotuyo Dodero
bb75cce2e7
Update changelog, refs #535
2017-08-01 11:24:16 -03:00
Clément Fournier
acd710a8f3
Fix broken Apex visitor adapter
2017-08-01 15:41:56 +02:00
oowekyala
6a0e7c5879
Corrections for PR #529
2017-08-01 11:56:45 +02:00
Andreas Dangel
fece0cc702
[doc] Update generated rule doc
2017-07-31 21:15:00 +02:00
Andreas Dangel
0266912494
[doc] Sort the rules also on the language index page
2017-07-31 21:14:15 +02:00
Andreas Dangel
1d706726af
[doc] Update generated rule doc
2017-07-31 21:11:21 +02:00
Andreas Dangel
3e39828dd9
[doc] Fixes for #526
2017-07-31 21:10:55 +02:00
oowekyala
e662aef673
Moved the index into language specific doc
2017-07-30 23:31:39 +02:00
oowekyala
162f4bc3f0
Memoization tests ok
2017-07-30 23:05:43 +02:00
oowekyala
1bee5d7e39
Minimal tests
2017-07-30 18:56:00 +02:00
oowekyala
8f8e129e4f
Metric keys
2017-07-30 16:45:12 +02:00
oowekyala
d9273add4f
Façade and Computer
2017-07-30 15:25:58 +02:00
oowekyala
e02dfae300
Visitor
2017-07-30 15:14:55 +02:00
oowekyala
e9fab949b7
Operation signatures
2017-07-30 15:02:03 +02:00
oowekyala
7fd85f77a3
Groundwork: qualifiednames
2017-07-30 00:13:56 +02:00
oowekyala
a61fe03e86
Merge branch 'master' of https://github.com/pmd/pmd into metrics-apex
2017-07-30 00:09:08 +02:00
oowekyala
231758fa3a
Merge branch 'master' of https://github.com/pmd/pmd into metrics-abstraction
2017-07-30 00:04:21 +02:00
Juan Martín Sotuyo Dodero
fe1d7748ad
Merge branch 'pr-528'
2017-07-29 19:02:06 -03:00
oowekyala
d4ede86230
Merge branch master from upstream
2017-07-30 00:01:50 +02:00
Juan Martín Sotuyo Dodero
04f4f86160
Update changelog, refs #528
2017-07-29 19:01:25 -03:00
Juan Martín Sotuyo Dodero
3bcdb7787d
Merge branch 'pr-530'
2017-07-29 18:55:16 -03:00
Juan Martín Sotuyo Dodero
9046179cdb
Update changelog, refs #530
2017-07-29 18:54:44 -03:00
Juan Martín Sotuyo Dodero
4c96b9bb20
Update changelog, refs #525
2017-07-29 18:51:43 -03:00
oowekyala
3b48ef6407
Fix issue #527
2017-07-29 20:07:19 +02:00
oowekyala
5e035b8e57
Flattened the packages in pmd-core
2017-07-29 16:50:06 +02:00
oowekyala
7fc250ad6d
SignatureMatcher interface
2017-07-29 16:26:43 +02:00
oowekyala
56f3b3ea62
Specific interface for the java project mirror
2017-07-29 14:52:09 +02:00
oowekyala
622170991f
Abstracted Façade, Memoizer, Computer
2017-07-29 13:53:45 +02:00
Ayoub Kaanich
d33b9d9eae
Fix typo
2017-07-29 07:41:47 +01:00
oowekyala
63e51152f5
Abstracted Computer, Memoizer, ProjectMirror
2017-07-28 21:53:38 +02:00
Andreas Dangel
92fc1e4fbe
Merge branch 'pr-517'
2017-07-28 14:55:18 +02:00
Andreas Dangel
c1f6ce0f00
Update changelog, refs #517
2017-07-28 14:53:52 +02:00
Andreas Dangel
b94f218155
Merge branch 'docs-metrics' of https://github.com/oowekyala/pmd into pr-517
2017-07-28 14:53:05 +02:00
Andreas Dangel
a2279a735a
Merge branch 'pr-523'
2017-07-28 14:52:38 +02:00
Andreas Dangel
a31739c0c2
Update changelog, refs #523
2017-07-28 14:45:38 +02:00
Andreas Dangel
93b7b122f4
Merge branch 'npath' of https://github.com/oowekyala/pmd into pr-523
2017-07-28 14:44:06 +02:00
oowekyala
05f2ffce4c
Extracted the facade and stripped responsibilities of packageStats
2017-07-28 13:18:13 +02:00
oowekyala
66df4948a0
More corrections
2017-07-28 13:02:54 +02:00
Andreas Dangel
4c3e65c8f9
Fix checkstyle
2017-07-28 12:23:17 +02:00
Andreas Dangel
4dd218bc25
[doc] Add initially generated rule docs and update sidebar
2017-07-28 12:16:12 +02:00
Andreas Dangel
84313b9ebe
[doc] Create a simple rule doc generator
2017-07-28 12:16:12 +02:00
Andreas Dangel
509acb6d8f
[doc] Add option to select the active sidebar item
...
If the page contains the variable "sidebaractiveurl" in the yaml
frontmatter, this is additionally used to select the active item
in the sidebar. Useful, if the page doesn't have its own item,
but wants to activate e.g. the parent page.
2017-07-28 12:16:12 +02:00
Andreas Dangel
236154100f
[doc] Add possibility to override editme link location
...
If the page contains the variable "editmepath" in the yaml frontmatter,
this will be used instead of "page.path" (the actual markdown file).
This is useful, if the page is generated from another source.
2017-07-28 12:16:12 +02:00
Juan Martín Sotuyo Dodero
5360974903
Merge branch 'pr-525'
2017-07-27 21:58:12 -03:00
Juan Martín Sotuyo Dodero
d5d32f996b
Make bash scripts executable
2017-07-27 21:43:34 -03:00
Matias Comercio
e5ddad3c3b
Remove pushed .gitignored files
...
These files were already at the repository
but they should have been ignored
2017-07-27 18:31:20 -03:00
oowekyala
7e5374ea8d
Corrections for PR #523
2017-07-27 22:46:45 +02:00
Matias Comercio
5880a85bb1
Autofix line ending issues
...
These files didn't have the expected line ending according to
the .gitattributes rule: `* text=auto`.
Don't know why this could have happened, but all these files
where created before the mentioned rule
2017-07-27 17:28:29 -03:00
oowekyala
edc8d980bb
Signed nodes for field and operation declarations
2017-07-27 18:35:14 +02:00
oowekyala
582eedf4f6
Abstracted qualified names
2017-07-27 18:01:54 +02:00
oowekyala
8c33501ffe
OperationStats are accessible from packageStats
2017-07-27 17:34:02 +02:00
oowekyala
796f1a1fc1
Split ClassStats' responsibilities
2017-07-27 17:05:32 +02:00
Bendegúz Nagy
9959338890
Java, typeres: add support for explicit type arguments
2017-07-27 16:50:50 +02:00
Juan Martín Sotuyo Dodero
b899cc1001
Merge branch 'pr-522'
2017-07-27 11:15:38 -03:00
Juan Martín Sotuyo Dodero
739da071f3
Update changelog, refs #522
2017-07-27 11:15:15 -03:00
oowekyala
1ee8cc4e8d
Fix bug in key hashcode with null names or metric
2017-07-27 01:18:31 +02:00
oowekyala
bccaabb00d
Merge branch 'master' of https://github.com/pmd/pmd into npath
2017-07-27 00:59:19 +02:00
oowekyala
9eedf85395
Finished the tests
2017-07-27 00:47:26 +02:00
oowekyala
d06cb63d38
Tests of the rule
2017-07-26 23:50:08 +02:00
Bendegúz Nagy
704d87b470
Java, typeres: fix PR comments
2017-07-26 23:44:51 +02:00
Andreas Dangel
bad96d16d7
Merge pull request #516 from Monits/issue-468
...
[java] Fix issue 468
2017-07-26 20:21:43 +02:00
oowekyala
bef9e64021
Reused existing npath implementation
2017-07-26 19:49:41 +02:00
oowekyala
9c3a97f641
First iteration of npath
2017-07-26 17:49:58 +02:00
oowekyala
904c127069
Merge branch 'metrics' into npath
2017-07-26 15:29:10 +02:00
Bendegúz Nagy
87bbe9e5b3
Java, typedef: fix a bug with nested classes if the outter class is generic
2017-07-26 12:44:54 +02:00
oowekyala
97b3a59efb
Corrections for PR #517
2017-07-26 01:51:43 +02:00
Andreas Dangel
b4e799aaef
Merge branch 'pr-511'
2017-07-25 21:41:22 +02:00
Andreas Dangel
2e01150764
Update changelog, refs #511
2017-07-25 21:41:13 +02:00
Andreas Dangel
2c0f0c2b99
Merge branch 'metrics' of https://github.com/oowekyala/pmd into pr-511
2017-07-25 21:39:49 +02:00
Andreas Dangel
1211a6f93a
[ci] use a container-based build environment again
...
Since we don't use docker anymore, let's try to use a container-based
build environment again
2017-07-25 21:33:48 +02:00
Andreas Dangel
0a4d212438
[ci] fix rsync paths
2017-07-25 21:14:08 +02:00
Andreas Dangel
ff0149fb7f
[ci] run jekyll directly without docker
2017-07-25 21:09:23 +02:00
Andreas Dangel
e432a32818
[ci] we seem to have some kind of permission problem
2017-07-25 20:40:58 +02:00
Juan Martín Sotuyo Dodero
aad99cdf49
Update changelog, refs #519
2017-07-25 13:43:57 -03:00
Juan Martín Sotuyo Dodero
6fcfa04a1f
Add tests and update old ones
2017-07-25 12:52:59 -03:00
Juan Martín Sotuyo Dodero
86883f26c7
[core] Render config errors
...
- All renderers preivously including processing errors now also include
configuration errors.
- I take the chance to fix a couple of issues with `VBHTMLRenderer`,
that was rendering processing errors using `toString()` (which has a
default implementation)
- Notice that renderers that didn't previously include processing
errors are unmodified
2017-07-25 12:52:49 -03:00
Juan Martín Sotuyo Dodero
87aa70a096
Merge branch 'pr-514'
2017-07-25 11:41:17 -03:00
Juan Martín Sotuyo Dodero
84a542a790
Update changelog, refs #514
2017-07-25 11:40:46 -03:00
oowekyala
82d071a102
Rename metrics.metrics to metrics.impl
2017-07-25 15:41:12 +02:00
oowekyala
194bc6d71a
Fix Checkstyle violations
2017-07-25 14:18:26 +02:00
Bendegúz Nagy
67e4daa177
Java, typeres: fix for PR comments
2017-07-25 13:27:46 +02:00
oowekyala
e14e338ef4
Made backwards compatible constructors
2017-07-25 11:35:11 +02:00
oowekyala
edf8ce0732
Factorized enumerated property
2017-07-25 11:27:55 +02:00
oowekyala
01257cb8eb
Merge branch 'master' into docs-metrics
2017-07-25 10:11:15 +02:00
oowekyala
33d1327bdb
Merge branch 'master' into metrics-followup
2017-07-25 10:10:49 +02:00
oowekyala
dddf78d443
Checkstyle fixes
2017-07-25 10:04:44 +02:00
oowekyala
2fa7cab876
Merge branch 'metrics' into metrics-followup
2017-07-25 09:34:49 +02:00
oowekyala
962b4587b5
Revert renaming classStats, opStats, packStats
2017-07-25 09:34:07 +02:00
Juan Martín Sotuyo Dodero
f5c345bd0a
Update changelog, res #468
2017-07-24 17:51:41 -03:00
Juan Martín Sotuyo Dodero
df2765152e
[java] Resolve #468
...
- This is still not perfect. There are plenty of scenarios where this
could fail (ie: multidimensional arrays), but is closer to what we want
without a full rewrite.
- On the future we need to review this rule once again.
2017-07-24 17:49:25 -03:00
Juan Martín Sotuyo Dodero
9143630351
Merge branch 'pr-508'
2017-07-24 17:28:33 -03:00
Juan Martín Sotuyo Dodero
9bef9eb508
Merge branch 'pr-507'
2017-07-24 17:27:10 -03:00
Juan Martín Sotuyo Dodero
3519d82ddb
Fix checkstyle issues
2017-07-24 16:57:30 -03:00
Juan Martín Sotuyo Dodero
7a965ea363
Add exclusion of transitive dependency
...
- Allow the invalid import from ever happening again
2017-07-24 16:55:58 -03:00
Juan Martín Sotuyo Dodero
583184aae2
Fix bad imports
2017-07-24 16:55:58 -03:00
Juan Martín Sotuyo Dodero
cf7cc735b2
Update changelog
2017-07-24 16:55:58 -03:00
Juan Martín Sotuyo Dodero
1d639b6c96
Remove usages of deprecated methods
2017-07-24 16:55:58 -03:00
Juan Martín Sotuyo Dodero
94ed1e8a86
Remove usages of deprecated methods
2017-07-24 16:11:15 -03:00
Juan Martín Sotuyo Dodero
ffbd8c02ff
Deprecate a bunch of useless methods
...
- Either not used, or we have better implementations available on
Apache commons
2017-07-24 15:50:22 -03:00
Juan Martín Sotuyo Dodero
0ab96a3da6
Remove deprecated APIs
2017-07-24 15:14:46 -03:00
Juan Martín Sotuyo Dodero
6464f89e2b
Merge branch 'pr-513'
2017-07-24 14:55:45 -03:00
Juan Martín Sotuyo Dodero
f65fbb6204
Update changelog, refs #513
2017-07-24 14:54:57 -03:00
Bendegúz Nagy
9c8cbecc18
Java, typeres: fix for maximally specific method selection
2017-07-24 19:44:59 +02:00
Juan Martín Sotuyo Dodero
7df4d55273
Merge branch 'pr-512'
2017-07-24 14:41:35 -03:00
Juan Martín Sotuyo Dodero
713628a183
Update changelog, refs #512
2017-07-24 14:40:52 -03:00
Bendegúz Nagy
2146a077eb
Java, typeres: add static method resolution
2017-07-24 19:38:08 +02:00
Bendegúz Nagy
4fb214cf64
Java, typeres: add static method access tests
2017-07-24 19:38:08 +02:00
Bendegúz Nagy
6b335b1a25
Java, typeres: split incorporation tests
2017-07-24 19:36:30 +02:00
Juan Martín Sotuyo Dodero
5eb47c4dd2
Make RuleSetReference immutable
2017-07-24 14:13:22 -03:00
Bendegúz Nagy
db6dc4d5bc
Java, typeres: add incorporation and tests
2017-07-24 18:31:49 +02:00
Juan Martín Sotuyo Dodero
19da55f1fe
[core] Allow deep copying of RuleSets
...
- Copy constructor for RuleSets
- Copy constructor for RuleSet
- Copy method for Rules
- I'm still sharing a few objects that are not strictly immutables, but
treated as them
2017-07-24 12:47:49 -03:00
Juan Martín Sotuyo Dodero
7918e782f3
Merge branch 'pr-506'
2017-07-24 12:43:00 -03:00
Juan Martín Sotuyo Dodero
d182f5f5f4
Update changelog, refs #506
2017-07-24 12:42:38 -03:00
Bendegúz Nagy
3bec082a40
Merge branch 'master' into reduction
2017-07-24 16:54:22 +02:00
Bendegúz Nagy
b38dc2cd02
Java, typeres: fix for PR
2017-07-24 16:37:32 +02:00
Juan Martín Sotuyo Dodero
7cfc44abf8
Add toString for typeres classes
...
- This will make debugging and error messages a little more clear
2017-07-24 11:24:51 -03:00
oowekyala
4c0bd26091
Implemented hashCode and equals in metric keys factory methods
2017-07-24 16:13:56 +02:00
oowekyala
ac89e1420c
Moved interfaces and renamed package
...
Prepare abstraction of metrics
2017-07-24 16:03:33 +02:00
Andreas Dangel
5727dabd38
[doc] Add build script for PMD documentation, disable old site build
2017-07-23 11:00:52 +02:00
Andreas Dangel
ab6d88e286
[doc] Fix PMD Version in sidebar
2017-07-22 14:38:37 +02:00
Andreas Dangel
c1fe2dfbd5
[doc] Fix edit me link, remove news link from top, add site.pmd.version var
2017-07-22 14:17:08 +02:00
Andreas Dangel
4370ff663e
[doc] Fix links between pages
2017-07-22 12:03:16 +02:00
Andreas Dangel
6e59b0e103
[doc] Add remaining pages (FAQ, Releasing), add images
2017-07-22 11:37:13 +02:00
Andreas Dangel
81077e3ce0
[doc] Rename the files to remove boilerplate filename prefixes
...
The actual output filename is defined in the frontmatter
variable "permalink". And this is used in the sidebar to link
to this page.
2017-07-22 11:15:40 +02:00
Andreas Dangel
b87d567525
[doc] Add remaining pages from old "usage" section
2017-07-22 11:06:01 +02:00
Andreas Dangel
80d99744ee
[doc] Add pages from old "usage" section
2017-07-21 22:47:32 +02:00
Bendegúz Nagy
6fb3b99c2c
Java, typeres: add reduce method tests
2017-07-21 21:02:10 +02:00
Juan Martín Sotuyo Dodero
0265a0c9f1
Merge branch 'pr-502'
2017-07-21 12:51:41 -03:00
Juan Martín Sotuyo Dodero
4929be55e1
Update changelog, refs #502
2017-07-21 12:50:52 -03:00
Juan Martín Sotuyo Dodero
98172a26fe
Remove useless override
2017-07-21 12:47:53 -03:00
Andreas Dangel
58ea1c7d4f
[doc] Add pages from the old "overview" section
2017-07-21 12:15:15 +02:00
Andreas Dangel
6d5f975464
[doc] remove the old release notes, we have them on the main page
2017-07-21 12:14:31 +02:00
Andreas Dangel
a4890ad9cd
[doc] add favicon
2017-07-21 11:45:25 +02:00
Andreas Dangel
2af006201f
Merge branch 'master' into docs-ghpages
2017-07-21 11:31:33 +02:00
Andreas Dangel
48b7ec1aaf
Revert "Change github edit button temporarily to point to adangel/pmd"
...
This reverts commit 7ee6284ec2 .
2017-07-21 11:31:24 +02:00
Andreas Dangel
98bb301998
Merge branch 'pr-505'
2017-07-21 11:19:17 +02:00
Andreas Dangel
a6f8107577
Update changelog, refs #505
2017-07-21 11:18:18 +02:00
Bendegúz Nagy
b86750cc97
Java, typeres: add reduce methods for type inference
2017-07-21 09:51:41 +02:00
Bendegúz Nagy
c2bb8e5f4b
Java, typeres: fix double visitation
2017-07-21 00:31:54 +02:00
oowekyala
1ac1fabe38
Corrections for PR #505
2017-07-20 22:41:55 +02:00
oowekyala
85e529eeeb
Added WMC description
2017-07-20 19:57:42 +02:00
oowekyala
ad14f69b9b
Index of metrics
2017-07-20 19:44:24 +02:00
oowekyala
99b3c5e12f
Checkstyle fixes
2017-07-20 12:59:47 +02:00
Clément Fournier
0f313f9044
Merge branch 'master' into metrics
2017-07-20 12:48:54 +02:00
oowekyala
875a79f34f
Last corrections
2017-07-20 12:26:10 +02:00
Bendegúz Nagy
60f6935f84
Java, typeres: refactor ClassTypeResolver::visit(ASTName, Object)
2017-07-19 21:25:51 +02:00
Bendegúz Nagy
800cfa6e48
Java, typeres: add static field resolution
2017-07-19 21:22:09 +02:00
Bendegúz Nagy
926fe63a11
Java, typeres: add failing static field access tests
2017-07-19 21:22:09 +02:00
Andreas Dangel
98670a736f
[ci] increase timeout for site generation
2017-07-19 20:47:07 +02:00
Andreas Dangel
c808ad1245
Merge branch 'pr-499'
2017-07-19 20:18:20 +02:00
Andreas Dangel
b5316b48c4
Update changelog, refs #499
2017-07-19 20:07:14 +02:00
Andreas Dangel
e4a42cdc9d
Merge branch 'memoization-tests' of https://github.com/oowekyala/pmd into pr-499
2017-07-19 20:06:14 +02:00
oowekyala
b41e674cbd
Merge branch master from upstream
2017-07-18 00:42:33 +02:00
Andreas Dangel
1e3347d95b
Merge branch 'pr-487'
2017-07-17 21:04:33 +02:00
Andreas Dangel
230994848a
Update changelog, refs #487
2017-07-17 20:50:50 +02:00
Andreas Dangel
ef246adf2a
Merge branch 'fix-extends-object' of https://github.com/Monits/pmd into pr-487
2017-07-17 20:49:37 +02:00
Andreas Dangel
dc90db14ba
Merge branch 'pr-479'
2017-07-17 20:43:26 +02:00
Andreas Dangel
d18b4f9948
Update changelog, refs #479
2017-07-17 20:23:07 +02:00
Andreas Dangel
16d1d80062
Merge branch 'typesafe-properties' of https://github.com/oowekyala/pmd into pr-479
2017-07-17 20:18:37 +02:00
oowekyala
026b03dfb2
Some documentation about Wmc and Cyclo
2017-07-17 14:54:16 +02:00
Juan Martín Sotuyo Dodero
b259db6d59
Merge branch 'pr-503'
2017-07-16 17:22:45 -03:00
Andreas Dangel
fba00843bb
[apex] Disable logging of jorje apex lexer
...
Fixes #500
2017-07-16 21:17:05 +02:00
oowekyala
2a53d2e532
Added tests for Cyclo
2017-07-16 16:33:21 +02:00
oowekyala
1c1e97e7e4
Added factory methods for custom metric keys
2017-07-16 14:45:00 +02:00
oowekyala
516f9da10b
Generified Metrics and keys
2017-07-16 14:22:11 +02:00
oowekyala
5e887b61d3
Fix bug with empty statements in the body of a class
2017-07-15 18:39:13 +02:00
oowekyala
ca41c67371
Checkstyle fixes
2017-07-15 16:50:46 +02:00
oowekyala
31ed6fd565
Removed overloads of setProperty
2017-07-15 16:41:38 +02:00
oowekyala
35dee58bc8
Fix initialisation bug
2017-07-15 16:36:11 +02:00
oowekyala
e270ff13f6
Merge branch memoization-tests
2017-07-14 16:38:56 +02:00
oowekyala
f44a08d9d5
Fix memo tests
2017-07-14 16:32:02 +02:00
oowekyala
278e857bf6
Reworked factories
2017-07-14 02:15:50 +02:00
oowekyala
879a7d375c
Modularized numeric and packaged properties
2017-07-13 21:43:18 +02:00
Juan Martín Sotuyo Dodero
c408dc3ba9
Merge branch 'pr-501'
2017-07-13 15:42:52 -03:00
Juan Martín Sotuyo Dodero
4adfebffdf
Update changelog, refs #501
2017-07-13 15:42:30 -03:00
oowekyala
282cf5bd66
Added PackagedPropertyDescriptor interface
2017-07-13 19:03:10 +02:00
oowekyala
8474131f5b
Removed wrappers altogether
2017-07-13 16:53:26 +02:00
oowekyala
5e57af605c
Removed need for wrappers
2017-07-13 16:46:05 +02:00
oowekyala
e39cbba24a
Added overloads of setProperty for multivalued properties
2017-07-13 14:54:05 +02:00
oowekyala
0164edf585
Corrections for #479
2017-07-13 14:17:30 +02:00
Bendegúz Nagy
976240ca48
Java, typeres: add choosing most specific vararg method
2017-07-13 10:54:45 +02:00
Bendegúz Nagy
12a16caf69
Java, typeres: add vararg most specific tests
2017-07-13 10:54:45 +02:00
oowekyala
9075cb005c
Fix bug with empty value strings
2017-07-12 20:00:32 +02:00
oowekyala
9a2a91115b
Deprecated PropertyDescriptorFactory
2017-07-12 19:04:09 +02:00
oowekyala
648e15122e
Revert "Removed PropertyDescriptorFactory"
...
This reverts commit 72d435f2f6 .
2017-07-12 18:39:13 +02:00
oowekyala
772875d13f
More tests
2017-07-12 18:38:40 +02:00
oowekyala
72d435f2f6
Removed PropertyDescriptorFactory
2017-07-12 18:07:23 +02:00
oowekyala
1f0908388b
Added some tests
2017-07-12 17:40:47 +02:00
oowekyala
7eac745cb5
Fix Ncss tests
2017-07-12 17:03:34 +02:00
oowekyala
fb64e130f8
Memoization tests
2017-07-11 21:02:06 +02:00
Juan Martín Sotuyo Dodero
865f86599f
Merge branch 'pr-492'
2017-07-11 15:57:21 -03:00
Juan Martín Sotuyo Dodero
ac50d9a47f
Update changelog, refs #492
2017-07-11 15:55:56 -03:00
oowekyala
d92b7e5376
Added a version to Ncss
2017-07-11 17:04:01 +02:00
oowekyala
3061778587
Memoization tests
2017-07-11 17:02:52 +02:00
oowekyala
79fc51220c
Merge branch 'typesafe-properties' of https://github.com/oowekyala/pmd into typesafe-properties
2017-07-11 16:06:23 +02:00
Clément Fournier
824f87995d
Merge branch 'master' into typesafe-properties
2017-07-11 16:05:17 +02:00
oowekyala
341d66b694
Abstracted Metrics to use MetricKeys
2017-07-11 14:47:45 +02:00
oowekyala
65ef499433
Removed isRequired
2017-07-11 12:09:02 +02:00
oowekyala
707fd9bdd0
Removed choices from EnumeratedPropertyDescriptor
2017-07-11 12:02:20 +02:00
Bendegúz Nagy
4728eff5d6
Java, typeres: move method typeresolution methods into a helper class
2017-07-11 10:35:15 +02:00
oowekyala
1d5ec7f1b6
Cleaned OperationSignature
2017-07-10 21:05:39 +02:00
Andreas Dangel
bea145d106
Changelog - fix typos
2017-07-10 20:57:02 +02:00
Andreas Dangel
301ad55688
Merge branch 'pr-482'
2017-07-10 20:54:46 +02:00
Andreas Dangel
3f24f64da7
Update changelog, refs #482 #495
2017-07-10 20:47:48 +02:00
Andreas Dangel
969c66d363
Merge branch 'metrics' of https://github.com/oowekyala/pmd into pr-482
2017-07-10 20:38:19 +02:00
oowekyala
8136053154
Update getter and setter detection
2017-07-10 19:52:51 +02:00
oowekyala
8b7745cf14
Update tests to reset correctly: depends on #495
2017-07-10 19:18:13 +02:00
oowekyala
ea633ece0a
Merge branch 'reinit-tests' into metrics
2017-07-10 18:16:42 +02:00
oowekyala
58401cecc8
Deleted MetricsForceHook
2017-07-10 18:16:28 +02:00
oowekyala
f19428660e
Custom rule reinitialization code
2017-07-10 17:18:59 +02:00
Bendegúz Nagy
2a7fbc1d43
Java, typeres: put links to JLS sections for method resolution
2017-07-09 22:48:26 +02:00
Bendegúz Nagy
979ef7c77c
Java, typeres: fix checkstyle issues
2017-07-08 22:31:19 +02:00
Bendegúz Nagy
97f7f6a6de
Java, typeres: add vararg method resolution
2017-07-08 22:31:19 +02:00
Bendegúz Nagy
176ccb4533
Java, typeres: add vararg tests for method resolution
2017-07-08 22:31:19 +02:00
Bendegúz Nagy
65be8c6afb
Java, typeres: add ethod resolution second phase
2017-07-08 22:31:19 +02:00
Bendegúz Nagy
430486a761
Java, typeres: add second phase method resolution tests
2017-07-08 22:31:19 +02:00
Bendegúz Nagy
877f9d1b71
Java, typeres: add most specific method resolution
2017-07-08 22:31:19 +02:00
Bendegúz Nagy
1b52d46c26
Java, typeres: add first phase method overoad resolution
2017-07-08 22:31:19 +02:00
Bendegúz Nagy
5b53b73bb8
Java, typeres: add method first phase tests
2017-07-08 22:31:19 +02:00
Juan Martín Sotuyo Dodero
e56bf2a407
Simplify solution
2017-07-08 17:10:56 -03:00
Juan Martín Sotuyo Dodero
fdd2a6b637
Merge branch 'pr-486'
2017-07-08 16:25:46 -03:00
Juan Martín Sotuyo Dodero
d8da47d9b9
Update changelog, refs #486
2017-07-08 16:23:17 -03:00
Andreas Dangel
6e084e7f27
Merge branch 'coveralls'
2017-07-08 20:46:41 +02:00
Andreas Dangel
e32e6e08d9
Add coveralls badge
2017-07-08 20:42:58 +02:00
Andreas Dangel
ce96da092a
[doc] Remove jacoco report and surefire report for site generation
2017-07-08 20:33:02 +02:00
Andreas Dangel
e8dcbda839
[ci] Add coveralls.io
...
Updated jacoco, add maven profile "coveralls"
2017-07-08 20:30:25 +02:00
Juan Martín Sotuyo Dodero
f8c8c01c86
Avoid ArrayList instantiation
2017-07-08 15:12:35 -03:00
Andreas Dangel
d669395bab
[core] Missing screenshot on "How to write a rule" doc
...
Fixes #480
2017-07-08 20:00:43 +02:00
Andreas Dangel
68046a0064
Merge branch 'issue-412'
2017-07-08 19:43:34 +02:00
Andreas Dangel
c6eeed6d48
Merge branch 'issue-412' of https://github.com/Monits/pmd into issue-412
2017-07-08 19:34:18 +02:00
Juan Martín Sotuyo Dodero
6f37c17565
Merge branch 'pr-490'
2017-07-08 13:59:08 -03:00
Andreas Dangel
8b109f9981
[ci] let's try the quiet option (-q) of maven
...
travis_wait_truncated doesn't work, since the pipes are buffered...
2017-07-08 13:10:32 +02:00
Andreas Dangel
e9ac18427a
[ci] add a truncated travis_wait function
...
Since travis_wait outputs the "Still running" indication into the
same stream as the command's output, we need to make sure, we
output these indications to avoid a build timeout.
But to workaround the log size limit, we shouldn't output everything.
travis_wait_truncated now outputs the head immediately, while
only outputting the tail of the log after the command is finished.
2017-07-08 12:48:43 +02:00
Andreas Dangel
a3a1f1b30b
[ci] add more logging during build-site.sh execution
2017-07-08 12:15:17 +02:00
Andreas Dangel
4efa375a06
Merge branch 'improve-travis' of https://github.com/Monits/pmd into pr-456
2017-07-08 11:49:25 +02:00
Andreas Dangel
ead8d964c5
[cpp] Undo changes to String literals in grammar, it's not needed anymore
...
Such slightly illegal char escape sequences can still be parsed now.
2017-07-08 11:48:06 +02:00
Andreas Dangel
5bcf30a2a4
[cpp] Add unit test to assert begin/end of Tokens with continuation
2017-07-08 11:32:54 +02:00
Andreas Dangel
ec631f3993
[cpp] Don't skip the continuation character in the grammar anymore
...
Since we now have a CppCharStream, we can remove the changes
introduced for #431
2017-07-07 23:11:27 +02:00
Andreas Dangel
9618481218
Update changelog, refs #448
2017-07-07 22:46:29 +02:00
Andreas Dangel
dbc2d02895
[cpp] Add custom CppCharStream for line continuation support
...
Fixes #448
2017-07-07 22:46:21 +02:00
Juan Martín Sotuyo Dodero
37f4be1a35
Merge branch 'pr-488'
2017-07-07 15:04:35 -03:00
Juan Martín Sotuyo Dodero
134de93257
Update changelog, be more explicit on Apex CPD changes
2017-07-07 15:04:15 -03:00
Andreas Dangel
c47866e474
[apex] Add test for Apex Lexer/Parser/Compiler
...
The compiler seems to have a problem with Soql expressions
See ApexCompilerSoqlTest
2017-07-07 10:54:52 +02:00
Andreas Dangel
2f69324a4a
[apex] Upgrade Apex to use new jorje compiler v224
...
There are some AST changes:
* no DottedExpression anymore
* NewNameValueObjectExpression has been renamed to NewKeyValueObjectExpression
* no TestNode anymore
* new types: CastExpression, ConstructorPreamble, IllegalStoreExpression,
MethodBlockStatement, Modifier, MultiStatement, NestedExpression,
NestedSToreExpression, StatementExecuted
2017-07-07 10:54:23 +02:00
Andreas Dangel
02b2e3cf7a
Update changelog, refs #488
2017-07-07 10:52:23 +02:00
Andreas Dangel
0f36c9ae2b
[apex] CPD: Prepared option to switch on case sensitive check
2017-07-07 10:38:49 +02:00
Andreas Dangel
e669b28341
[apex] Adjust CPD Tests with using ApexLexer
...
Note: comments are comments now and not compared anymore
2017-07-07 10:38:49 +02:00
Andreas Dangel
c32cf3703a
[apex] Use ApexLexer for CPD tokenizer
2017-07-07 10:38:49 +02:00
oowekyala
78edc46e48
Merge branch 'master' of https://github.com/pmd/pmd into metrics
2017-07-06 23:38:08 +02:00
oowekyala
a0ed1aab06
Documentation on AbstractNode
2017-07-06 23:37:08 +02:00
Juan Martín Sotuyo Dodero
50a2e9fdcf
Fix typeresolution for anonymous extending object
...
- This is really an edge case, with little or no real-world scenarios,
just fix it for completeness
2017-07-06 18:00:07 -03:00
oowekyala
ff870e159e
Small corrections
2017-07-06 14:48:38 +02:00
Bendegúz Nagy
0c483205da
Java, typres: make MethodType immutable, remove getApplicableMethods overload
2017-07-05 21:19:45 +02:00
Bendegúz Nagy
2fd1c89ede
Java, typeres: fix checkstyle and mvn tests
2017-07-05 19:49:29 +02:00
Bendegúz Nagy
4a16fbc9eb
Java, typres: add more method tests
2017-07-05 18:46:23 +02:00
Bendegúz Nagy
ed9b015c9f
Java, typres: fix mvntest
2017-07-05 13:57:50 +02:00
oowekyala
d90e2e75fb
Fixed failing tests
2017-07-05 00:15:22 +02:00
Juan Martín Sotuyo Dodero
96003e31db
Give more visibility to external contributors
...
- Acknowledge the amazing people behind each contribution
2017-07-04 12:15:15 -03:00
Juan Martín Sotuyo Dodero
02c3e0a6de
Merge branch 'pr-484'
2017-07-04 12:11:49 -03:00
Juan Martín Sotuyo Dodero
087bf40fea
Update changelog, refs #484
2017-07-04 12:11:10 -03:00
patriksevallius
111de11893
Changed linux usage to a more unix like path
2017-07-04 09:27:54 +02:00
Bendegúz Nagy
35597c9ef0
Java, typres: Add simple method type resolution
2017-07-04 00:06:32 +02:00
Bendegúz Nagy
0c2099ab98
Java, typeres: add method applicability tests
2017-07-03 19:48:45 +02:00
oowekyala
8fd95190b2
Removed AbstractSimpleJavaMetricsRule
2017-07-03 14:44:46 +02:00
oowekyala
cd2f414ace
Merge branch 'master' of https://github.com/pmd/pmd into metrics
2017-07-02 15:58:34 +02:00
Andreas Dangel
6652ec9545
[travis] fix release script for upload site
2017-07-01 20:01:19 +02:00
Andreas Dangel
a271c49152
Merge branch 'pmd/5.8.x'
2017-07-01 19:27:43 +02:00
Andreas Dangel
7c9f438eaf
Prepare next development version
2017-07-01 19:13:16 +02:00
Andreas Dangel
3ef33bc37e
[maven-release-plugin] prepare for next development iteration
2017-07-01 19:08:17 +02:00
Andreas Dangel
de28e518d4
[maven-release-plugin] prepare release pmd_releases/5.8.1
2017-07-01 19:08:08 +02:00
Andreas Dangel
92c325eb6a
Prepare pmd release 5.8.1
2017-07-01 19:02:04 +02:00
Andreas Dangel
b09ac82062
Update release script to take bug fix releases into account
2017-07-01 18:56:33 +02:00
Juan Martín Sotuyo Dodero
8954bb037d
Update changelog, refs #478
2017-06-30 18:59:49 -03:00
Juan Martín Sotuyo Dodero
f7f46dbe93
Fix anonymous class naming
...
- Properly handle nested anonymous classes
2017-06-30 18:56:18 -03:00
Juan Martín Sotuyo Dodero
4783c4e14f
Add failing test for nested anonymous classes
2017-06-30 18:56:13 -03:00
oowekyala
f65207639b
Removed a change to CollectionUtil
2017-06-30 18:54:28 +02:00
oowekyala
a30449d475
Enhanced wrappers
2017-06-30 16:25:14 +02:00
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
15ec10ff35
Updated changelog
2017-06-29 20:39:35 -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
oowekyala
6a3b394aa0
Solve plugin errors
2017-06-28 23:59:22 +02:00
Andreas Dangel
ecaa8cb24d
Merge branch 'issue-471' into pmd/5.8.x
2017-06-28 21:18:19 +02:00
Andreas Dangel
3692eb0400
Update changelog, fixes #471
2017-06-28 21:11:20 +02: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
c51cab446a
Split interfaces
2017-06-27 15:45:33 +02:00
oowekyala
2fe8ded6bd
Made properties final
2017-06-27 14:15:14 +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
oowekyala
de1298f1fa
Corrected multinumeric properties
2017-06-27 05:57:45 +02:00
oowekyala
df59eb8977
Finally the enum transformation is complete
2017-06-27 05:55:17 +02:00
oowekyala
e1b12da174
Some documentation
2017-06-27 05:01:15 +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
oowekyala
68f869e81e
Turned PropertyDescriptorFields into an enum
...
Fully commented multi valued properties
2017-06-26 23:51:50 +02:00
oowekyala
54f4a8647c
Merge branch 'master' of https://github.com/pmd/pmd into typesafe-properties
2017-06-26 21:09:52 +02:00
oowekyala
1104b6cd49
Debugged tests
2017-06-26 21:08:53 +02:00
Juan Martín Sotuyo Dodero
affd0f7134
Update changelog, refs #469
2017-06-26 15:09:34 -03: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
d93c5ce676
Update changelog
2017-06-26 14:13:35 -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
4da86f2b8e
Document API changes
2017-06-26 13:08:14 -03:00
Juan Martín Sotuyo Dodero
df80e52788
Merge branch 'pr-420'
2017-06-26 13:04:53 -03:00
Juan Martín Sotuyo Dodero
cd5ec52250
Update changelog, refs #420
2017-06-26 13:03:28 -03:00
oowekyala
739dccfcca
Refactored AbstractPropertyTester and subclasses
...
Still fails test though
2017-06-26 16:03:35 +02:00
oowekyala
bb8fe903ea
Generified PropertyDescriptorFactory
2017-06-26 15:12:14 +02:00
oowekyala
785d663553
Finished refactoring properties
2017-06-26 14:22:10 +02:00
oowekyala
b2673b38b5
POC on boolean and enumerated properties
2017-06-25 21:11:00 +02:00
oowekyala
578bbf8f7b
Draft for the new API
2017-06-25 17:40:16 +02:00
Juan Martín Sotuyo Dodero
042672c8f5
Add missing tail
2017-06-24 17:31:58 -03:00
Andreas Dangel
7f1292b212
Update version to 6.0.0-SNAPSHOT
2017-06-24 22:29:36 +02:00
Juan Martín Sotuyo Dodero
c9990a53cb
Adopt feedback
2017-06-24 17:28:40 -03:00
Andreas Dangel
c303a475d8
Prepare next development version
2017-06-24 22:28:05 +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
Andreas Dangel
f296aabebc
Prepare pmd release 5.8.0
2017-06-24 22:19:47 +02:00
Andreas Dangel
a41fbf0ee2
Add releases/580.xml ruleset
2017-06-24 22:16:20 +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
aa10a825eb
Update changelog, refs #444
2017-06-24 15:32:01 -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
63f7fe264a
Merge branch 'pr-451'
2017-06-24 10:53:13 +02:00
Andreas Dangel
6fff60bf1d
Update changelog, refs #451
2017-06-24 10:52:55 +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
85092dba04
Update changelog
2017-06-23 15:48:39 -03: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
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
66bed6779c
[ci] Improve Travis builds
...
- use travis_wait for long running tasks with no output
- enable fast-finish to abort all builds if one fails
2017-06-21 21:25:38 -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
Bendegúz Nagy
46daa878b0
Java, typeres: fix PR comments, optimize by caching single class JavaTypeDefinitions
2017-06-20 00:18:21 +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
Andreas Dangel
c477eddfc0
Update changelog, refs #440
2017-06-16 17:44:15 +02:00
Andreas Dangel
da310bee91
Merge branch 'ruleset-3.0.0' of https://github.com/oowekyala/pmd into pr-440
2017-06-16 17:42:10 +02:00
Andreas Dangel
64c1c976cd
Merge branch 'pr-436'
2017-06-16 17:40:13 +02:00
Andreas Dangel
ac5f37c99c
Update changelog, refs #436
2017-06-16 17:32:36 +02:00
Andreas Dangel
135db3f4ce
Merge branch 'metrics' of https://github.com/oowekyala/pmd into pr-436
2017-06-16 17:31:20 +02:00
oowekyala
2eb06ada55
Corrections from review #436
2017-06-16 14:21:15 +02:00
Andreas Dangel
e9248b4124
Merge branch 'metrics' of https://github.com/oowekyala/pmd into pr-436
2017-06-16 09:47:26 +02:00
Bendegúz Nagy
4175460d35
Java, typeres: clean up code, add comments
2017-06-15 15:42:22 +02:00
Bendegúz Nagy
bd187a3c63
Java, typeres: fix checkstyle and tests
2017-06-15 10:45:01 +02:00
Juan Martín Sotuyo Dodero
c1e30b833b
Merge branch 'pr-443'
2017-06-14 21:58:28 -03:00
Juan Martín Sotuyo Dodero
6fc280d479
Update changelof, refs #443
2017-06-14 21:58:12 -03:00
Bendegúz Nagy
b8e1738f55
Java, typeres: clean up code
2017-06-15 02:48:15 +02:00
Bendegúz Nagy
68c8fabdf8
Merge branch 'genericFields'
2017-06-15 00:55:55 +02:00
Bendegúz Nagy
6c7ec75339
Java, typeres: optimize visit(ASTName) by skipping package and import declarations
2017-06-15 00:44:23 +02:00
Bendegúz Nagy
8cb053b7b7
Merge branch 'genericFields' into master
2017-06-15 00:42:22 +02:00
Bendegúz Nagy
a0ede7e4c6
Java, typeres: optimize visit(ASTName) by skipping package and import declarations
2017-06-15 00:05:53 +02:00
oowekyala
52777e84e1
NCSS + LOC
2017-06-15 00:00:08 +02:00
Juan Martín Sotuyo Dodero
f57d05d2b3
Merge branch 'pr-423'
2017-06-14 17:41:52 -03:00
Juan Martín Sotuyo Dodero
9517884137
Update changelog, refs #423
2017-06-14 17:40:44 -03:00
Bendegúz Nagy
41ed666d48
Java, typeres: add field visibility test, fix tests
2017-06-14 18:11:20 +02:00
Bendegúz Nagy
2291dd2a38
Java, typeres: cleanup non-generic field tests
2017-06-14 14:56:01 +02:00
oowekyala
ddba34b9b7
Merge branch 'metrics' into metrics-cyclo
2017-06-14 12:28:12 +02:00
oowekyala
03033bd1fa
Simple options, without generics
2017-06-14 12:26:40 +02:00
Bendegúz Nagy
3544c8f5ec
Java, typeres: resolve generic field type in not Name[..] cases
2017-06-14 02:06:20 +02:00
oowekyala
64a6dd19ee
Created ruleset schema 3.0.0
2017-06-13 18:17:44 +02:00
Bendegúz Nagy
18e243447b
Java, typeres: clean up generic field tests
2017-06-13 17:15:30 +02:00
oowekyala
371aba37b1
Use EnumSet for NodeType
2017-06-13 15:12:26 +02:00
Bendegúz Nagy
af284f28b5
Java, typeres: make JavaTypeDefinition immutable
2017-06-13 02:39:30 +02:00
Juan Martín Sotuyo Dodero
d53c0c2fe6
Merge branch 'pr-435'
2017-06-12 19:21:05 -03:00
Juan Martín Sotuyo Dodero
53687afeb8
Update changelog, include changed rules info
2017-06-12 19:20:07 -03:00
Juan Martín Sotuyo Dodero
435373faf7
Prefer multicatch for brevity
2017-06-12 19:11:15 -03:00
Juan Martín Sotuyo Dodero
6d86d85479
Merge branch 'pr-425'
2017-06-12 19:04:20 -03:00
Juan Martín Sotuyo Dodero
c9d20c8964
Update changelog, refs #425
2017-06-12 19:04:01 -03:00
dreniers
38447ca3ee
PR18522: [java] Fixed false positive for PreserveStackTraceRule when using builder pattern.
2017-06-12 19:00:15 -03:00
Juan Martín Sotuyo Dodero
0553073208
Merge branch 'pr-426'
2017-06-12 18:11:09 -03:00
Juan Martín Sotuyo Dodero
0776ef8dac
Update changelog, refs #426
2017-06-12 18:09:10 -03:00
Juan Martín Sotuyo Dodero
7c3e96e02d
Update message and description for UnnecessaryFinalModifier
2017-06-12 18:08:26 -03:00
Bendegúz Nagy
b6439685de
Java, typeres: add TypeDefinition interface
2017-06-12 22:08:11 +02:00
Bendegúz Nagy
ba2041a9d0
Java, typeresolution: rename TypeWrapper to TypeDefinition
2017-06-12 21:58:24 +02:00
Bendegúz Nagy
692fc3acae
Java: fix generic type parameter upper bound bug
2017-06-12 21:51:56 +02:00
oowekyala
04f72c1509
Added nested class test case
2017-06-12 20:54:58 +02:00
oowekyala
f9095f4480
Use stack in MetricsVisitor
2017-06-12 20:50:14 +02:00
Bendegúz Nagy
fccbf294ac
Java: add TypeWrapper to TypeNode interface
2017-06-12 15:36:26 +02:00
oowekyala
2df67c5092
Checkstyle passes but the XML schema does not know metrics yet
2017-06-12 02:29:59 +02:00
oowekyala
310ed26053
Implemented CYCLO metrics
2017-06-12 02:12:53 +02:00
Juan Martín Sotuyo Dodero
494040fe92
Merge pull request #434 from adangel/issue-410
...
[java] ImmutableField: False positive with lombok (fixes #410 )
2017-06-11 23:11:47 +02:00
Bendegúz Nagy
18bca7459a
Java: resolve type or wildcards and lower bounds
2017-06-11 18:09:12 +02:00
oowekyala
8e495cb5e1
Checkstyle fixes
2017-06-11 16:41:07 +02:00
oowekyala
8e9313791f
Completed tests for signatures
2017-06-11 15:51:33 +02:00
Bendegúz Nagy
f4e6a1716c
Java: resolve raw generic types
2017-06-11 15:44:34 +02:00
Andreas Dangel
cb5452fcbb
Revert "travis: use travis_wait"
...
This reverts commit cd39cd6fa8 .
2017-06-11 10:50:42 +02:00
Andreas Dangel
a3004395ab
Revert "travis: let bash read its .bashrc file"
...
This reverts commit 929afd8318 .
2017-06-11 10:50:39 +02:00
Andreas Dangel
929afd8318
travis: let bash read its .bashrc file
2017-06-11 10:46:07 +02:00
Andreas Dangel
0fc9ac185a
[java] PMD requires public modifier on JUnit 5 test ( fixes #428 )
2017-06-11 10:18:12 +02:00
Andreas Dangel
cd39cd6fa8
travis: use travis_wait
2017-06-11 09:26:35 +02:00
Andreas Dangel
6bb044b517
vf: Update shortname of VisualForce
...
Looks nicer in the Designer menu than just "vf".
2017-06-11 09:21:02 +02:00
Andreas Dangel
8af4d71940
[java] ImmutableField: False positive with lombok ( fixes #410 )
2017-06-11 09:07:13 +02:00
Bendegúz Nagy
2be5b987be
Java: resolve type of inherited generic fields
2017-06-10 22:39:52 +02:00
oowekyala
a052550130
Reorganised and finished memoization
2017-06-10 19:14:11 +02:00
Bendegúz Nagy
7c04542861
Java: resolve type of field dependant on generic type argument
2017-06-10 15:45:13 +02:00
oowekyala
9eda3d7f96
Visitor tests
2017-06-10 14:51:04 +02:00
oowekyala
919b04166e
Untested memoization routines
2017-06-10 02:10:25 +02:00
oowekyala
7fde2478bc
Object pooling for Signatures
2017-06-10 01:16:48 +02:00
oowekyala
57c6aadd88
Documentation
2017-06-09 18:40:00 +02:00
oowekyala
0b84366a30
Parse qualified names from string
2017-06-09 17:25:23 +02:00
Juan Martín Sotuyo Dodero
777e1cfbd2
Merge pull request #433 from adangel/issue-429
...
Fixes #429 [core] Error when running PMD from folder with space
2017-06-09 15:54:09 +02:00
snap252
9b7f2747a3
[java] UnnecessaryFinalModifier final in private method #421
...
moved from UnnecessaryModifier to UnnecessaryFinalModifier
2017-06-09 15:14:43 +02:00
oowekyala
bfbecd23c6
MetricsVisitor doesn't need a ClassLoader
2017-06-09 14:33:36 +02:00
Andreas Dangel
6975130af6
Fix unused imports
2017-06-09 12:21:27 +02:00
Andreas Dangel
b964698768
Update changelog, fixes #380
2017-06-09 12:10:14 +02:00
Andreas Dangel
2b0769a1da
Add warnings if ruleset name or description is missing
2017-06-09 12:08:43 +02:00
Andreas Dangel
45b7e7615b
Fixes #429 [core] Error when running PMD from folder with space
2017-06-09 11:52:39 +02:00
oowekyala
2b3d12242e
Moved toplevel packagestats into metrics
2017-06-09 10:32:01 +02:00
oowekyala
b44b6ab5f6
Made tests for Signature and Sigmask
2017-06-09 10:10:00 +02:00
Bendegúz Nagy
d17fb883bb
Java: add support for some generic field access
2017-06-08 18:54:39 +02:00
Andreas Dangel
e1aa6cf6ec
Fix unit test
2017-06-07 21:57:40 +02:00
Andreas Dangel
c3888ace4d
RuleSetBuilder: add validation for name and description when building a ruleset
2017-06-07 21:52:59 +02:00
Andreas Dangel
badbef6fdc
RuleSet: Add validation for name and description, when setting in builder
2017-06-06 21:31:55 +02:00
snap252
106c9e4e8b
[java] UnnecessaryFinalModifier final in private method #421
...
tried to fix checkstyle - not sure because this works just on linux
machines I think
2017-06-06 16:00:01 +02:00
Git Guru
28c610d68c
[java] UnnecessaryFinalModifier final in private method #421
2017-06-06 15:47:37 +02:00
oowekyala
af328f3e5e
Documentation and formatting
2017-06-05 03:53:20 +02:00
oowekyala
a4f3885fcb
Implemented hasMatchingSig
2017-06-05 03:35:28 +02:00
Bendegúz Nagy
c8763bef13
Java: fix typeresolution breaking rules and checkstyle
2017-06-04 00:28:38 +02:00
Bendegúz Nagy
13025f875d
Java: add field access type tests, non-generic is complete
2017-06-04 00:28:38 +02:00
Bendegúz Nagy
039d4429f9
Java: clear up field access tests
2017-06-04 00:28:38 +02:00
Bendegúz Nagy
f4ec163385
Java: add field access type resolution, no support for generics
2017-06-04 00:28:38 +02:00
Andreas Dangel
31ad613552
travis: run site upload in background job to mitigate no-output problem
2017-06-03 10:23:59 +02:00
oowekyala
745f2c1d7b
Merge branch 'master' into metrics
2017-06-02 23:20:28 +02:00
Juan Martín Sotuyo Dodero
de72522642
Merge branch 'type-resolution'
2017-06-02 17:55:39 -03:00
Juan Martín Sotuyo Dodero
70d6b6b012
Update changelog, refs #418
2017-06-02 17:54:50 -03:00
Bendegúz Nagy
1b910587f3
Java: add more tests to this and super expressions
2017-06-02 21:34:24 +02:00
oowekyala
916282be4a
Added method to check if QName points to class or op
2017-06-02 11:01:17 +02:00
Andreas Dangel
161070396c
Merge branch 'pr-409'
2017-06-02 09:43:29 +02:00
Andreas Dangel
5c8ac2499e
Update changelog, refs #409
2017-06-02 09:36:22 +02:00
Andreas Dangel
ca59d3665e
Merge branch 'metrics-prework' of https://github.com/oowekyala/pmd into pr-409
2017-06-02 09:33:47 +02:00
Andreas Dangel
e6e0483659
travis: fix path for $HOME/.m2
2017-06-02 09:29:08 +02:00
Juan Martín Sotuyo Dodero
a239b6c78a
Merge branch 'pr-416'
2017-06-01 12:04:53 -03:00
Juan Martín Sotuyo Dodero
2e869d4c6e
Update changelog, refs #416
2017-06-01 12:02:32 -03:00
Juan Martín Sotuyo Dodero
0822218574
Simplify expressions
2017-06-01 11:56:48 -03:00
snap252
2460402ea8
test case & adapted grammar for annotated generic return type
...
public static <T> @Nullable T getNullableEnum() {
return null;
}
2017-06-01 15:00:20 +02:00
Git Guru
b8d435235f
fixed/removed unneeded change
...
@@ -1488,7 +1488,7 @@ void MethodDeclaration(int modifiers) :
{jjtThis.setModifiers(modifiers);}
{
[ TypeParameters() ]
- ResultType() MethodDeclarator() [ "throws" NameList() ]
+ [(Annotation() {checkForBadTypeAnnotations();})+] ResultType()
MethodDeclarator() [ "throws" NameList() ]
2017-06-01 10:13:29 +02:00
oowekyala
0568de5daf
Use name() in place of description in NodeType
2017-06-01 03:34:19 +02:00
oowekyala
fc1c0e5c4b
Checkstyle fix
2017-05-31 23:00:07 +02:00
oowekyala
7af9c2344b
Fixed #408 - UR anomaly in assert statements
2017-05-31 22:55:18 +02:00
oowekyala
d27e899933
Made CurrentPath iterable
2017-05-31 22:30:27 +02:00
oowekyala
f82294ca5d
Factored logging messages
2017-05-31 22:15:00 +02:00
oowekyala
daa54876ea
Checkstyle fixes
2017-05-31 21:49:29 +02:00
oowekyala
3c1162b393
Removed ids
2017-05-31 21:30:08 +02:00
oowekyala
435f6ce16e
Changed NodeType to an enum
2017-05-31 21:27:44 +02:00
Bendegúz Nagy
d40e80742c
Java: fix checkstyle issues
2017-05-31 15:59:48 +02:00
oowekyala
455e42bf3b
Merge branch 'master' of https://github.com/pmd/pmd into metrics-prework
2017-05-31 11:38:41 +02:00
oowekyala
255dfd04a8
Changed benchmark name
2017-05-31 00:40:23 +02:00
Bendegúz Nagy
0ec1e44b13
Java: resolve 'super' expression's type
2017-05-30 20:23:11 +02:00
Bendegúz Nagy
babe32a16c
Java: resolve qualified 'this' expression's type
2017-05-30 17:37:47 +02:00
snap252
1a6be9190b
+ beautified method signature
2017-05-30 16:09:17 +02:00
oowekyala
0aff989862
Checkstyle fix
2017-05-30 15:36:39 +02:00
oowekyala
9ee19ac7ac
Remove ALL fields in enums
2017-05-30 15:29:25 +02:00
snap252
a4754e9fc9
I hear voices ... and they tell me to like multi dimensional arrays
...
private static void testMultiDimArrayWithAnnotations() {
// ever used a 2D-Array in java??
Object x = new Object @NonNull[2] @Nullable[1] @NonNull[3];
}
2017-05-30 15:15:44 +02:00
oowekyala
c543cef8b1
Big refactor of qname
...
The creation methods now mostly take the node to describe as parameter. That way, the implementation of the class is less exposed, the creation methods can be overloaded and simplified in the AST nodes' classes.
Only nested class do not do that. That is to keep the recursive call to getQualifiedName which would be much more complicated if it was called from QualifiedName rather than the AST node.
2017-05-30 15:15:10 +02:00
snap252
3e75ddc188
+ should have tried first :(
2017-05-30 14:59:53 +02:00
snap252
5120b0985c
fixed bad void return
2017-05-30 14:58:09 +02:00
snap252
7997297e0b
test case for
...
public void createNonNullArray() {
return new MetaColumn @NonNull [value];
}
2017-05-30 14:13:38 +02:00
snap252
b5474cdcf8
test case and fix for
...
public static <T extends @NonNull Enum<T>> getEnum() {
return null;
}
2017-05-30 14:05:29 +02:00
oowekyala
9ad46fbf88
Documented usesMetrics and usesTypeRes
2017-05-30 13:39:41 +02:00
oowekyala
02bac9ab71
Moved QualifiedName into standalone class
2017-05-30 13:34:48 +02:00
snap252
0660c7298a
+ simplified
2017-05-30 12:31:03 +02:00
snap252
d314a2c301
test case for
...
private byte @Nullable [] getBytes(){
return null;
}
2017-05-30 12:20:26 +02:00
Git Guru
7a4766e8a6
[java] Parsing Problem with Annotation for Array Member Types #417
2017-05-30 10:52:09 +02:00
Git Guru
68ab7048cb
*[java]* Java 8 parsing problem with annotations for wildcards #414
2017-05-29 18:20:12 +02:00
Bendegúz Nagy
6fb5681734
Resolve 'this' keyword in Java
2017-05-29 02:47:21 +02:00
Bendegúz Nagy
e75cf1b55c
Add test for Java 'this' keyword typeresolution
2017-05-29 02:29:13 +02:00
oowekyala
da4897f2b3
Fix misplaced benchmark
2017-05-28 18:14:10 +02:00
oowekyala
4be7616c15
Fixed formatter chaos
2017-05-28 18:13:19 +02:00
Andreas Dangel
872718a0dd
Update changelog, closes #407
2017-05-27 20:37:12 +02:00
Andreas Dangel
cee7d2a046
release script: use English locale (refs #407 )
2017-05-27 20:33:03 +02:00
Juan Martín Sotuyo Dodero
fdf497e4a6
Merge branch 'pr-406'
2017-05-26 14:28:10 -03:00
Juan Martín Sotuyo Dodero
dde5e416b4
Update changelog, refs #406
2017-05-26 14:27:44 -03:00
Juan Martín Sotuyo Dodero
7ef9b93b90
Add method reference test case
2017-05-26 14:24:24 -03:00
oowekyala
e1f02acf87
Checkstyle fix
2017-05-26 17:56:09 +02:00
oowekyala
6fbcb431fc
Checkstyle fixes
2017-05-26 17:45:21 +02:00
oowekyala
ad51c61f33
Revert dumb move with gitignore
2017-05-26 15:27:48 +02:00
oowekyala
acff55e151
Deleted local file
2017-05-26 15:19:12 +02:00
oowekyala
0847f24068
Fix capabilities nonsense
2017-05-26 15:13:03 +02:00
oowekyala
5b918ba53d
Revert "Canonical type of arguments in method Qname" until TypeRes is ok
2017-05-26 14:59:46 +02:00
oowekyala
b09cde6d03
Canonical type of arguments in method Qname\n That doesn't work for now because of Typeres. Be sure to edit the tests
2017-05-26 14:56:49 +02:00
oowekyala
909bb60043
Inlined canonical separators for qualified names
2017-05-26 14:45:17 +02:00
oowekyala
1673e8306a
Use Qname for memoized result retrieval
2017-05-26 14:25:00 +02:00
oowekyala
117da90e72
Fix benchmark
2017-05-26 14:23:24 +02:00
Dennie Reniers
43c13b4c8c
Merge branch 'master' into PR18700
2017-05-26 10:26:19 +02:00
oowekyala
a6185327b5
Qualified names memoization
2017-05-25 20:08:43 +02:00
Andreas Dangel
6a27ac55a7
Rename pages so the "Edit me" link is working
2017-05-25 13:13:25 +02:00
Andreas Dangel
97bfcf49fc
Add folder properties, so that "Edit me" link works correctly
2017-05-25 13:04:24 +02:00
Andreas Dangel
4c41e1e8a4
Add "--rm=true" flag for running docker
2017-05-25 12:39:40 +02:00
Andreas Dangel
7ee6284ec2
Change github edit button temporarily to point to adangel/pmd
2017-05-25 12:37:55 +02:00
Andreas Dangel
ae7be0539c
Add more release notes
2017-05-25 12:35:02 +02:00
Andreas Dangel
70ab4f2468
Restructure pages: product is now "pmd", sidebar new, pages moved
...
Removed the samples mydoc, product1, product2
2017-05-25 12:16:23 +02:00
Andreas Dangel
624705bd70
Info about using docker
2017-05-25 11:12:17 +02:00
Andreas Dangel
f0df36517e
Update sidebar structure
2017-05-25 11:12:08 +02:00
Andreas Dangel
b14da68b5a
Update theme from https://github.com/tomjohnson1492/documentation-theme-jekyll
2017-05-25 10:22:39 +02:00
Andreas Dangel
b193bb28d8
Add 'docs/' from commit '106142b25c9387ffd002437027ced1b04f494205'
...
git-subtree-dir: docs
git-subtree-mainline: 23545aa7ea
git-subtree-split: 106142b25c
2017-05-25 10:01:42 +02:00
oowekyala
5f426f90b7
Removed probably useless methods from QualifiedName
2017-05-23 22:10:44 +02:00
oowekyala
def31ec49c
Documentation
2017-05-23 22:09:28 +02:00
oowekyala
5b622e6cf5
hashCode and equals for Signatures
2017-05-23 21:36:04 +02:00
oowekyala
f83ee39c65
Visitor with classContext
2017-05-23 21:25:31 +02:00
oowekyala
c35e513598
Static building method for FieldSignature
2017-05-23 21:24:52 +02:00
oowekyala
a50a1b5795
Revert "FieldDeclaration implements QualifiableNode"
...
This reverts commit ded6dc670b .
2017-05-23 21:20:05 +02:00
oowekyala
ded6dc670b
FieldDeclaration implements QualifiableNode
2017-05-23 21:18:20 +02:00
oowekyala
a99f0c276d
Added modification methods for ClassStats
2017-05-23 20:49:00 +02:00
oowekyala
e4392fc751
createIfNotFound for PackageStats methods
2017-05-23 20:29:54 +02:00
oowekyala
1dacfd1b96
Update untracked
2017-05-23 18:28:24 +02:00
oowekyala
5607456f2f
Simplified existing metrics
2017-05-23 17:59:22 +02:00
oowekyala
ab14dbb47c
Added LOC metric
2017-05-23 17:55:38 +02:00
oowekyala
167d5ec63c
MethodOrConstructorDeclaration extends Node
2017-05-23 17:51:15 +02:00
oowekyala
a6f41f1bff
Minor doc changes
2017-05-23 17:41:25 +02:00
oowekyala
3ad3df3a70
Implemented some navigation and modification methods on PackageStats
2017-05-23 17:29:03 +02:00
oowekyala
583e350da0
Finished visitor facade
2017-05-23 17:28:16 +02:00
oowekyala
44a4aecf85
Added utility methods for qualified names
2017-05-23 16:56:04 +02:00
oowekyala
4891592a57
Merge branch 'metrics-prework' of https://github.com/oowekyala/pmd into metrics-prework
2017-05-23 16:14:58 +02:00
oowekyala
8c0863a070
Added test for QualifiedName
2017-05-23 16:08:47 +02:00
oowekyala
996a08fbd6
Created QualifiedName class
2017-05-23 14:56:05 +02:00
dreniers
4f826d2e08
Fix for PR 18700: False positive Design8 (lambda expression containing function call).
...
Fixed it by having ASTLambdaExpression.isFindBoundary() return true, analogous to ASTClassOrInterfaceBodyDeclaration.isFindBoundary().
2017-05-23 09:54:39 +02:00
oowekyala
c013f11ad0
Implemented qualified names
2017-05-22 22:59:12 +02:00
oowekyala
ed736dabb5
Implemented qualified names
2017-05-22 22:33:33 +02:00
oowekyala
c767953ff5
Solve dependency problem to pmd-core
2017-05-22 20:27:29 +02:00
oowekyala
a97997bb1e
Checkstyle fixes
2017-05-22 20:19:42 +02:00
oowekyala
a8cb6eced7
Resolve merge conflicts with prework
2017-05-22 19:55:55 +02:00
oowekyala
42e0a9f8e8
Added the visitor
2017-05-22 19:50:41 +02:00
oowekyala
2cb92a005e
Adapted RuleTstTest
2017-05-22 19:49:45 +02:00
oowekyala
ea2523489a
Checkstyle fixes
2017-05-22 19:27:36 +02:00
oowekyala
cad0697798
Added a Benchmark for Metrics
2017-05-22 18:57:53 +02:00
oowekyala
0be4a2c09a
SourceCodeProcessor should now start MetricsVisitorFacade
2017-05-22 18:53:40 +02:00
oowekyala
fffa63ad63
Rulesets are aware of useMetrics
2017-05-22 18:52:53 +02:00
oowekyala
52a7707681
Added umbrella interface for Constructor and Methods
2017-05-21 20:47:20 +02:00
oowekyala
dc83eb1720
Introduced metrics attribute in xml rule element
2017-05-21 20:37:59 +02:00
oowekyala
c0b020e066
Added usesMetrics to Rule interface
2017-05-21 20:33:39 +02:00
oowekyala
8bc1173ce5
Implemented usesMetrics field in Rules
2017-05-21 20:25:44 +02:00
oowekyala
cdd8737df4
Added OO metrics to Rule interface
2017-05-21 20:20:18 +02:00
oowekyala
9ec2388bb3
Merge branch 'master' of https://github.com/oowekyala/pmd into metrics-prework
2017-05-21 14:59:21 +02:00
Andreas Dangel
23545aa7ea
travis build - run only specific parts of release.sh script
2017-05-20 23:53:28 +02:00
Andreas Dangel
6aa77ce3e4
travis: run install before building site docu
2017-05-20 23:02:22 +02:00
Andreas Dangel
e63e352573
Prepare next development version
2017-05-20 22:39:36 +02:00
Andreas Dangel
1e64c0d864
[maven-release-plugin] prepare for next development iteration
2017-05-20 22:35:55 +02:00
Andreas Dangel
9b70c1a0d1
[maven-release-plugin] prepare release pmd_releases/5.7.0
2017-05-20 22:35:46 +02:00
Andreas Dangel
ac8ede1897
Prepare pmd release 5.7.0
2017-05-20 22:29:23 +02:00
Andreas Dangel
3d6aab783b
Adjust do-release.sh script
2017-05-20 22:21:55 +02:00
Andreas Dangel
0434f9bd22
Fix javadoc
2017-05-20 21:51:31 +02:00
Andreas Dangel
80dcc67002
Merge branch 'issue-378'
2017-05-20 21:37:50 +02:00
Andreas Dangel
4e72eef495
[java] Parser Error for empty statements
...
Fixes #378
2017-05-20 21:28:39 +02:00
Andreas Dangel
362fa0e19e
Merge branch 'issue-358'
2017-05-20 20:56:54 +02:00
Andreas Dangel
1cac757f66
Update changelog, refs #358 #395
2017-05-20 20:56:45 +02:00
Andreas Dangel
92d2e68396
Merge branch 'master' of https://github.com/fsherstobitov/pmd into issue-358
2017-05-20 20:54:06 +02:00
Andreas Dangel
cd625c3086
Merge branch 'pr-392'
2017-05-20 20:46:30 +02:00
Andreas Dangel
073c001b1b
Update changelog, refs #392
2017-05-20 20:46:10 +02:00
Andreas Dangel
6d768485dd
Merge branch 'master' of https://github.com/alwa/pmd into pr-392
2017-05-20 20:46:00 +02:00
Andreas Dangel
55bb251887
Merge branch 'pr-391'
2017-05-20 20:39:03 +02:00
Andreas Dangel
3e4a9a3999
Update changelog, refs #391
2017-05-20 20:38:56 +02:00
Andreas Dangel
ba4dbee410
Merge branch 'fix-apex-doc-typo' of https://github.com/KThompso/pmd into pr-391
2017-05-20 20:38:05 +02:00
Andreas Dangel
8d787333f6
Merge branch 'pr-390'
2017-05-20 20:37:14 +02:00
Andreas Dangel
f4b4966f41
Update changelog, refs #390
2017-05-20 20:37:04 +02:00
Andreas Dangel
fb471281b0
Merge branch 'trailingwhitespace' of https://github.com/vanniktech/pmd into pr-390
2017-05-20 20:36:21 +02:00
Andreas Dangel
daa66f5bbb
Merge branch 'empty_renderer' of https://github.com/ryan-gustafson/pmd
2017-05-20 20:27:28 +02:00
Andreas Dangel
0589941b38
Merge branch 'issue-369'
2017-05-20 20:20:38 +02:00
Andreas Dangel
5bcdf5c513
Update changelog, refs #369 #383
2017-05-20 20:20:07 +02:00
Andreas Dangel
c825fb6f58
Merge branch 'issue369' of https://github.com/oowekyala/pmd into issue-369
2017-05-20 20:17:34 +02:00
Andreas Dangel
71a1926e81
Merge branch 'issue-334'
2017-05-20 20:04:47 +02:00
Andreas Dangel
ff67aa0799
Update changelog, refs #334 #382
2017-05-20 20:04:38 +02:00
Andreas Dangel
9ed962ac62
Merge branch 'issue334' of https://github.com/oowekyala/pmd into issue-334
2017-05-20 20:01:10 +02:00
Andreas Dangel
fb56643590
Fix travis build for releases (refs #376 )
2017-05-20 11:17:35 +02:00
Andreas Dangel
050e659c68
Fix travis build, part 5 (refs #376 )
2017-05-20 11:09:54 +02:00
Andreas Dangel
eb0ddfcf2b
Fix travis build, part 4 (refs #376 )
...
Now, a push is a push
2017-05-20 10:43:14 +02:00
Andreas Dangel
120c7cc1ff
Fix travis build, add more info during build (refs #376 )
2017-05-20 10:30:57 +02:00
Andreas Dangel
64eac02bbd
Fix travis build, part 3 (refs #376 )
2017-05-20 09:59:30 +02:00
Andreas Dangel
8ef25e839c
Fix travis build, part 2 (refs #376 )
2017-05-20 09:55:09 +02:00
Andreas Dangel
e5b38f7937
Fix travis build script, refs #376
2017-05-20 09:51:37 +02:00
Andreas Dangel
5e9a0e4e89
Merge branch 'issue-376'
2017-05-20 09:22:07 +02:00
Andreas Dangel
13e788edcf
Update changelog, refs #376
2017-05-20 09:21:44 +02:00
Fedor Sherstobitov
b82228d8df
Fixes #358 Mockito verify method is not taken into account in JUnitTestsShouldIncludeAssert rule - treat Mockito's verify and Mockito.verify as assert statements
2017-05-17 11:27:04 +05:00
Andreas Dangel
adced2dd26
Restructure travis build scripts, so that we have 3 steps, that can
...
run in parallel:
* build-deploy.sh
* build-site.sh
* build-sonar.sh
2017-05-15 21:11:43 +02:00
oowekyala
0193aa8f23
Outer memo infrastructure
2017-05-15 00:48:46 +02:00
oowekyala
3c3648151c
References to class hierarchy
2017-05-14 23:43:54 +02:00
Alix Warnke
207cbf9c91
False positive for Law Of Demeter: https://sourceforge.net/p/pmd/bugs/1427/
2017-05-10 23:56:34 +02:00
Kyle Thompson-Bass
4f96cabe82
[apex] Fix documentation typo
2017-05-10 12:33:57 -04:00
oowekyala
e297f7c48b
Removed copypaste suggestion
2017-05-10 11:35:09 +02:00
Niklas Baudy
d076264813
Remove trailing whitespaces in design.xml
2017-05-09 10:32:50 +02:00
Andreas Dangel
abaeea12a5
Merge branch 'pr-381'
2017-05-08 20:50:21 +02:00
Andreas Dangel
8ec4e2acb2
Update changelog, refs #381
2017-05-08 20:50:04 +02:00
Andreas Dangel
d61a18fe62
Merge branch 'site-doc-fix' of https://github.com/oowekyala/pmd into pr-381
2017-05-08 20:48:03 +02:00
Andreas Dangel
1554fb91bc
Merge branch 'issue-389'
2017-05-08 20:36:11 +02:00
Andreas Dangel
a1492bb2cc
Update changelog, refs #389
2017-05-08 20:36:03 +02:00
Andreas Dangel
4a03cd7eb7
Fixes #389 RuleSetCompatibility - old ruleset name was unusedcode
2017-05-08 20:35:13 +02:00
Ryan Gustafson
354e592540
Add the 'empty' Renderer which writes nothing.
...
Use with '-f empty' on the command line.
2017-05-07 22:30:54 -05:00
Oowekyala
16a878b6d6
Cleanup
2017-05-07 01:35:49 +02:00
Oowekyala
01164e2de5
Use a permalink
2017-05-07 01:04:16 +02:00
Oowekyala
9c1e8bb4e8
Changed package structure
2017-05-06 16:33:16 +02:00
Oowekyala
cb0a30b2e1
Documentation
2017-05-06 16:29:44 +02:00
Oowekyala
a8ff116fb3
Changed header template
2017-05-06 15:55:11 +02:00
Oowekyala
3b7c956596
Fixed unrecognised headers
2017-05-06 02:56:10 +02:00
Oowekyala
fdff9bb964
Added documentation details
2017-05-06 02:14:05 +02:00
Oowekyala
c8b6a4d9d9
Fix broken link
2017-05-06 01:41:10 +02:00
Oowekyala
8af2b6c118
Methods and constructors are treated the same
2017-05-05 19:35:38 +02:00
Oowekyala
6a0cd33e28
Simplified capability check
2017-05-05 19:23:53 +02:00
Oowekyala
5d308a5312
Introduced marker interface for AST method and constructor nodes
2017-05-05 17:33:59 +02:00
Oowekyala
5d9434b623
Merge branch 'master' into metrics-prework
2017-05-05 14:52:39 +02:00
Andreas Dangel
39eb79f58e
Fix build determining current version
...
Only take the last line of the output. Current maven wrapper
will output the current directy, later versions of the wrapper
will output the wrapper version.
2017-05-05 12:22:55 +02:00
Andreas Dangel
051bee9192
Fixes #1513 [java] Remove deprecated rule UseSingleton
2017-05-05 11:52:12 +02:00
Andreas Dangel
bbb6757e10
Update changelog, closes #377
2017-05-05 11:37:56 +02:00
Andreas Dangel
767eea8b4e
travis release script - fix missing escape for backslash, refs #324
2017-05-05 11:37:56 +02:00
Andreas Dangel
aba44a8824
Make travis to use maven wrapper, too
...
refs #377
2017-05-05 11:37:51 +02:00
Andreas Dangel
88a8d44f97
Add maven wrapper, use maven 3.5.0
...
refs #377
2017-05-05 11:37:41 +02:00
Andreas Dangel
1ed34de15c
Use latest maven-pmd-plugin 3.8
...
refs #361
2017-05-05 10:49:15 +02:00
Andreas Dangel
7c3bce0546
Improve changelog
2017-05-01 19:36:04 +02:00
Andreas Dangel
00fcbd7375
Trying to speed up travis build: run the build only once...
2017-05-01 19:34:45 +02:00
Andreas Dangel
440b228757
Merge branch 'issue-345'
2017-05-01 17:42:48 +02:00
Andreas Dangel
b4c5128a64
Update changelog, refs #345
2017-05-01 17:42:38 +02:00
Andreas Dangel
44bb2826f1
[java] FieldDeclarationsShouldBeAtStartOfClass: Add unit test
...
for new "ignoreInterfaceDeclarations" property
Fixes #345
2017-05-01 17:38:14 +02:00
Andreas Dangel
f60419c966
Merge branch 'patch-1' of https://github.com/SUPERCILEX/pmd into issue-345
2017-05-01 17:27:10 +02:00
Andreas Dangel
72dc0ab232
Merge branch 'pr-372'
2017-05-01 17:26:27 +02:00
Andreas Dangel
853e07b368
Update changelog, refs #372
2017-05-01 17:19:51 +02:00
Andreas Dangel
c5ae33a683
[core] HTMLRenderer: Add test for HTML escaping
2017-05-01 17:19:40 +02:00
Andreas Dangel
a99c39fd24
Merge branch 'XSSInHTMLRenderer' of https://github.com/sgorbaty/pmd into pr-372
2017-05-01 16:58:15 +02:00
Andreas Dangel
ec4952d4eb
Merge branch 'pr-368'
2017-05-01 16:51:26 +02:00
Andreas Dangel
6ac8455346
Update changelog, refs #368
2017-05-01 16:51:07 +02:00
Andreas Dangel
bfd18f5126
Merge branch 'NOTImprovement' of https://github.com/sgorbaty/pmd into pr-368
2017-05-01 16:44:21 +02:00
Alex Saveau
fa1e54f87f
Add property to ignore interfaces in FieldDeclarationsShouldBeAtStartOfClassRule
2017-04-30 09:47:09 -07:00
Andreas Dangel
98e1cc128b
Merge branch 'pmd/5.5.x'
2017-04-29 22:12:11 +02:00
Andreas Dangel
3794f8ffff
Prepare next development version
2017-04-29 21:49:31 +02:00
Andreas Dangel
67fae36167
[maven-release-plugin] prepare for next development iteration
2017-04-29 21:47:05 +02:00
Andreas Dangel
fdf162382b
[maven-release-plugin] prepare release pmd_releases/5.5.7
2017-04-29 21:46:53 +02:00
Andreas Dangel
ecf5bcb48b
Prepare pmd release 5.5.7
2017-04-29 21:40:54 +02:00
Andreas Dangel
25e840cd68
Disable caching for URLConnections
...
Fixes #364 , refs #337
(cherry picked from commit 9fae304b6f )
2017-04-29 21:30:07 +02:00
Andreas Dangel
0d0134b4fd
Change version to 5.7.0-SNAPSHOT
2017-04-29 20:27:03 +02:00
Andreas Dangel
d1e2a4775f
Prepare next development version
2017-04-29 20:22:28 +02:00
Andreas Dangel
7373b040c9
[maven-release-plugin] prepare for next development iteration
2017-04-29 20:20:16 +02:00
Sergey
daeb9e6c1e
Using Lang 3
2017-04-28 10:54:09 -07:00
Sergey
985299b490
Fix XSS in HTML renderer
2017-04-28 10:38:48 -07:00
Sergey
74199a0d9b
Additional test case
2017-04-26 15:39:42 -07:00
Sergey
0386d712b3
Adding AST Negation expression
2017-04-26 15:35:53 -07:00
Clément Fournier
ebafeff4a4
Merge branch 'master' into metrics-prework
2017-04-05 22:45:33 +02:00
Clément Fournier
6e6559cb0c
Merge branch 'metrics-prework' of https://github.com/Oowekyala/pmd into metrics-prework
2017-04-01 13:57:49 +02:00
Clément Fournier
1ad748764d
Support for constructors
2017-04-01 13:57:07 +02:00
Clément Fournier
4b671f5d12
Abstracted signatures
2017-04-01 13:57:07 +02:00
Clément Fournier
7a5894c856
Implemented signatures
2017-04-01 13:57:07 +02:00
Clément Fournier
92568e3174
Started holder impl
2017-04-01 13:57:06 +02:00
Clément Fournier
b922bcd04c
Started holder impl
2017-04-01 13:57:06 +02:00
Clément Fournier
af650cc987
Double enum selection
2017-04-01 13:57:06 +02:00
Clément Fournier
9fedb69d42
Simple Key enum selection
2017-04-01 13:57:06 +02:00
Clément Fournier
8ff272a505
Support for constructors
2017-03-27 20:25:25 +02:00
Clément Fournier
e569941a06
Abstracted signatures
2017-03-27 20:22:41 +02:00
Clément Fournier
7544aa47c7
Implemented signatures
2017-03-27 19:00:42 +02:00
Clément Fournier
f61455440c
Started holder impl
2017-03-27 06:11:31 +02:00
Clément Fournier
3a942aad07
Started holder impl
2017-03-27 06:11:20 +02:00
Clément Fournier
08b6b560cb
Double enum selection
2017-03-27 00:07:29 +02:00
Clément Fournier
e26b71585a
Simple Key enum selection
2017-03-26 23:51:39 +02:00
JosephAllen
106142b25c
Update index.md
2016-09-12 16:46:12 -04:00
JosephAllen
e88c2bde90
Updated Favicon
2016-09-10 18:33:44 -04:00
JosephAllen
b48228044d
uploaded favicon.ico
2016-09-10 18:29:55 -04:00
JosephAllen
120eca7224
Removed favicon
2016-09-10 18:26:31 -04:00
JosephAllen
d20d5e3615
Adding Favicon
2016-09-10 18:25:29 -04:00
JosephAllen
ecf75728fa
Minor text updates
2016-09-10 17:15:09 -04:00
JosephAllen
423e032a86
Udpated How it works page
2016-09-10 17:13:43 -04:00
JosephAllen
b2a3725a8f
Changed Index page label on Sidebar
2016-09-10 17:06:01 -04:00
JosephAllen
1c2727166c
Udpated Sidebar
2016-09-10 16:30:29 -04:00
JosephAllen
d3b5c22433
Added How it works to Sidbar
2016-09-10 16:28:00 -04:00
JosephAllen
19b15cb37a
Formatting Updates
2016-09-10 00:27:22 -04:00
JosephAllen
0ff3645f71
Major Documentation Updates
2016-09-10 00:07:47 -04:00
JosephAllen
713a9e091e
Added Customizing Pages
2016-09-09 20:27:54 -04:00
JosephAllen
a729ab11b5
Updated Relase Notes
2016-09-09 17:11:22 -04:00
JosephAllen
0cfe784b63
Update README.md
2016-09-07 22:26:46 -04:00
JosephAllen
f55a1ddf06
Update for image handling
2016-09-07 22:24:55 -04:00
JosephAllen
e77e8bf65f
Many Updates
2016-09-07 22:17:39 -04:00
JosephAllen
d69b9f8ad0
Notes Update
2016-09-07 21:12:28 -04:00
JosephAllen
f06290e348
5.4.0 Release Notes
2016-09-07 21:09:55 -04:00
JosephAllen
52109dda2c
New Release Note
2016-09-07 21:06:21 -04:00
JosephAllen
3e47866b9e
Deleted Deprecated Pages
2016-09-07 20:56:30 -04:00
JosephAllen
de0e9cce62
Sidebar Update
2016-09-07 20:54:28 -04:00
JosephAllen
33a385ce1e
Updated Release Notes
2016-09-07 20:52:34 -04:00
JosephAllen
63b59fbe67
Update README.md
2016-09-07 20:45:41 -04:00
JosephAllen
a8517daf85
Update README.md
2016-09-07 20:45:17 -04:00
JosephAllen
5783e262f8
Release Notes Update
2016-09-07 20:41:14 -04:00
JosephAllen
a007e89659
Release Notes as Blog Posts
2016-09-07 20:29:11 -04:00
JosephAllen
bba201d44e
Sidebar Update
2016-09-07 20:24:18 -04:00
JosephAllen
323a3e5943
New Release Notes Path
2016-09-07 20:22:40 -04:00
JosephAllen
5be5088b4e
Removed Deprecated Pages
2016-09-07 20:12:09 -04:00
JosephAllen
53730a6713
Sidebar udpate
2016-09-07 20:10:22 -04:00
JosephAllen
08dfa205db
Release Notes
2016-09-07 20:09:35 -04:00
JosephAllen
df382d4425
Release Notes
2016-09-07 20:08:44 -04:00
JosephAllen
7aaab9c276
5.4.1 release notes
2016-09-07 20:07:27 -04:00
JosephAllen
cdb0daa2f8
Updates
2016-09-07 20:03:00 -04:00
JosephAllen
8db0d07e54
Release Notes
2016-09-07 20:01:53 -04:00
JosephAllen
f4ed395924
Added 5.4.2 Release notes
2016-09-07 20:00:50 -04:00
JosephAllen
db73069a3b
Updates for the release notes path
2016-09-07 19:55:16 -04:00
JosephAllen
b7542f559f
Udpates to Support Custom Tags
2016-09-07 19:32:46 -04:00
JosephAllen
9c43cb3d08
Create new Tag page
2016-09-07 19:24:26 -04:00
JosephAllen
c4800b8369
Again
2016-09-07 19:21:40 -04:00
JosephAllen
889978dfed
Changelog
2016-09-07 19:18:03 -04:00
JosephAllen
5c084d453a
More
2016-09-07 19:15:21 -04:00
JosephAllen
0a010fc548
More
2016-09-07 19:12:54 -04:00
JosephAllen
7f55f4aedc
MOre Udpates
2016-09-07 19:11:47 -04:00
JosephAllen
1d41c98808
Updated Release Notes
2016-09-07 19:10:38 -04:00
JosephAllen
0806e645bc
Updated Release Notes
2016-09-07 19:07:45 -04:00
JosephAllen
1b08556aec
Updated Sidebar
2016-09-07 18:54:46 -04:00
JosephAllen
4e2ca2b898
More condif Updates
2016-09-07 18:52:38 -04:00
JosephAllen
f73ada0698
More Udpates
2016-09-07 18:49:48 -04:00
JosephAllen
a98a96307f
Updated Config
2016-09-07 18:48:38 -04:00
JosephAllen
25043414d4
Index Update
2016-09-07 18:33:08 -04:00
JosephAllen
c8d4ee8fae
Updating Theme
2016-09-07 18:23:55 -04:00
JosephAllen
af06642705
Updated mydoc_introduction.md
2016-09-07 18:13:46 -04:00
JosephAllen
e947459280
Updated intro
2016-09-07 17:41:23 -04:00
JosephAllen
15eb11732d
Updated GemLock
2016-09-07 17:33:21 -04:00
JosephAllen
150e143dd4
Moved Site file back
2016-09-07 17:29:50 -04:00
JosephAllen
327192d2a5
Moved Read.md
2016-09-07 17:21:58 -04:00
JosephAllen
e41a3c0f2c
Removed Unneeded file
2016-09-07 17:21:00 -04:00
JosephAllen
4007247f11
Moved to Site folder to Match Current Site
2016-09-07 17:20:24 -04:00
JosephAllen
73e79c67dc
Test
2016-09-07 17:19:09 -04:00
JosephAllen
62ede752c5
Setup
2016-09-07 17:18:31 -04:00
JosephAllen
a902912b59
Update mydoc_introduction.md
2016-09-07 16:45:47 -04:00
JosephAllen
6fe7eab7ac
Update mydoc_introduction.md
2016-09-07 16:45:19 -04:00
Joseph Allen
24eaf59199
3rd Committ
2016-09-07 16:43:10 -04:00
Joseph Allen
4af5170365
2nd Commit
2016-09-07 16:39:23 -04:00
Joseph Allen
c0fee28409
1st Committ
2016-09-07 16:10:48 -04:00
JosephAllen
91058640f0
Initial commit
2016-09-07 14:32:22 -04:00