Andreas Dangel
932ac33d15
Merge branch 'master' into pr-4397
2023-08-24 09:48:28 +02:00
Andreas Dangel
3984dc2493
[core] Configurations - keep fields private
2023-08-24 09:46:09 +02:00
Andreas Dangel
df08d08608
[apex] Remove cpd property CASE_SENSITIVE
2023-08-24 09:10:06 +02:00
Andreas Dangel
86fdc446d4
Suppress PMD warnings (UnnecessaryConstructor)
2023-08-17 10:03:12 +02:00
Andreas Dangel
894d9fba84
Merge branch 'master' into pr-4397
2023-08-17 09:31:53 +02:00
Andreas Dangel
24257a0207
[core] revert property collection syntax <seq>
...
Refs #4305
2023-08-15 17:55:09 +02:00
Andreas Dangel
5846666dba
[core] Support min/max as property constraints in RuleSetWriter
...
Refs #1204
2023-08-15 17:47:17 +02:00
Andreas Dangel
5eea2f3e94
[core] Add tests in RuleSetFactoryMessages
...
- moved deprecated delimiter test to messages
- added value as attribute and tag test
2023-08-12 11:51:05 +02:00
Andreas Dangel
79d6e8bc48
[core] NumericConstraints - add tests for above/below
2023-08-12 11:30:20 +02:00
Andreas Dangel
3ea4031d0e
[core] PropertyDescriptor - remove deprecated methods
...
Update tests and usages for valueFrom/asDelimitedString
2023-08-12 11:23:20 +02:00
Andreas Dangel
ea11fcda54
[core] Minor refactorings
2023-08-12 11:09:43 +02:00
Andreas Dangel
b73611f013
Merge branch 'master' into pr-4380
2023-08-10 17:37:36 +02:00
Andreas Dangel
9fa7565807
[java] Remove version java 19-preview
2023-08-10 15:36:26 +02:00
Clément Fournier
310f68aa52
Fix line/col numbers in TokenMgrError
...
Ref #4635
Col number of zero may happen when the error is reported
on a newline. In the rest of PMD a newline is considered
to sit at the last index of the previous line. So the index
is now the first character of the next line, which is slightly
wrong but that doesn't matter much.
2023-07-26 17:17:54 +02:00
Clément Fournier
644f85836b
Add close routines for class stubs
2023-07-07 17:05:17 +02:00
Andreas Dangel
ec2882a4f3
Fix StringIndexOutOfBoundsException for default packages
2023-07-06 17:53:22 +02:00
Andreas Dangel
1fcb1077d0
[core] Support loading classes from runtime images
...
That's one missing piece to support running PMD on a different JRE
than the one used for analyzing. For Java up to version 8, one can put
lib/rt.jar on the auxclasspath. But since Java 9, the runtime classes
are stored in runtime images, that need to be loaded through the
jrt:/ file system.
Since the jrt-URLs are not connected anymore to a specific runtime
image, AsmSymbolResolver needs to use directly the streams instead
of URLs.
The ClasspathClassLoader is basically disabled to actually load
classes for reflection (#loadClass). In PMD 7, we shouldn't use that
anymore.
See also https://openjdk.org/jeps/220
2023-07-06 17:38:09 +02:00
Clément Fournier
11ca2952e5
Add test
2023-07-02 17:52:36 +02:00
Clément Fournier
b327c13679
Make ClasspathClassLoader::getResource child first
2023-07-02 17:33:36 +02:00
Andreas Dangel
6fc45493e7
[core] Deal with errors from threads in multithreading mode
...
If an error occurs in multithreading mode, PMD now
rethrows this. Such errors indicate a serious problem
like incomplete runtime classpath of PMD or other
VM error (out of memory) that shouldn't be swallowed.
2023-06-29 18:56:10 +02:00
Andreas Dangel
5f4acdb400
[core] Fix loading language properties from env vars
...
The environment variables should be uppercase as documented.
2023-06-29 13:04:51 +02:00
Clément Fournier
efecee4b7b
Add deprecated to Tokens ctor
2023-06-10 18:45:02 +02:00
Clément Fournier
629e3b415c
Consolidate CPD packages
2023-06-10 14:30:07 +02:00
Clément Fournier
4ef43e9617
Fixups
2023-06-10 14:12:02 +02:00
Clément Fournier
c54d3bb304
Merge branch 'master' into clem.pmd7-refactor-cpd
2023-06-10 14:08:47 +02:00
Andreas Dangel
451a364ed7
Use explicit encoding in internal ruleset files
2023-06-01 17:36:15 +02:00
Andreas Dangel
17beee6480
[core] TextDocument: Add backwards compatible factory method
...
This method is needed by pmd-designer 7.0.0-rc1, which is shipped with the distribution.
2023-05-30 19:18:04 +02:00
Clément Fournier
885ab6cbf0
Lint
2023-05-29 16:29:58 +02:00
Clément Fournier
5c4a566689
Doc for CPD
2023-05-29 15:59:43 +02:00
Clément Fournier
aa716acebb
Fix CPD renderer tests on windows
...
Note that those removed tests about form feeds
are related to the fact that form feeds are invalid
path characters on windows, so we can't construct
a file id containing them anyway.
2023-05-28 16:55:33 +02:00
Clément Fournier
ae452c0588
Update docs
2023-05-28 13:59:53 +02:00
Clément Fournier
700df966f2
Merge branch 'master' into port-properties
2023-05-28 13:43:29 +02:00
Clément Fournier
bf647357c6
Merge branch 'pmd7-textfile-display-name' into clem.pmd7-refactor-cpd
2023-05-28 13:42:49 +02:00
Clément Fournier
fc13c3255b
Merge branch 'master' into pmd7-textfile-display-name
2023-05-28 13:41:59 +02:00
Andreas Dangel
0499e4baab
Merge pull request #4552 from adangel:minimum-priority
...
[doc] Update documentation regarding minimum-priority #4552
2023-05-28 10:39:03 +02:00
Andreas Dangel
a9b96729e8
Merge branch 'master' into minimum-priority
2023-05-28 10:22:47 +02:00
Andreas Dangel
c0364e2185
[doc] Update release notes ( #4460 )
2023-05-28 09:15:33 +02:00
Juan Martín Sotuyo Dodero
d568ea7e66
Update LanguageRegistry.java javadoc
...
Be more clear about how to invoke replacement methods.
2023-05-26 20:25:30 -03:00
Clément Fournier
2f067dd8c0
Merge branch 'pmd7-textfile-display-name' into clem.pmd7-refactor-cpd
2023-05-26 12:32:00 +02:00
Clément Fournier
f2cd5abbab
Merge branch 'master' into clem.pmd7-refactor-cpd
2023-05-26 12:21:08 +02:00
Clément Fournier
fd0416c85a
Merge branch 'master' into port-properties
2023-05-26 11:42:11 +02:00
Clément Fournier
ffeb9ab608
Merge branch 'master' into pr/4548
2023-05-26 11:38:29 +02:00
Clément Fournier
3c01697143
Merge branch 'master' into pr/4466
2023-05-26 11:27:32 +02:00
Clément Fournier
191b9de6a1
Merge branch 'master' into pmd7-textfile-display-name
2023-05-26 11:05:11 +02:00
Juan Martín Sotuyo Dodero
bcf8bdd7ae
Merge pull request #4550 from adangel/pmd-processor-threads
...
[core] Restore behavior with thread=1 setting
2023-05-22 18:10:01 -03:00
Andreas Dangel
429ab23fd5
[core] Move property equals implementation into AbstractPropertySource
2023-05-20 19:27:16 +02:00
Andreas Dangel
110235cd72
[core] Move property equals implementation into AbstractPropertySource
2023-05-20 19:24:16 +02:00
Andreas Dangel
11f0e8a075
[core] Rework slf4j reinitialization
...
- Support also subclasses of slf4j-simple: e.g. maven uses an own logger factory and own loggers
- Determine the new log level by reevaluating the configuration, similar what the constructors did
- Remove unnecessary PmdLoggerFactoryFriend
2023-05-20 10:29:07 +02:00
Andreas Dangel
e3fd77a63b
[core] Doc and use new CPD option --ignore-sequences
2023-05-19 10:03:29 +02:00
Andreas Dangel
6b4c6b2787
Merge branch 'master' into pr-4470
2023-05-19 09:46:16 +02:00