15228 Commits

Author SHA1 Message Date
Andreas Dangel
c3f376478e whitespaces 2019-09-07 16:40:57 +02:00
Andreas Dangel
55e3b64f5d Fix unit tests 2019-09-07 16:35:52 +02:00
Andreas Dangel
e225821272 Merge branch 'master' into pr-1965 2019-09-07 16:21:11 +02:00
Andreas Dangel
6eeb5fcef5 Update release notes, refs #1965 2019-09-07 16:19:47 +02:00
Andreas Dangel
1e33b634e0 [doc] Add scala as supported language 2019-09-07 16:19:24 +02:00
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
Clément Fournier
f449cc72e3 Deprecate Report::hasMetrics and Report::metrics 2019-09-06 17:37:09 +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
Juan Martín Sotuyo Dodero
5458958749 Merge pull request #2000 from adangel/analysis-result
[core] analysis cache: Use always different checksum
2019-09-05 19:43:49 -03:00
Juan Martín Sotuyo Dodero
46ea77427c Merge pull request #1958 from adangel/issue-1952
[java] Compare ignored annotations by fully qualified names only
2019-09-04 00:58:55 -03:00
Andreas Dangel
5db5c62bb2 [core] analysis cache: Use always different checksum
If the checksum couldn't be determined, then we use now
System.currentTimeMillis. This should result in a different
checksum everytime the same file is analyzed, so that it
appears dirty. In that case, the cached results won't be used.
2019-09-03 20:21:23 +02:00
Andreas Dangel
d905c8d7ed Fix release notes jdoc tag 2019-09-03 20:17:48 +02:00
Andreas Dangel
1d6148f06b Fix release notes jdoc links 2019-09-03 20:12:00 +02:00
Andreas Dangel
ddd07e517a Merge branch 'master' into issue-1923 2019-09-03 19:43:27 +02:00
Andreas Dangel
3771320c47 Move logic to new ShortFilenameUtil 2019-09-03 19:42:21 +02:00
Andreas Dangel
6602d9e697 Fixes from PR review 2019-09-03 19:33:55 +02:00
Andreas Dangel
338cf1e1b7 Update pmd-core/src/main/java/net/sourceforge/pmd/renderers/AbstractRenderer.java
Co-Authored-By: Juan Martín Sotuyo Dodero <juansotuyo@gmail.com>
2019-09-03 19:21:56 +02:00
Andreas Dangel
11e8c33e44 Update pmd-core/src/main/java/net/sourceforge/pmd/renderers/AbstractRenderer.java
Co-Authored-By: Juan Martín Sotuyo Dodero <juansotuyo@gmail.com>
2019-09-03 19:20:11 +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
42197f68b2 Merge pull request #1996 from pmd/dependabot/bundler/docs/nokogiri-1.10.4
Bump nokogiri from 1.8.5 to 1.10.4 in /docs
2019-09-02 16:27:20 -03:00
Juan Martín Sotuyo Dodero
89443f5373 Merge branch 'pr-1994' 2019-09-02 14:44:51 -03:00
Juan Martín Sotuyo Dodero
e93ec2bcc2 Update changelog, refs #1994 2019-09-02 14:44:35 -03:00
dependabot[bot]
1192ca5051 Bump nokogiri from 1.8.5 to 1.10.4 in /docs
Bumps [nokogiri](https://github.com/sparklemotion/nokogiri) from 1.8.5 to 1.10.4.
- [Release notes](https://github.com/sparklemotion/nokogiri/releases)
- [Changelog](https://github.com/sparklemotion/nokogiri/blob/master/CHANGELOG.md)
- [Commits](https://github.com/sparklemotion/nokogiri/compare/v1.8.5...v1.10.4)

Signed-off-by: dependabot[bot] <support@github.com>
2019-09-02 17:41:26 +00:00
Clément Fournier
3755d5d7d4 Tag n.s.pmd.cache as internal API,
update release notes
2019-08-29 22:18:01 +02:00
Clément Fournier
6cd8ae38ff Merge branch 'Monits-issue-1990' 2019-08-29 22:09:48 +02:00
Juan Martín Sotuyo Dodero
29921f03e5 Fix breaking tests 2019-08-29 12:53:22 -03:00
Amish Shah
230af90386 [core] Resolve pmd-report failure when java folder in filepath - refs 1465 2019-08-29 08:00:07 -05:00
Juan Martín Sotuyo Dodero
bf2ad56799 Update changelog, refs #1990 2019-08-27 11:03:37 -03:00
Juan Martín Sotuyo Dodero
b85d71f632 [core] Resolve cached rule instances by more than class name
- Fixes #1990
2019-08-27 11:02:27 -03: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
Travis CI (pmd-bot)
056b0f73a8 Update documentation
TRAVIS_JOB_NUMBER=4118.1
TRAVIS_COMMIT_RANGE=febf512e9c77...780edaa5f5af
2019-08-18 04:55:24 +00:00
Juan Martín Sotuyo Dodero
780edaa5f5 Merge branch 'pr-1970' 2019-08-18 01:37:02 -03:00
Juan Martín Sotuyo Dodero
f5b9f6be23 Update changelog, refs #1970 2019-08-18 01:36:19 -03:00
Juan Martín Sotuyo Dodero
febf512e9c Merge branch 'pr-1968' 2019-08-18 01:28:07 -03:00
Andreas Dangel
882d5c67d2 Merge branch 'pr-1983' 2019-08-17 16:42:57 +02:00
Andreas Dangel
5dd890c1bb Update release notes, refs #1983 2019-08-17 16:42:21 +02:00
Andreas Dangel
29ea6834a5 Merge branch 'pr-1971' 2019-08-17 16:30:28 +02:00
Andreas Dangel
c8034b7d30 Update release notes, fixes #1862, refs #1971 2019-08-17 16:30:10 +02:00
Juan Martín Sotuyo Dodero
8e9b992338 Improve assertion 2019-08-16 14:22:23 -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