Comments (3)
Hi, sorry for delay in acknowledging your bug report. Taking a gander now.
from test-driven-detectors4findbugs.
Hi @GrimmiMeloni,
I don't believe there's any need to initialise FindBugs quite so aggressively. It should be possible to add and clear registrars, and also retrieve the testing BugReporter, without initialising FindBugs. Ideally this could be done with just an instance of DetectorAssert, which can be constructed and collected as needed, but there's so much static state within FindBugs that it would be very difficult to support this. I think just removed the eager initialisation in a few key places is the answer.
Making the change would be quite easy, but I would prefer to have an automated test. Would you be able to supply a minimal, not-working example? I'm not too familiar with custom analysis engines in FB, so it would really help me out. Gist or pull request, or pasting some text here, whatever is easiest for you.
from test-driven-detectors4findbugs.
Well, in theory I think a minimal EngineRegistrar that puts some noop-engine into the AnalysisContext could be sufficient already. A testcase would then just have to check if that engine is available (or if that's not directly possible check for some predetermiend result that's caused by that noop-engine).
I will try to find some time to have a look at the testcases again. Cannot promise anything at this point though (my desk is loaded).
from test-driven-detectors4findbugs.
Related Issues (17)
- findbugs 2.x HOT 7
- NullPointerException when initializing a BugAccumulator in the detector's constructor HOT 6
- Test "createsFileSystemCodeBaseLocatorForEachJarPathGiven" is failed on Windows HOT 5
- Exception/error messages of DetectorAssert is not informative HOT 1
- missing XFactory interning in test driver HOT 4
- BugMatcher not propagated by Detector --> Detector2 delegation method HOT 2
- DetectorAssert usability problem for multiple matchers HOT 1
- Compatibility with Findbugs 3 HOT 3
- PluginDoesntContainMetadataException because the wrong findbugs.xml is found when looking for the core plugin HOT 3
- Using Java 8 lambdas as tested classes
- Make available from Maven Central HOT 3
- Possibly incorrect license listed HOT 1
- RuntimeException: Failed to setup FindBugs dependencies for testing caused by FileNotFoundException HOT 6
- jdk 1.6 HOT 1
- java.lang.ExceptionInitializerError will thrown many times HOT 3
- Support Detector2 interface HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from test-driven-detectors4findbugs.