[doc] PMD Rule documentation throws 404 for v5.4.1 #3041
-
Affects PMD Version: 5.4.1 Hi there, I'm currently experimenting with an older PMD jar whose version is v5.4.1 and I noticed that all the links in the HTML report threw 404s. For example, https://pmd.github.io/pmd-5.4.1/pmd-java/rules/java/design.html#UseVarargs. I was able to refer to the same rule by browsing v5.4.6 doc (https://pmd.github.io/pmd-5.4.6/pmd-java/rules/java/design.html#UseVarargs).
|
Beta Was this translation helpful? Give feedback.
Replies: 5 comments
-
Hi, May I ask you, why you are specifically trying out this old version? Is there a feature, that we accidentally removed in a later version? Regards, |
Beta Was this translation helpful? Give feedback.
-
Thank you for the quick response. I'm currently investigating the effort involved in upgrading the library and checking if we can use our current version as is and found that reports were broken. Let's say a few versions down the line, even 6.x.x becomes obsolete and the links are broken due to constraints you mentioned. Do you think it makes sense to not link them at all in the first place similar to checkstyle reports? Alternatively, if the docs can be locally hosted, an option to override the base url within the ant task would also be a great idea. |
Beta Was this translation helpful? Give feedback.
-
That's interesting... what errors are you hitting? 5.8.1 (last 5.x release) should be completely compatible. Even 6.x releases should work without problems except for the rule If you are seeing other breaking changes, please provide full detail. We are most interested on it. |
Beta Was this translation helpful? Give feedback.
-
Hi Juan,
Sorry for the misunderstanding! I meant to write that the report links w.r.t rules were broken on 5.4.1 (https://pmd.github.io/pmd-5.4.1/* 404s). For the short term, I'm trying to fix the broken report links with the current version, i.e., 5.4.1 (locally hosted docs or auto redirector chrome/FF plugin). As a long term fix, we will upgrade to the latest and greatest PMD and port our config/rules to match the new one's. |
Beta Was this translation helpful? Give feedback.
-
I've now made the old documentation available at http://pmd.sourceforge.net/archive.html The 404 page of pmd.github.io will now redirect automatically (if javascript is enabled) to the documentation in the archive. So, the link https://pmd.github.io/pmd-5.4.1/pmd-java/rules/java/design.html#UseVarargs works again. |
Beta Was this translation helpful? Give feedback.
I've now made the old documentation available at http://pmd.sourceforge.net/archive.html
The 404 page of pmd.github.io will now redirect automatically (if javascript is enabled) to the documentation in the archive.
So, the link https://pmd.github.io/pmd-5.4.1/pmd-java/rules/java/design.html#UseVarargs works again.