-
Notifications
You must be signed in to change notification settings - Fork 13
[XERCESJ-1781] fine tuning Javadoc linting #65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
| /** | ||
| * Sample entry. | ||
| * <div>Usage: <KBD>org.apache.xerces.utils.regex.REUtil <regex> <string></KBD></div> | ||
| * <p>Usage: <code>org.apache.xerces.utils.regex.REUtil <regex> <string></code></p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
should probably be samp instead of code if I recall correctly
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can't use samp in Javadoc due to:
error: unknown tag: samp
could use pre if preferred
| additionalparam='-quiet ${additional.param}' | ||
| /> | ||
| failonerror='yes' | ||
| failonwarning='yes' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. I do not want the build to fail on a warning. I'm not sure it should fail on an error here, but definitely not on a warning
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not? It helps having a cleaner codebase imho
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've only set yes on the sections that don't have any errors or warnings. This branch passes, so setting yes here is to ensure future changes don't introduce problems.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Saying that, I just saw that behaviour is different on the CI build. I'll take a look at why it's passing locally but not on CI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've been using JDK 8 locally, I'll make sure to fix errors for newer JDK linter problems as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I was simply that later JDKs also error if table in a package.html file don't have a caption. Fixed now
| additionalparam='-quiet ${additional.param}' | ||
| /> | ||
| failonerror='yes' | ||
| failonwarning='yes' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert
| additionalparam='-quiet ${additional.param}' | ||
| /> | ||
| failonerror='yes' | ||
| failonwarning='yes' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
revert
|
please run CI on the most recent commit. Should be passing now |
|
This PR is a hard no. A warning is a warning, not a build failure We've already seen cases where javadoc warnings were simply incorrect; e.g. required captions on tables. And I triply don't want to encourage people to fill in javadoc with placeholder text just to make the build pass. |
|
If you like, you can send the javadoc fixes without the build.xml changes but I'm not going to fail the build on a warning. |
|
created new pr: #68 |
Seeing light at the end of this tunnel. In this PR I've made some tweaks to the Ant build so that linting is targeting the right areas. With the PR the way it is the build log is down to 15 javadoc errors and 2 warnings. The build allows it to pass in this state. I still plan to fix the remaining javadoc errors (html based) in the code base. The linter is not set to check for missing. Perhaps that can be done in the future but for now I'd like to get to a point where XERCESJ-1781 can be considered done.