You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is probably a suggestion for SpotBugs > 3.1.0, but it would IMHO be nice to move the built-in detectors to their own plugin (say edu.umd.cs.findbugs.plugins.detect), with edu.umd.cs.findbugs.plugins.core providing only the SpotBugs infrastructure.
This would allow users to easily switch off all built-in detectors (if they want to rely solely on a third-party detector plugin):
This leaves the user only the option to explicitly enumerate all built-in detectors using -omitVisitors or -chooseVisitors.
Aside from this use case, I think moving the built-in detectors into their own plugin would provide a more general benefit: It puts SpotBugs’ plugin architecture and package organization to the test in the SpotBugs project itself. At the moment, SpotBugs relies on projects like fb-contrib to report any restrictions due to the silent assumption that all detectors are equal, but some detectors are more equal than others.
WDYT?
The text was updated successfully, but these errors were encountered:
By default SpotBugs autoload the core rules, from the classpath (/findbugs.xml). This force plugin like FSB to place metadata files to a dummy resource folder to avoid core not properly load and breaking SpotBugs startup.
This is probably a suggestion for SpotBugs > 3.1.0, but it would IMHO be nice to move the built-in detectors to their own plugin (say
edu.umd.cs.findbugs.plugins.detect
), withedu.umd.cs.findbugs.plugins.core
providing only the SpotBugs infrastructure.This would allow users to easily switch off all built-in detectors (if they want to rely solely on a third-party detector plugin):
At the moment, this fails with the message
This leaves the user only the option to explicitly enumerate all built-in detectors using
-omitVisitors
or-chooseVisitors
.Aside from this use case, I think moving the built-in detectors into their own plugin would provide a more general benefit: It puts SpotBugs’ plugin architecture and package organization to the test in the SpotBugs project itself. At the moment, SpotBugs relies on projects like
fb-contrib
to report any restrictions due to the silent assumption that all detectors are equal, but some detectors are more equal than others.WDYT?
The text was updated successfully, but these errors were encountered: