153 Commits

Author SHA1 Message Date
Matt Hargett
ba77fa19e5 Merge branch 'master' of github.com:pmd/pmd into lua-types 2022-08-14 09:35:20 -07:00
Andreas Dangel
995d00fde3
[maven-release-plugin] prepare for next development iteration 2022-07-30 11:35:57 +02:00
Andreas Dangel
6aa2b47f2e
[maven-release-plugin] prepare release pmd_releases/6.48.0 2022-07-30 11:35:53 +02:00
Andreas Dangel
394c0cbf3b
[lua] Migrate tests to Junit5 2022-07-29 17:23:17 +02:00
Matt Hargett
3d6fab0782 rename new snapshot artifact to better express intent 2022-07-26 13:29:19 -07:00
Matt Hargett
cfb8374611 Capture more syntax scenarios in the regression test, update the snapshot. 2022-07-26 13:25:14 -07:00
Matt Hargett
8aaa1302cc Support all Luau type extension syntax available in all test corpus sources. Add a regression test for a few of the things that required tweaks. 2022-07-26 00:13:35 -07:00
Matt Hargett
65fef39a4c Initial Lua type grammar 2022-07-25 21:43:54 -07:00
Andreas Dangel
41eb096dbd
Merge branch 'master' into pmd/7.0.x 2022-07-25 20:07:11 +02:00
Matt Hargett
b189d07a15 Fix another superflous ws 2022-07-24 13:41:37 -07:00
Matt Hargett
5dc75e720b Remove superfluous whitespace' 2022-07-24 13:31:24 -07:00
Matt Hargett
8fa558e754 Add explaining comment, cleanup inconsistent fragment formatting 2022-07-24 13:26:37 -07:00
Matt Hargett
54918a7097 Comments have to go to HIDDEN channel so that suppression comments will work. 2022-07-24 13:19:21 -07:00
Matt Hargett
f7f449ca2b Luau benchmarks and conformance suite all analyze fine, update test suite comment. 2022-07-24 13:09:30 -07:00
Matt Hargett
08cc6a1c5c World of Warcraft Lua uses a few non-standard escape patterns, which are easy enough to add and shouldn't introduce any confusions with errors messages on other dialects. 2022-07-24 13:04:14 -07:00
Matt Hargett
50b06f37bc Fortify the Lua parser to fix parse error in several OSS Lua codebases when trying to use CPD. 2022-07-24 12:58:49 -07:00
Clément Fournier
59d931cd91
Merge remote-tracking branch 'upstream/pmd/7.0.x' into text-utils-simple 2022-07-10 13:50:03 +02:00
Andreas Dangel
a5006f6383
[maven-release-plugin] prepare for next development iteration 2022-06-25 09:30:43 +02:00
Andreas Dangel
07eb3d2d80
[maven-release-plugin] prepare release pmd_releases/6.47.0 2022-06-25 09:30:37 +02:00
Andreas Dangel
2bdc8a8263
Merge branch 'master' into pmd/7.0.x 2022-06-04 15:59:22 +02:00
Andreas Dangel
066b510eef
chore: Fix project.parent.relativePath in pom.xml
It must point to a file, pointing to a directory
is not valid.
2022-06-04 11:00:30 +02:00
Andreas Dangel
04c1271d88
[maven-release-plugin] prepare for next development iteration 2022-05-28 11:04:32 +02:00
Andreas Dangel
a75acdeff8
[maven-release-plugin] prepare release pmd_releases/6.46.0 2022-05-28 11:04:27 +02:00
Andreas Dangel
ec64315ad7
[maven-release-plugin] prepare for next development iteration 2022-04-30 09:38:24 +02:00
Andreas Dangel
1d2b40b3c0
[maven-release-plugin] prepare release pmd_releases/6.45.0 2022-04-30 09:38:19 +02:00
Andreas Dangel
be3e941a08
[maven-release-plugin] prepare for next development iteration 2022-03-27 17:01:59 +02:00
Andreas Dangel
6859f8db36
[maven-release-plugin] prepare release pmd_releases/6.44.0 2022-03-27 17:01:54 +02:00
Andreas Dangel
69fb502883
[maven-release-plugin] prepare for next development iteration 2022-02-26 10:01:08 +01:00
Andreas Dangel
dd0ee6190b
[maven-release-plugin] prepare release pmd_releases/6.43.0 2022-02-26 10:01:03 +01:00
Andreas Dangel
dc19597020
[maven-release-plugin] prepare for next development iteration 2022-01-29 09:53:38 +01:00
Andreas Dangel
391c32589f
[maven-release-plugin] prepare release pmd_releases/6.42.0 2022-01-29 09:53:32 +01:00
Andreas Dangel
3a97618d5d
[maven-release-plugin] prepare for next development iteration 2021-11-27 11:21:17 +01:00
Andreas Dangel
ac68de1f51
[maven-release-plugin] prepare release pmd_releases/6.41.0 2021-11-27 11:21:12 +01:00
Andreas Dangel
f12710071f
[maven-release-plugin] prepare for next development iteration 2021-10-30 10:00:20 +02:00
Andreas Dangel
be09a31654
[maven-release-plugin] prepare release pmd_releases/6.40.0 2021-10-30 10:00:15 +02:00
Andreas Dangel
0399bbbfc8
[maven-release-plugin] prepare for next development iteration 2021-09-25 13:46:09 +02:00
Andreas Dangel
90b051bfff
[maven-release-plugin] prepare release pmd_releases/6.39.0 2021-09-25 13:46:04 +02:00
Andreas Dangel
65af1c0675
[maven-release-plugin] prepare for next development iteration 2021-08-28 17:27:18 +02:00
Andreas Dangel
7d11a02052
[maven-release-plugin] prepare release pmd_releases/6.38.0 2021-08-28 17:27:12 +02:00
Andreas Dangel
821f7a849b
[maven-release-plugin] prepare for next development iteration 2021-07-31 19:02:07 +02:00
Andreas Dangel
18df47ce6e
[maven-release-plugin] prepare release pmd_releases/6.37.0 2021-07-31 19:01:59 +02:00
Andreas Dangel
f68bf5ce05
[maven-release-plugin] prepare for next development iteration 2021-06-26 10:24:15 +02:00
Andreas Dangel
45d1605a03
[maven-release-plugin] prepare release pmd_releases/6.36.0 2021-06-26 10:24:07 +02:00
Andreas Dangel
9fdfecf731
[maven-release-plugin] prepare for next development iteration 2021-05-29 07:24:47 +02:00
Andreas Dangel
b49fb2014d
[maven-release-plugin] prepare release pmd_releases/6.35.0 2021-05-29 07:24:39 +02:00
Andreas Dangel
319900cd43 [maven-release-plugin] prepare for next development iteration 2021-04-24 16:41:17 +02:00
Andreas Dangel
bfeaa1b377 [maven-release-plugin] prepare release pmd_releases/6.34.0 2021-04-24 16:41:10 +02:00
Andreas Dangel
37e5525fd5 [maven-release-plugin] prepare for next development iteration 2021-03-27 16:25:18 +01:00
Andreas Dangel
dc1c9d0aed [maven-release-plugin] prepare release pmd_releases/6.33.0 2021-03-27 16:25:13 +01:00
Andreas Dangel
e0de01ebe9 [maven-release-plugin] prepare for next development iteration 2021-02-27 09:44:05 +01:00
Andreas Dangel
0848e230d0 [maven-release-plugin] prepare release pmd_releases/6.32.0 2021-02-27 09:43:58 +01:00
Andreas Dangel
2ea0328678 [maven-release-plugin] prepare for next development iteration 2021-01-30 18:04:17 +01:00
Andreas Dangel
7d6e6239c5 [maven-release-plugin] prepare release pmd_releases/6.31.0 2021-01-30 18:04:08 +01:00
Andreas Dangel
d284ea9634 [maven-release-plugin] prepare for next development iteration 2020-12-12 09:42:10 +01:00
Andreas Dangel
d2e4fb4ca3 [maven-release-plugin] prepare release pmd_releases/6.30.0 2020-12-12 09:42:02 +01:00
Andreas Dangel
4837c8dbc8 [maven-release-plugin] prepare for next development iteration 2020-10-24 10:17:24 +02:00
Andreas Dangel
81f12d3e5d [maven-release-plugin] prepare release pmd_releases/6.29.0 2020-10-24 10:17:15 +02:00
Andreas Dangel
aa245c6e1b [maven-release-plugin] prepare for next development iteration 2020-09-26 10:25:16 +02:00
Andreas Dangel
722f3ca997 [maven-release-plugin] prepare release pmd_releases/6.28.0 2020-09-26 10:25:05 +02:00
Clément Fournier
efcfb665ad Cleanups for antlr tokenizers 2020-09-17 22:37:10 +02:00
Andreas Dangel
47ab1f34a4 Delete old antlr4 package-infos 2020-09-13 11:41:26 +02:00
Andreas Dangel
4732164a45 Merge branch 'pmd/7.0.x' into pr-2753 2020-09-13 11:40:23 +02:00
Andreas Dangel
3caa6dd0ba Merge branch 'master' into pmd/7.0.x 2020-09-13 11:39:37 +02:00
Andreas Dangel
7a1e3caba0 Add deprecations for antlr lexers that will be moved with PMD 7
Refs pmd/pmd#2753
2020-09-13 11:28:07 +02:00
Andreas Dangel
c59af0aee6 [maven-release-plugin] prepare for next development iteration 2020-08-31 18:30:18 +02:00
Andreas Dangel
856950f0d2 [maven-release-plugin] prepare release pmd_releases/6.27.0 2020-08-31 18:30:09 +02:00
Clément Fournier
50d39b39e6 Same for Lua 2020-08-30 19:01:07 +02:00
Andreas Dangel
2b1d071930 Fix tests due to endColumn changes 2020-08-21 12:38:37 +02:00
Andreas Dangel
ab489832fe Merge branch 'master' into pmd/7.0.x 2020-08-21 11:51:54 +02:00
Andreas Dangel
89140d86ce Merge branch 'master' into pr-2656 2020-08-20 09:47:16 +02:00
Andreas Dangel
49ab75aeb7 [maven-release-plugin] prepare for next development iteration 2020-07-25 13:45:36 +02:00
Andreas Dangel
a9632e2a06 [maven-release-plugin] prepare release pmd_releases/6.26.0 2020-07-25 13:45:27 +02:00
Maikel Steneker
6fb5ac59b9 Ensure CPD uses tab width of 1 for tabs consistently
The columns that are reported by CPD were inconsistent across languages
before. A language like Java (using a JavaCC-based tokenizer) would use
a width of 8 for tabs, whereas a language like C# (using an Antlr-based
tokenizer) would use 1 instead.

This includes unit tests for most languages to ensure a tab character is
counted as 1. The configuration for JavaCC has been adjusted to respect
this as well.
2020-07-20 10:42:21 +02:00
Andreas Dangel
dcaa8a1167 Merge branch 'master' into pmd/7.0.x 2020-07-17 16:13:02 +02:00
Andreas Dangel
94afdb117d Add test engines as surefire plugin dependencies
This removes junit-vintage-engine as a test dependency
as well as kotlintest-runner-junit5.
The engines are only needed during test execution, but should
not be available for test compilation.

For this to work, the latest surefire plugin is required.
2020-07-17 12:03:45 +02:00
Andreas Dangel
370c0b0b6d Remove unused dependency, explicitly declare used dependencies 2020-07-02 15:12:31 +02:00
Andreas Dangel
95d8e80c1b [maven-release-plugin] prepare for next development iteration 2020-06-27 11:31:27 +02:00
Andreas Dangel
a219b2e1be [maven-release-plugin] prepare release pmd_releases/6.25.0 2020-06-27 11:31:16 +02:00
Clément Fournier
5b7ed588ea Make CPD end column exclusive
This is to align it with PMD columns,
which in 7.0 are already exclusive.
2020-06-19 02:21:45 +02:00
Clément Fournier
c49d9e315f Merge branch 'master' into 7.0.x 2020-06-19 01:32:32 +02:00
Clément Fournier
ff2aa9c038 Convert lua tests 2020-06-13 23:01:14 +02:00
Andreas Dangel
c3219b91c5 Merge branch 'master' into pmd/7.0.x 2020-06-12 14:21:10 +02:00
Andreas Dangel
8defb2fde2 Add missing relativePath configuration in all pom modules 2020-06-07 12:36:58 +02:00
Andreas Dangel
ab04bdacdd [maven-release-plugin] prepare for next development iteration 2020-05-24 17:34:34 +02:00
Andreas Dangel
229cb2bdca [maven-release-plugin] prepare release pmd_releases/6.24.0 2020-05-24 17:34:25 +02:00
Andreas Dangel
4308c545e5 [maven-release-plugin] prepare for next development iteration 2020-04-24 10:53:12 +02:00
Andreas Dangel
921c65f5ab [maven-release-plugin] prepare release pmd_releases/6.23.0 2020-04-24 10:53:00 +02:00
Andreas Dangel
4c020bfbf7 [maven-release-plugin] prepare for next development iteration 2020-03-12 15:15:18 +01:00
Andreas Dangel
eb93aaeca7 [maven-release-plugin] prepare release pmd_releases/6.22.0 2020-03-12 15:15:09 +01:00
Andreas Dangel
d994700617 [maven-release-plugin] prepare for next development iteration 2020-01-24 17:20:47 +01:00
Andreas Dangel
a28e9e22e5 [maven-release-plugin] prepare release pmd_releases/6.21.0 2020-01-24 17:20:38 +01:00
Andreas Dangel
00392cefc2 [maven-release-plugin] prepare for next development iteration 2019-11-29 19:46:14 +01:00
Andreas Dangel
78da370fb8 [maven-release-plugin] prepare release pmd_releases/6.20.0 2019-11-29 19:46:05 +01:00
Andreas Dangel
deec9c44b2 [maven-release-plugin] prepare for next development iteration 2019-10-31 18:36:51 +01:00
Andreas Dangel
2881b6f585 [maven-release-plugin] prepare release pmd_releases/6.19.0 2019-10-31 18:36:42 +01:00
Clément Fournier
b51c02f93b Reorganise antlr files
Antlr root nodes need to implement RootNode.

Also, I didn't like the fact that the swift
module didn't use the conventional package
structure (lang.swift.ast) but was rolling
its own convention (lang.swift.antlr4).

I moved base classes for the antlr implementations
into nspmd.lang.ast.impl.antlr4. The fact that a
module is implemented with antlr is an implementation
detail, and it doesn't deserve its own toplevel package
in nspmd.lang.
2019-09-25 03:49:36 +02:00
Andreas Dangel
e536ca1947 [maven-release-plugin] prepare for next development iteration 2019-09-15 10:14:14 +02:00
Andreas Dangel
3f42cca200 [maven-release-plugin] prepare release pmd_releases/6.18.0 2019-09-15 10:14:05 +02:00
Andreas Dangel
d1a5cb36eb Fix build 2019-07-28 18:36:35 +02:00
Andreas Dangel
7a7971f64d [maven-release-plugin] prepare for next development iteration 2019-07-28 10:24:51 +02:00