15755 Commits

Author SHA1 Message Date
Andreas Dangel
31fdb59be0 Merge remote-tracking branch 'origin/master' into pmd/7.0.x 2019-10-31 20:59:13 +01:00
Andreas Dangel
8e745acf37 Prepare next development version 2019-10-31 19:24:21 +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 pmd_releases/6.19.0 2019-10-31 18:36:42 +01:00
Andreas Dangel
433f8c06a2 Prepare pmd release 6.19.0 2019-10-31 18:27:57 +01:00
Andreas Dangel
73e48edaaa Merge branch 'pr-2054'
[java] Rename rule InvalidSlf4jLoggingFormat to InvalidLogMessageFormat
2019-10-30 19:30:44 +01:00
Andreas Dangel
39e07f6fbc Merge branch 'pr-2084'
[core] Deprecate Parser#getSuppressMap
2019-10-30 19:25:59 +01:00
Andreas Dangel
79fa9d2137 Merge branch 'pr-2083'
[core] Enable type resolution by default for XPath rules
2019-10-29 19:42:58 +01:00
Andreas Dangel
6e92282e24 Merge branch 'pr-2086'
[core] Improve logging of deprecated/renamed rules and non-existing excluded rules
2019-10-29 19:40:17 +01:00
Clément Fournier
34455b3051 Merge branch 'pr-2066' 2019-10-29 16:38:42 +01:00
Andreas Dangel
fc8f9b1c6e [doc] Clarify note about deprecated rules when referencing a complete ruleset 2019-10-28 21:46:39 +01:00
Andreas Dangel
fda81bd7bc [core] Don't enable deprecated rules if whole ruleset is imported
This restores the previous behavior.
2019-10-28 21:44:46 +01:00
Andreas Dangel
f9d7b0891b Merge branch 'pr-2027'
[doc,ci] Rework doc generation and release notes
2019-10-28 19:39:39 +01:00
Andreas Dangel
0a94dec8f0 Merge branch 'pr-2044'
[core] Wrong deprecation warnings for unused XPath attributes
2019-10-28 19:27:52 +01:00
Andreas Dangel
2d4b01dca2 Upgrade embedded pmd-designer to 6.19.0
Also fix integration test with the additional
language "text".
2019-10-27 19:02:03 +01:00
Andreas Dangel
078863e36e [core] Only log if a language doesn't provide categories.properties
The new pmd-designer 6.19.0 adds the language module "text" (PlainText).
It is used as a fallback, if no other language modules are on the
classpath.

With this change PMD only logs a warning
if the file categories.properties couldn't be found for a language
instead of throwing RuleSetNotFoundException.
2019-10-27 19:01:42 +01:00
Andreas Dangel
95bbf56aea Use released pmd-build-tools version 5 2019-10-27 12:05:13 +01:00
Andreas Dangel
7e19b97e15 [doc] Update release notes, fixes #1978, fixes #2082 2019-10-27 11:40:37 +01:00
Andreas Dangel
b1adf5c97c [doc] Add note for referencing a complete category or ruleset 2019-10-27 11:28:13 +01:00
Andreas Dangel
3c32f229f6 [core] Don't fail hard anymore if excluded rule doesn't exist
Fixes #1978
2019-10-27 10:16:17 +01:00
Andreas Dangel
9019f15cab [core] Improve logging of deprecated rule usages
Refs #2082

Not all cases are solved yet. It works, if a rule has been renamed
within the same category. If a rule is moved between categories,
then we might get multiple deprecation warnings.

There is also one important change when referencing a complete ruleset:
Previously we skipped all rules, that were deprecated without
distinguishing between rule definitions and rule references.
Now we only skip deprecated rule references but we still use
deprecated rule definitions. This affects any user, that simply uses
a "bulk-import" of category rulesets, because now, they'll also
use deprecated rules and get a warning. They'd need to exclude these
rules explicitly (or import just the rules they want to use).
2019-10-27 09:58:43 +01:00
Andreas Dangel
d61d53092e [core] Deprecate Parser#getSuppressMap
Refs #2055
2019-10-26 17:27:11 +02:00
Andreas Dangel
92b8af8477 [core] Enable type resolution by default for XPath rules
Fixes #2048

All XPath rules will have now type resolution enabled by default.
While this change is in core, it actually only affects Java, since
this is the only language which has a type resolution facade
registered in its language handler.
2019-10-26 16:58:07 +02:00
Andreas Dangel
752e5f8ad5 [java] Deprecate AbstractJavaRule#getDeclaringType(Node)
Refs #2034
2019-10-26 12:17:43 +02:00
Andreas Dangel
7f31ad186b [ci] Prevent doc build from deploying the binary distribution
The documentation build should only deploy the pmd-doc*.zip
artefacts and not more.
2019-10-26 12:00:41 +02:00
Andreas Dangel
6e6adb9710 [ci] Generate the rule documentation also for pull requests
This will execute the DeadLinksChecker and RuleTagChecker
after the rule documentation has been generated.
2019-10-26 11:56:06 +02:00
Andreas Dangel
dd87fcb968 gitignore docs/pages/pmd/rules 2019-10-26 11:52:20 +02:00
Andreas Dangel
c134f23d7c Move all doc checks into the profile "generate-rule-docs" 2019-10-26 11:52:20 +02:00
Andreas Dangel
4ee8e65417 Upload release notes with the "docs" build.
The github release is first created as a draft, when we edit
the release notes, we publish it (draft=false), so that the
release notification mail contains the full release notes.
2019-10-26 11:52:20 +02:00
Andreas Dangel
7ae9247518 Generate rule docs only with maven profile "generate-rule-docs"
For travis build, PMD needs to be built now before jekyll can
generate the documentation.
In the main build, rule docs are not committed anymore.
2019-10-26 11:51:33 +02:00
Andreas Dangel
37aaa675db Remove the generated rule documentation from repository 2019-10-26 11:51:32 +02:00
Andreas Dangel
f10b631d76 [ci] Only execute deployment provider under linux
Previously it had also been executed under the macosx build,
see https://travis-ci.org/pmd/pmd/jobs/585148459#L6700
2019-10-26 11:39:16 +02:00
Andreas Dangel
f343932a4f [ci] Allow the windows job to fail for now
There seems to be some problem when the deploy phase is executed,
which happens only on pushes - for PRs the deploy is not executed
at all.
Although the deploy is skipped (since this is not a tagged build),
the windows job hangs after that.

Maybe we need to deploy to github releases manually, as we do
for the release notes already. That way, we wouldn't use the
deployment mechanism of travis.
2019-10-26 11:35:29 +02:00
Juan Martín Sotuyo Dodero
c5145994ac Merge pull request #2077 from adangel/travis-windows
[ci] Add travis build on windows
2019-10-25 17:05:54 -03:00
Juan Martín Sotuyo Dodero
d6f0192857 Merge branch 'master' into travis-windows 2019-10-25 17:05:45 -03:00
Andreas Dangel
6f4ccfb979 Add rule integration tests for all other supported languages 2019-10-25 19:50:48 +02:00
Andreas Dangel
c7f143534a [doc] Update generated rule doc 2019-10-25 18:42:50 +02:00
Andreas Dangel
c1f36d9d70 [java] Rename InvalidSlf4jMessageFormat to InvalidLogMessageFormat
Follow-up on #2012
2019-10-25 18:42:50 +02:00
Andreas Dangel
5c2bff403d Merge branch 'pr-2068' 2019-10-25 18:20:06 +02:00
Andreas Dangel
c2b484bbc0 [doc] Update release notes, refs #2068 2019-10-25 18:18:16 +02:00
Andreas Dangel
2bc67ea719 [java] Add deprecation javadoc 2019-10-25 18:18:05 +02:00
Andreas Dangel
63395684c4 Merge branch 'pr-2076' 2019-10-25 15:01:58 +02:00
Andreas Dangel
e8a4b5f77e [doc] Update release notes, refs #2076 2019-10-25 15:01:04 +02:00
Andreas Dangel
ecc4e7558f [java] Use full name for CLASS_FAN_OUT metric for operations as well 2019-10-25 14:44:45 +02:00
Andreas Dangel
2b66fb76cb Merge branch 'master' into travis-windows 2019-10-25 14:27:17 +02:00
Andreas Dangel
72d31b2b30 [ci] Update to openjdk 11.0.5+10 2019-10-25 14:27:02 +02:00
Andreas Dangel
1209b162a9 [ci] Explicitly configure known_hosts for web.sourceforge.net 2019-10-24 20:29:16 +02:00
Juan Martín Sotuyo Dodero
9a2314ab5d Merge pull request #2079 from adangel/issue-1531-unusedprivatemethod
[java] UnusedPrivateMethod false-positive with method result
2019-10-23 19:46:48 -03:00
andi
e2877ab95c use full name instead of abbreviation for classfanout & fix spelling 2019-10-22 20:22:20 +02:00
Chen Yang
48fab8cd64 Missing a ; 2019-10-22 21:24:13 +09:00