-
Notifications
You must be signed in to change notification settings - Fork 43
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
Add disable option in Preferences #212
Comments
PMD can be run automatically, whenever the project is built or when a file is saved. You can disable, that PMD is executed automatically, if a file is saved in "Window > Preferences > PMD: Check code after saving". If Eclipse builds your projects automatically (Menu "Project > Build automatically" is enabled), then PMD will be executed, if it is enabled for the project. You can disable PMD for a single project via "Project Properties > PMD: Enable PMD". You can still run PMD manually, e.g. via context menu of a project "PMD > Check code". Does this help? |
Thank you. I will give this a try. The "Project > Build automatically" is concerning because most developers will keep this turned on. However, I see that the projects all default to "Enable PMD"=false. Is that sufficient to disable PMD even when "build automatically" is enabled? I think your answer was "yes". What does "enable using java project build path" do? I cannot find documentation. |
Even with "everything turned off", it isn't. Even when I am not doing anything with PMD (i.e., simply writing java code), I see issues in the Error Log:
|
PMD continues to operate in the background in Eclipse even when it isn't "being used". I know this because I can see items in the Error log that are pmd-related.
Every Eclipse developer knows the cycle of installing a "fresh eclipse" with no plugins, gradually adding plugins over time, eclipse becoming sluggish, then repeating the cycle.
Is it possible to add a button to the main PMD preferences tab that "turns it off"? That would be much better than installing and uninstalling PMD every few months for a code review.
The text was updated successfully, but these errors were encountered: