markhall82
16f7f9385b
Correct previous error in doc re: placeholders
...
Revert IntelliJ added tags from pom.xml
2019-09-11 20:43:37 +01:00
markhall82
a660f2cfcb
Fix for issue #336 , introduce log4j 2 support as it can use the same rules as slf4j.
...
Note, one of the rules remains InvalidSlf4jMessageFormatRule, to make the rule more generic it would require a documentation change on sourceforge site.
2019-09-11 20:36:34 +01:00
Clément Fournier
be7d439134
Checkstyle
2019-09-08 16:10:45 +02:00
Clément Fournier
0b52f6427a
Add regression test for MissingOverride
...
Refs #2007
2019-09-08 16:07:05 +02:00
Juan Martín Sotuyo Dodero
bb0379ef4f
Merge pull request #1982 from adangel/issue-1923
...
[core] Use real file name in ruleContext during analysis
2019-09-05 20:04:21 -03:00
Andreas Dangel
ddd07e517a
Merge branch 'master' into issue-1923
2019-09-03 19:43:27 +02:00
Juan Martín Sotuyo Dodero
282f29f781
Add more missing imports
2019-09-02 17:51:33 -03:00
Juan Martín Sotuyo Dodero
e72a92d2fb
Merge branch 'master' into issue-1952
2019-09-02 17:46:20 -03:00
Juan Martín Sotuyo Dodero
de13f7a0ae
Add missing imports to fix tests
2019-09-02 17:40:33 -03:00
Juan Martín Sotuyo Dodero
3a7f747c05
Improve TypeHelper.isA to better handle edge cases
2019-09-02 17:40:03 -03:00
Juan Martín Sotuyo Dodero
780edaa5f5
Merge branch 'pr-1970'
2019-08-18 01:37:02 -03:00
Juan Martín Sotuyo Dodero
febf512e9c
Merge branch 'pr-1968'
2019-08-18 01:28:07 -03:00
Andreas Dangel
bdd0f2c525
[core] Use real file name in ruleContext during analysis
...
* This is needed to fix #1923
* RuleContext, RuleViolations all use the real name
* The shortname is only applied by the renderers now
at the end of the processing
* Error logging and reporting also uses the real, full name
of the file being analysed
2019-08-16 11:22:48 +02:00
Anton Kot
e581bba71e
review_changes
2019-08-13 17:48:25 +02:00
Anton Kot
ce4b2c6041
Issue_1862_No_Message_Digest_class_field
2019-08-12 13:02:26 +02:00
Tobias Weimer
f8bb126c6c
[java] DoubleBraceInitialization:
...
* Updated documentation to make the example compile (there is no varargs version of addAll(..))
2019-08-11 11:16:33 +02:00
Andreas Dangel
7f7213b8e7
[java] CloseResource: Fix NPE if type of method parameter is not known
2019-08-10 19:04:08 +02:00
Andreas Dangel
27164804f1
[java] CloseResource: fix false-negative when byte array is passed in
2019-08-10 18:11:28 +02:00
Andreas Dangel
c87af46d3f
Update release notes
...
* Reference fixed issues in test cases for CloseResources
* Fixes #1922
* Fixes #1966
* Fixes #1967
2019-08-10 12:25:42 +02:00
Andreas Dangel
cb63f5f8c4
[java] CloseResource: add test case for #1076
...
The problem is not reproducible.
2019-08-10 12:03:17 +02:00
Andreas Dangel
377275edae
[java] CloseResource: possible false positive with Streams
...
By default `java.util.stream.Stream` is now ignored.
Fixes #1922
2019-08-10 12:03:09 +02:00
Andreas Dangel
e0535f4bce
[java] CloseResource: add additional test case
2019-08-10 12:03:09 +02:00
Andreas Dangel
ef8ed08ee0
[java] CloseResource: fix false positive with assignments before try
2019-08-10 12:03:09 +02:00
Andreas Dangel
619172560b
[java] CloseResource: consider method parameters in general
2019-08-10 12:03:09 +02:00
Andreas Dangel
5b63d787c7
[java] CloseResource: ignore variables that are initialized from parameters
...
If a closable local variable is initialized from a method/constructor
parameter, then it is ignored. In that case, the resource is not created
in this method, but somewhere else. Therefore the resources should
be closed there.
2019-08-10 12:03:03 +02:00
Andreas Dangel
1a5486dc30
Merge branch 'pr-1954'
2019-08-04 11:22:56 +02:00
Andreas Dangel
f9d8898f7a
[java] Fix FP for UnnecessaryFQNRule with sub packages
2019-08-04 10:39:56 +02:00
Andreas Dangel
8fdea448e4
[java] Compare ignored annotations by fully qualified names only
...
Fixes #1952
2019-08-03 12:31:28 +02:00
Clément Fournier
225430953b
Checkstyle
2019-07-30 19:43:49 +02:00
Andreas Dangel
091ce3d40e
[java] Deprecate ASTImportDeclaration#getImportedNameNode() as well
...
Refs #1888
2019-07-30 19:30:19 +02:00
Clément Fournier
493e0014b0
Also fix a false negative
2019-07-30 16:47:21 +02:00
Clément Fournier
fd3eac3c9d
Fix #1951 - false positive for UnnecessaryFQCN
2019-07-30 16:28:16 +02:00
Andreas Dangel
295759456d
[java] Deprecate ASTImportDeclaration#getPackage(), refs #1888
2019-07-28 18:35:12 +02:00
Andreas Dangel
7a7971f64d
[maven-release-plugin] prepare for next development iteration
2019-07-28 10:24:51 +02:00
Andreas Dangel
365e1c9e8b
[maven-release-plugin] prepare release pmd_releases/6.17.0
2019-07-28 10:24:43 +02:00
Andreas Dangel
aa55a0108c
[java] CloseResource: ignore java.io.CharArrayWriter by default
...
Refs #1928
2019-07-27 10:27:18 +02:00
Clément Fournier
f1fb425313
Improve UseLocaleWithCaseConversions doc based on #1929
2019-07-25 02:42:33 +02:00
Andreas Dangel
be67ad97b0
Merge branch 'pr-1916'
2019-07-23 20:22:30 +02:00
Andreas Dangel
f7c16d4abc
[java] MissingStaticMethodInNonInstantiatableClass
...
* Migrate to XPath 2.0
* Add property "annotations"
2019-07-23 20:19:47 +02:00
Clément Fournier
26e74b880e
Merge branch 'issue-1910'
2019-07-23 15:40:52 +02:00
Andreas Dangel
64abea7f42
Merge branch 'pr-1905'
2019-07-22 20:05:53 +02:00
Andreas Dangel
f9bb5b85a2
[java] DataflowAnomalyAnalysis - add test case for #1749
2019-07-22 19:34:02 +02:00
YoonhoChoi96
56b1bfbd97
Remove wasted lists and Simplify
2019-07-22 14:22:26 +09:00
YoonhoChoi96
83f4682063
fix typo
2019-07-22 12:57:21 +09:00
YoonhoChoi96
1dca17fd1b
Verifying line numbers and the messages in Test Cases
2019-07-22 12:46:24 +09:00
Clément Fournier
7c77945164
#1921 - exclude ByteArrayInputStream from CloseResource
2019-07-21 16:38:35 +02:00
Andreas Dangel
1ef5079b29
[java] ATFD calculation problem
...
* Fixes #1910
* Method call chains are now considered
2019-07-20 11:35:27 +02:00
Andreas Dangel
b19b7474fe
Merge branch 'pr-1924'
2019-07-19 11:17:38 +02:00
Juan Martín Sotuyo Dodero
cb62b7e472
Fix false positive on UnsynchronizedStaticFormatterRule
2019-07-18 19:35:09 -03:00
Juan Martín Sotuyo Dodero
ca34d4fa1c
Add failing test case for #1903
2019-07-18 19:34:51 -03:00