#289 Ignore Scala classes

3.0.0
closed-fixed
5
2014-06-19
2013-06-25
Martin Burger
No

Currently, when we run FindBugs on a mixed Maven project that contains both Java and Scala source files and classes, respectively, it produces tons of false warnings.

As far as I know, there is no reasonable way to configure FindBugs to automatically ignore Scala class files.

Would it be possible to extend FindBugs in such a way that it would just ignore class files generated by the Scala compiler?

Discussion

  • Daud
    Daud
    2013-07-17

    Hello there!
    I am a Researcher in Open Source Software Development. I am looking for your simple help for the research purpose that would help us in making the OSS community better. Kindly reply me at the earliest.
    It is a simple survey of OSS developers!
    Help me in conducting research on OSS as it is ONLY a simple survey. Kindly, email me at:
    kanwaldaud86@gmail.com
    or respond here.
    I'll be waiting for your response! Kindly help, it is for OSS community.

     
  • Daud
    Daud
    2013-07-17

    Kindly help me in conducting a survey of your OSS project. Respond to this message at the earliest. The research project is intended to help OSS community as we develop automated systems for OSS developers to aid them in building softwares. Waiting for your response.

     
  • John Kozlov
    John Kozlov
    2013-07-25

    If you used Sonar you could set up exclusions for Scala classes (e.g based on package names)

     
    • status: open --> closed-fixed
    • assigned_to: Andrey Loskutov
     
  • Dup of https://sourceforge.net/p/findbugs/feature-requests/299/
    The filter below works now in FB 3.0.0 to exclude all scala classes:

    <?xml version="1.0" encoding="UTF-8"?>
    <FindBugsFilter>
    <Match>
        <Source name="~.*\.scala" />
    </Match>
    </FindBugsFilter>