Skip to content

Conversation

@SingingBush
Copy link
Contributor

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.

/**
* Sample entry.
* <div>Usage: <KBD>org.apache.xerces.utils.regex.REUtil &lt;regex&gt; &lt;string&gt;</KBD></div>
* <p>Usage: <code>org.apache.xerces.utils.regex.REUtil &lt;regex&gt; &lt;string&gt;</code></p>
Copy link
Contributor

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

Copy link
Contributor Author

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'
Copy link
Contributor

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

Copy link

@mlocati mlocati Nov 24, 2025

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

Copy link
Contributor Author

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.

Copy link
Contributor Author

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

Copy link
Contributor Author

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.

Copy link
Contributor Author

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'
Copy link
Contributor

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'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert

@SingingBush SingingBush requested a review from elharo November 25, 2025 08:57
@SingingBush
Copy link
Contributor Author

please run CI on the most recent commit. Should be passing now

@elharo
Copy link
Contributor

elharo commented Nov 25, 2025

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.

@elharo elharo closed this Nov 25, 2025
@elharo
Copy link
Contributor

elharo commented Nov 25, 2025

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.

@SingingBush
Copy link
Contributor Author

SingingBush commented Nov 25, 2025

if failonwarning='yes' is a hard no I can revert that via a commit. Can this PR be re-opened?

created new pr: #68

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants