15166 Commits

Author SHA1 Message Date
Andreas Dangel
c8d6e7f00b Update license info
Since we don't rely anymore on org.sonar.plugins.scala
we can remove the LGPL-3 reference.
2019-09-07 16:09:33 +02:00
Andreas Dangel
24d030cc69 [scala] Move AST nodes to n.s.p.lang.scala.ast
* Also make ScalaTreeBuilder and AbstractScalaNode
  package private
2019-09-07 16:03:55 +02:00
Andreas Dangel
20c7d7f421 [test] fix language version tests to check registered rulesets
Now categories.properties are tested. rulesets.properties
is only tested, if it exists.
2019-09-07 15:50:17 +02:00
Andreas Dangel
4bb116125e [scala] Small improvements
* The system property to select the language version for
  the tokenizer used by CPD is called now
  "net.sourceforge.pmd.scala.version"
* The node ASTSource is marked as RootNode
* Removed (deprecated) DumpFacade solution
* Removed old rulesets.properties
2019-09-07 15:16:43 +02:00
Andreas Dangel
ada5bdc072 [scala] Remove checkstyle exceptions 2019-09-07 15:10:02 +02:00
Chris Smith
6dbab9ba35 Fix for PMD finding that this class doesn't have the right override method. 2019-08-23 16:39:57 -04:00
Chris Smith
d0cf7fb56d Genericized the Scala Visitor's input and output types, correctly placed node accept methods, handle bad code tokenization problems. Added more rules to check for bad source tokenization, and rules can visit particular nodes correctly 2019-08-22 12:24:37 -04:00
Chris Smith
7e7b36d35c Added ASTNodes for all Scala AST Nodes to do direct translation. 2019-08-20 13:59:43 -04:00
Chris Smith
39b51aac47 code review fixes:
re-enable javadocs
ScalaTokenizer keeps nodes in scala for performance gain
Change AST{name}Node designation to {name}
2019-08-19 12:27:44 -04:00
Chris Smith
9f923b5b6b Minor changes to work better with the PMD Designer 2019-08-09 10:54:09 -04:00
Chris Smith
0f7d5f1ec0 Added Scala AST Parser 2019-08-08 18:45:26 -04:00
Andreas Dangel
1a5486dc30 Merge branch 'pr-1954' 2019-08-04 11:22:56 +02:00
Andreas Dangel
1b7d0f8576 Update release notes, fixes #1951 2019-08-04 10:40:46 +02:00
Andreas Dangel
f9d8898f7a [java] Fix FP for UnnecessaryFQNRule with sub packages 2019-08-04 10:39:56 +02:00
Clément Fournier
46a8d87fb7 Try to fix confused image reference
Build of #1956 is failing but just on macosx...
See https://travis-ci.org/pmd/pmd/jobs/566211322

Idk what's the problem, maybe it's because '(?!)' looks
like a negative lookahead
2019-08-01 01:37:32 +02:00
Clément Fournier
959c98c906 Fix dead link detection for image links 2019-08-01 01:00:25 +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
d935db0a6d Cleanup developers list in pom.xml. The contributors can easily be
retrieved at https://github.com/pmd/pmd/graphs/contributors
2019-07-29 19:50:26 +02:00
Andreas Dangel
295759456d [java] Deprecate ASTImportDeclaration#getPackage(), refs #1888 2019-07-28 18:35:12 +02:00
Andreas Dangel
a651514e56 Prepare next development version 2019-07-28 10:28:43 +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 pmd_releases/6.17.0 2019-07-28 10:24:43 +02:00
Andreas Dangel
a8d277a02a Prepare pmd release 6.17.0 2019-07-28 10:15:10 +02:00
Andreas Dangel
01c8a27122 [doc] Update generated rule documentation 2019-07-27 10:39:39 +02:00
Andreas Dangel
aa55a0108c [java] CloseResource: ignore java.io.CharArrayWriter by default
Refs #1928
2019-07-27 10:27:18 +02:00
Andreas Dangel
49d2a58556 Update pmd-designer to 6.17.0 2019-07-27 09:44:22 +02:00
Travis CI (pmd-bot)
b416df404d Update documentation
TRAVIS_JOB_NUMBER=4001.1
TRAVIS_COMMIT_RANGE=f269b3dc3f57...f1fb425313f1
2019-07-25 01:00:55 +00:00
Clément Fournier
f1fb425313 Improve UseLocaleWithCaseConversions doc based on #1929 2019-07-25 02:42:33 +02:00
Travis CI (pmd-bot)
f269b3dc3f Update documentation
TRAVIS_JOB_NUMBER=3997.1
TRAVIS_COMMIT_RANGE=26e74b880e96...ca71d2fae4b3
2019-07-23 18:51:13 +00:00
Andreas Dangel
ca71d2fae4 Merge branch 'pr-1925' 2019-07-23 20:23:27 +02:00
Andreas Dangel
be67ad97b0 Merge branch 'pr-1916' 2019-07-23 20:22:30 +02:00
Andreas Dangel
189861656c Update release notes, fixes #1832, refs #1916 2019-07-23 20:21:20 +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
342f8482f5 Update release notes, fixes #1749, refs #1905 2019-07-22 20:05:12 +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
Andreas Dangel
6f05882c95 [doc] Update generated rule documentation 2019-07-21 19:27:19 +02:00
Andreas Dangel
86be2463e9 Merge branch 'pr-1928' 2019-07-21 19:15:44 +02:00
Andreas Dangel
2278613cfd Update release notes, fixes #1921 2019-07-21 19:15:26 +02:00
Clément Fournier
7c77945164 #1921 - exclude ByteArrayInputStream from CloseResource 2019-07-21 16:38:35 +02:00
Andreas Dangel
169d08a898 Update release notes, fixes #1902 2019-07-20 17:49:35 +02:00
Andreas Dangel
50d211eae4 [plsql] Introduce new node OuterJoinExpression 2019-07-20 17:32:31 +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