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
Juan Martín Sotuyo Dodero
5651d772d8
Improve compatibility with PMD 6 CLI
2022-10-15 02:04:11 -03:00
Juan Martín Sotuyo Dodero
a1359755a8
Parse test for PmdCommand
2022-10-15 02:04:11 -03:00
Juan Martín Sotuyo Dodero
57701e679c
Make tests successful
2022-10-15 02:04:11 -03:00
Juan Martín Sotuyo Dodero
52d2616181
Add basic CLI test
2022-10-15 02:04:11 -03:00
Juan Martín Sotuyo Dodero
ccf6adfcd6
Remove fixed TODO
2022-10-15 02:04:11 -03:00
Juan Martín Sotuyo Dodero
af40487933
Add missing --no-progress flag
2022-10-15 02:04:11 -03:00
Juan Martín Sotuyo Dodero
a0dcf384bf
Add report properties to help message
2022-10-15 02:04:11 -03:00
Juan Martín Sotuyo Dodero
4ae3e993b9
Add CPD GUI command
2022-10-15 02:04:11 -03:00
Juan Martín Sotuyo Dodero
1d8c8cbe17
Add Checkstyle suppressions
2022-10-15 02:04:11 -03:00
Juan Martín Sotuyo Dodero
2c6cd6413c
Checkstyle fixes
2022-10-15 02:04:11 -03:00
Juan Martín Sotuyo Dodero
ad3aea173f
PMD fixes
2022-10-15 02:04:11 -03:00
Juan Martín Sotuyo Dodero
ae7ce6b1cb
Remove usage of CloseShieldWriter
...
- commons-io was a test dependency, not worth including it for a single use of a single class
2022-10-15 02:04:11 -03:00
Juan Martín Sotuyo Dodero
7f98592467
Accomodate DesignerSubcommand to pmd-ui
2022-10-15 02:04:11 -03:00
Juan Martín Sotuyo Dodero
aceec768bc
Use proper import, no shaded classes
2022-10-15 02:04:11 -03:00
Juan Martín Sotuyo Dodero
f2a2eee71b
Update DesignerCommand using enhanced pmd-ui
...
- this depends on https://github.com/pmd/pmd-designer/pull/52 being merged
into master and then master merged onto compat-7.0
2022-10-15 02:04:11 -03:00
Juan Martín Sotuyo Dodero
83418404c5
Draft DesignerCommand to identify gaps
2022-10-15 02:04:11 -03:00
Juan Martín Sotuyo Dodero
df4f1615f8
Unify several flags for PMD and CPD
...
- start bringing together the way to invoke both processes
2022-10-15 02:04:11 -03:00
Juan Martín Sotuyo Dodero
9b5a9dae8e
Initial CpdCommand
...
- lots of opportunities still to shape up the code and unify the way we invoke PMD / CPD
2022-10-15 02:04:11 -03:00
Juan Martín Sotuyo Dodero
ddfa945226
Configure source encoding
2022-10-15 02:04:11 -03:00
Juan Martín Sotuyo Dodero
844ae1fd7a
More class name changes
2022-10-15 02:04:11 -03:00
Juan Martín Sotuyo Dodero
924fa96c15
Fix javadoc
2022-10-15 02:04:11 -03:00
Juan Martín Sotuyo Dodero
40803d2317
Implement PMD Analysis
...
- Do cleanup and actually implement the PMD Analysis logic
2022-10-15 02:04:11 -03:00
Juan Martín Sotuyo Dodero
912db372e8
Setup SLF4J for all subcommands
...
- Have the debug flag shared between all commands and get SLF4J init
2022-10-15 02:04:10 -03:00
Juan Martín Sotuyo Dodero
adb08a9838
Rename classes
2022-10-15 02:04:10 -03:00
Juan Martín Sotuyo Dodero
34729c28e5
Properly handle languages and versions
...
- Add the candidates and converters for both objects
- Properly validate the values and pass it to the configuration
- `--use-version` can now be repeated to set multiple language versions
- Revise arities of other options to avoid errors
2022-10-15 02:04:10 -03:00
Juan Martín Sotuyo Dodero
172db11114
Update pom autocomplete step
2022-10-15 02:04:09 -03:00
Juan Martín Sotuyo Dodero
ef6c07c9fa
Move everything to a separate pmd-cli module
...
- Have the CLI separate from the standard analysis engine.
- This allows for easier integration to other tools (ie: IDEs and build toolchains)
- This allows a self-contained way to setup the commands and have autocomplete scripts include all languages
- This easily allows to include the pmd designer to expose under a standard command
2022-10-15 02:02:17 -03:00