Andreas Dangel
ea86a23b73
Merge branch 'master' into pmd/7.0.x
2020-01-10 14:41:27 +01:00
Andreas Dangel
cf89b742b0
Merge branch 'pr-2177'
...
[lang-test] Factorize parsing logic for tests
2020-01-10 12:29:38 +01:00
Andreas Dangel
c53d9508e9
Small changes from code review
...
* rename BaseParserHelper
* Not using org.jetbrains.annotations.NotNull
2020-01-10 12:18:43 +01:00
Andreas Dangel
4269fd1b73
Refactor tests for javascript, jsp, plsql, scala, visualforce, xml
...
using BaseParsingHelper
Revert "REVERT ME Remove some diff"
This reverts commit f72810088d2c7f3c29fbde185b25cfc72fc1fbcc.
2020-01-10 12:12:34 +01:00
Clément Fournier
0459d0379c
Merge branch 'master' into 7.0.x
2020-01-05 20:31:39 +01:00
Clément Fournier
05870c98cc
Deprecate RulesetFactory constructors
2019-12-24 14:39:20 +01:00
Clément Fournier
f72810088d
REVERT ME Remove some diff
2019-12-20 18:32:47 +01:00
Clément Fournier
8afe5ae7a8
Abstract away parser utils
...
Convert a few pieces of code
Share with modelica
Remove yet another dup
Fix tests
Doc
Share with plsql
Fix tests
Fix build
Cleanup
Minimize diff
Share with JSP module
Share with JS module
Share with XML module
Share with VisualForce module
Share with Scala module
Fix last tests
2019-12-20 18:30:17 +01:00
Clément Fournier
eb6ceef085
Add comments and update release notes
2019-12-05 15:23:07 +01:00
Clément Fournier
bb7478cd0a
Deprecate RuleViolationFactory impls
...
Internal APIs
2019-12-05 15:18:35 +01:00
Clément Fournier
3d6f660700
Checkstyle
2019-10-09 19:51:01 +02:00
Clément Fournier
d0a3174f20
Remove useless violation factories
2019-10-07 00:03:09 +02:00
Clément Fournier
4890905699
Remove Parser#canParse
2019-09-24 09:13:15 +02:00
Clément Fournier
d1578aba17
Merge branch 'master' into 7.0.x
2019-09-18 10:22:52 +02:00
Clément Fournier
4b4e6a247d
Remove useless test
2019-09-17 19:30:31 +02:00
Clément Fournier
e09ea8ce1a
Setting line numbers is unsupported
2019-09-17 19:20:27 +02:00
Clément Fournier
591cfc0a51
Remove old test
2019-09-17 04:33:39 +02:00
Clément Fournier
95d6ea3f37
Fix scala text bounds
2019-09-17 04:21:05 +02:00
Clément Fournier
ed428dd852
Cleanup scala tree builder
2019-09-17 03:30:30 +02:00
Clément Fournier
052c298a85
Merge branch 'master' into 7.0.x
2019-09-14 15:08:12 +02:00
Clément Fournier
8f3472310a
Fix scala module
2019-09-09 18:51:13 +02:00
Clément Fournier
68cd5549b9
Cleanup some pmd-scala methods
...
* Remove ScalaNode#childrenAccept: this only makes stack traces longer.
Besides, the node doesn't know how to accumulate values, so it's useless.
* Specialize return type of some methods of the interface.
2019-09-08 22:44:39 +02:00
Andreas Dangel
55e3b64f5d
Fix unit tests
2019-09-07 16:35:52 +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
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
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
10e27ca3c0
Deprecate PMD LanguageModule for languages, that only support CPD
2018-11-26 13:55:35 +01:00
Will Herrmann
377baf7caf
Replacing IOUtils.closeQuietly(foo) with try-with-resources statements
2018-10-19 14:23:51 -05:00
Will Herrmann
cba4e87acd
Replacing deprecated IO methods with ones that specify a charset
...
Standardizing with StandardCharsets.UTF_8, given that it was used in
several places of code already, and it provides compile-time checking
(as opposed to "UTF-8")
2018-10-12 17:25:08 -05:00
Andreas Dangel
5a7bbe19a2
dogfood: fix missing override
...
Note: the rule is disabled for pmd-xml, refs #1074
2018-06-16 17:48:36 +02: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
3d9511a0e5
[doc] Remove old maven site
2017-08-15 14:31:03 +02: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
Andreas Dangel
f3b362b359
pmd-scala: checkstyle / formatting
2016-12-02 15:05:25 +01:00
Andreas Dangel
d563eb30fc
Java 7 changes and some compiler warnings fixed
2015-11-29 19:55:13 +01:00
Andreas Dangel
2fdb51fcb6
dogfood, whitespaces
2015-03-23 20:16:03 +01:00
Jan van Nunen
110184e542
Made exceptions of the Scala tokenizer non-fatal when CPD is executed with the '--skipLexicalErrors' command line option.
2015-01-15 15:32:19 +01:00
Jan van Nunen
bffea4bb3b
Added support for Scala to CPD.
...
The Scala tokenizer was extracted from the Sonar Scala plugin.
(https://github.com/SonarCommunity/sonar-scala ) I copied the code
because the Sonar Scala plugin has a lot of unwanted dependencies. I
tried to keep the changes to the Scala Sonar plugin as minimal as
possible.
To tokenize the source files the official Scala compiler is used.
2015-01-09 15:20:25 +01:00