-
Notifications
You must be signed in to change notification settings - Fork 408
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
How to provide per-project compiler warning preferences? #581
Comments
We do not have a proper way of defining those yet. unofficially though defining them on an eclipse style |
Here's a list of supported preferences in
So for the missing serial version Id warning, you can set You might want to trigger a full build to update those diagnostics in your project (alt+shift+b, full) |
If this works I think it will be quite good enough, thank you very much! 👍 |
Superseded by #624 |
@fbricon maybe it could be cool to write a short paragraph in the README.md to explain how to manage warning preferences ? And add a link to the corresponding doc at https://help.eclipse.org/neon/topic/org.eclipse.jdt.doc.isv/reference/api/org/eclipse/jdt/core/JavaCore.html ? |
For anyone who searches This option has been disabled in #1714 by default, though in 2021-06 org.eclipse.jdt.core.JavaCore doc the default value is still 'warning'. |
Hello,
In an attempt to make compiler warnings more significant I'm trying to fine-tune the settings for which warnings are reported. As an editor I am using Visual Studio Code with the vscode-java extension, and I figured that such settings might be coming from this project.
Now on to the question: how do I configure the warnings reported back from the compiler?
As an example I would like to ignore warnings like: 'The serializable class does not declare a static final serialVersionUID field of type long'
where the serializable class is referring to an anonymous HashMap<String, String>.
The text was updated successfully, but these errors were encountered: