GithubHelp home page GithubHelp logo

Comments (3)

Grundlefleck avatar Grundlefleck commented on July 24, 2024

Hi, sorry for delay in acknowledging your bug report. Taking a gander now.

from test-driven-detectors4findbugs.

Grundlefleck avatar Grundlefleck commented on July 24, 2024

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.

GrimmiMeloni avatar GrimmiMeloni commented on July 24, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.