-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8349847: Support configuring individual lint categories as errors #23622
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
base: master
Are you sure you want to change the base?
Conversation
👋 Welcome back acobbs! A progress list of the required criteria for merging this PR into |
/csr |
❗ This change is not yet ready to be integrated. |
@archiecobbs has indicated that a compatibility and specification (CSR) request is needed for this pull request. @archiecobbs please create a CSR request for issue JDK-8349847 with the correct fix version. This pull request cannot be integrated until the CSR request is approved. |
@archiecobbs The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
@archiecobbs This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
Keepis Alivimus |
Can we please hold off on this for now? There's many |
Hi @mcimadamore, Certainly - I was only trying to stave off the bot, not implying impatience. Maybe we need a new bot command like |
@archiecobbs This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration! |
@archiecobbs this pull request can not be integrated into git checkout JDK-8349847
git fetch https://git.openjdk.org/jdk.git master
git merge FETCH_HEAD
# resolve conflicts and follow the instructions given by git merge
git commit -m "Merge master"
git push |
@archiecobbs This pull request has been inactive for more than 8 weeks and will now be automatically closed. If you would like to continue working on this pull request in the future, feel free to reopen it! This can be done using the |
/touch |
@archiecobbs This command can only be used in open pull requests. |
/open |
@ExE-Boss Only the pull request author can set the pull request state to "open" |
/open |
@archiecobbs This pull request is now open |
|
This PR refines the
-Werror
flag to support lint categories just like-Xlint
does. So, for example-Werror:all,-preview
would cause an error if any warning other than apreview
warning occurred.A few notes:
Lint
category. As always, they cause an error if-Werror
is given, but what if-Werror:all
is given instead? The answer given here is yes, an error will occur.-Werror
works the same way as before, i.e., any warning results in an error. That means if-Werror
is given-Werror:foo
flags have no effect.-Xlint
and-Werror
to utilize the same "parsing" logic. The existing-Xlint
flag has a particular behavior when conflicting flags are combined (e.g.,-Xlint:all -Xlint:none -Xlint:foo -Xlint:-foo
equals-Xlint:all
). This behavior has been preserved and Javadocumented.This PR includes the following PR as a dependency/prerequisite:
Progress
Issues
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/23622/head:pull/23622
$ git checkout pull/23622
Update a local copy of the PR:
$ git checkout pull/23622
$ git pull https://git.openjdk.org/jdk.git pull/23622/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 23622
View PR using the GUI difftool:
$ git pr show -t 23622
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/23622.diff
Using Webrev
Link to Webrev Comment