227 Commits

Author SHA1 Message Date
Juan Martín Sotuyo Dodero
729ce9c3b0 Use shorthand method
Co-authored-by: Clément Fournier <clement.fournier@tu-dresden.de>
2022-12-21 12:17:43 -03:00
Clément Fournier
8cdfe24277 Review comments 2022-12-04 18:26:21 +01:00
Juan Martín Sotuyo Dodero
a653ab888e Fix short-circuit checks for tee listeners 2022-11-26 15:45:36 -03:00
Juan Martín Sotuyo Dodero
1042781aa3 Rework to use an initializer class for expansion 2022-11-26 15:34:02 -03:00
Clément Fournier
bb31553e8c Delete lots of deprecated stuff in CPD core
This includes its CLI
2022-11-26 14:54:09 +01:00
Juan Martín Sotuyo Dodero
eddb8f5911 Checkstyle 2022-11-25 15:48:09 -03:00
Juan Martín Sotuyo Dodero
b836a35c8c [cli] Move CLI progressbar rendering to pmd-cli
- Took the chance to improve how we render it
 - Added support for interactive terminals
 - Improved the overall performance / thread-safety of report rendering to STDOUT
2022-11-25 15:24:57 -03:00
Clément Fournier
cbe98ea71a Do that with CPD tests too 2022-11-25 18:39:34 +01:00
Clément Fournier
20eb129dfe Move cli tests from lang modules to cli 2022-11-25 12:19:24 +01:00
Clément Fournier
675710d0e7 Cleanup Cli tests
Remove some deprecated things left over by #4059
2022-11-25 11:28:59 +01:00
Clément Fournier
d3ffc1d212 Merge branch '7.0.x' into pmd7-language-lifecycle 2022-11-24 20:22:58 +01:00
Clément Fournier
5a4205a877 Merge branch '7.0.x' into pr/4059 2022-11-18 11:47:18 +01:00
Juan Martín Sotuyo Dodero
1f43af7d83 Change pmd run to pmd check with no aliases 2022-10-15 02:07:24 -03:00
Juan Martín Sotuyo Dodero
1bcc39d6a3 PMDConfiguration to use stricter types
- No more raw Strings going around
2022-10-15 02:06:53 -03:00
Juan Martín Sotuyo Dodero
cedafa9e0d Allow positional parameters as equivalent to -d 2022-10-15 02:06:53 -03:00
Juan Martín Sotuyo Dodero
48c584c2cf Review feedback 2022-10-15 02:06:53 -03:00
Juan Martín Sotuyo Dodero
c093ce73ac Cleanup module dependencies 2022-10-15 02:06:53 -03:00
Juan Martín Sotuyo Dodero
0de5b8fb03 Fix checkstyle warnings 2022-10-15 02:06:53 -03:00
Juan Martín Sotuyo Dodero
2b3d517581 Fix PMD warnings 2022-10-15 02:06:53 -03:00
Juan Martín Sotuyo Dodero
caa3295511 No need to have a default --use-version 2022-10-15 02:06:53 -03:00
Juan Martín Sotuyo Dodero
50ae4ddeac Try to forcefully disable Picocli ANSI
- This is a blind test to see if this is the cause for Windows' failing the build
2022-10-15 02:06:53 -03:00
Juan Martín Sotuyo Dodero
f1cdacf200 Unwire file separator 2022-10-15 02:06:53 -03:00
Juan Martín Sotuyo Dodero
e093f19577 Unwire absolute paths 2022-10-15 02:06:53 -03:00
Juan Martín Sotuyo Dodero
ee652286c6 Update test to latest changes 2022-10-15 02:06:53 -03:00
Juan Martín Sotuyo Dodero
6c87c704c7 Adapt to latest changes from upstream 2022-10-15 02:06:53 -03:00
Juan Martín Sotuyo Dodero
90e5c52295 Use only lang-version pairs
- no more default/ latest versions
 - this assumes all versions have names, which is till pending, but agreed on
2022-10-15 02:06:52 -03:00
Juan Martín Sotuyo Dodero
cd7e41a9cb Remove name normalization
- Terse names are becoming more strictly defined soon
2022-10-15 02:06:52 -03:00
Juan Martín Sotuyo Dodero
366769cc81 Support languiage aliases in PMD CLI 2022-10-15 02:06:52 -03:00
Juan Martín Sotuyo Dodero
4a6f838d67 Cleanup code 2022-10-15 02:06:52 -03:00
Juan Martín Sotuyo Dodero
24bbf538b7 Fix NPE 2022-10-15 02:06:52 -03:00
Juan Martín Sotuyo Dodero
924ca85ff5 Add ast-dump CLI test 2022-10-15 02:04:12 -03:00
Juan Martín Sotuyo Dodero
a4a5affe83 Include everything in pmd-dist
- Include both the pmd-cli module and the completion script
2022-10-15 02:04:12 -03:00
Juan Martín Sotuyo Dodero
7824595603 Logging cleanups 2022-10-15 02:04:12 -03:00
Juan Martín Sotuyo Dodero
afde91247f Make --no-progress negatable 2022-10-15 02:04:12 -03:00
Juan Martín Sotuyo Dodero
7b416bc12d Clean up todos 2022-10-15 02:04:12 -03:00
Juan Martín Sotuyo Dodero
78d046c7d1 Make fail on violation negatable
- Instead of doing `--fail-on-violation false` we now do `--no-fail-on-violation`
    or `--fail-on-violation` to be explicit about the default
2022-10-15 02:04:12 -03:00
Juan Martín Sotuyo Dodero
029602abac Extract CpdLanguageTypeSupport 2022-10-15 02:04:12 -03:00
Juan Martín Sotuyo Dodero
0641a9c316 Fix help text newlines 2022-10-15 02:04:12 -03:00
Juan Martín Sotuyo Dodero
3689456ebc Implement TreeExportCommand 2022-10-15 02:04:12 -03:00
Juan Martín Sotuyo Dodero
ae1d00d513 Extract converter / iterable pairs
- This will allow better reuse / have consistency by keeping completion
    candidates and convertion tied together
2022-10-15 02:04:11 -03:00
Juan Martín Sotuyo Dodero
4d083c1d2b Improve on help message for --ignore-list 2022-10-15 02:04:11 -03:00
Juan Martín Sotuyo Dodero
90138b00c6 Extract encoding to a mixin 2022-10-15 02:04:11 -03:00
Juan Martín Sotuyo Dodero
01781a3fa8 Rename CliMessages
- It was never used exclusively for CLI
 - It no longer references the CLI command
2022-10-15 02:04:11 -03:00
Juan Martín Sotuyo Dodero
85e45dcfef Cleanup code 2022-10-15 02:04:11 -03:00
Juan Martín Sotuyo Dodero
f250701c73 Add completion candidates for PMD report properties
- The help is still the only source of truth for which ones are valid
2022-10-15 02:04:11 -03:00
Juan Martín Sotuyo Dodero
4a0c735506 Add CpdCommandTest and refactor PmdCommandTest 2022-10-15 02:04:11 -03:00
Juan Martín Sotuyo Dodero
301cd0ef34 Even better tests 2022-10-15 02:04:11 -03:00
Juan Martín Sotuyo Dodero
5d7e2473f4 Add cpd CLI test 2022-10-15 02:04:11 -03:00
Juan Martín Sotuyo Dodero
8e04737715 Add --use-version tests 2022-10-15 02:04:11 -03:00
Juan Martín Sotuyo Dodero
15a654e2a6 Finalize unit test of PmdCommand 2022-10-15 02:04:11 -03:00