Skip to content

[JENKINS-36720] Investigate/cleanup spotbugs issues in Jenkins core #17340

Open

Description

@jenkins-infra-bot

Currently FindBugs settings ignore all medium-priority issues. It's bad, because this level contains NPE checks and other serious issues.

TODOs:

  • Remove filtering of medium-priority issues by setting Medium
  • Investigate error codes, add low-important once to the ignore list
  • Fix important issues in small pull requests

This task can be handled by multiple contributors!


Originally reported by oleg_nenashev, imported from: Investigate/cleanup spotbugs issues in Jenkins core
  • assignee: stefan_spieker
  • status: Open
  • priority: Minor
  • component(s): core
  • label(s): hacktoberfest, newbie-friendly
  • resolution: Unresolved
  • votes: 0
  • watchers: 6
  • imported: 2025-11-24
Raw content of original issue

Currently FindBugs settings ignore all medium-priority issues. It's bad, because this level contains NPE checks and other serious issues.

TODOs:

  • Remove filtering of medium-priority issues by setting <findbugs.threshold>Medium</findbugs.threshold>
  • Investigate error codes, add low-important once to the ignore list
  • Fix important issues in small pull requests

This task can be handled by multiple contributors!

1 attachment

Activity

  1. jenkins-infra-bot commented on Aug 19, 2016

    @jenkins-infra-bot
    Author
    oleg_nenashev:
    • Original comment link
    • Raw content of original comment:

      Summary:

      • 2 issues in CLI
      • 477 issues in the core

      The output is too long to be published as text, I'll attach it

    Summary:

    • 2 issues in CLI
    • 477 issues in the core

    The output is too long to be published as text, I'll attach it

  2. jenkins-infra-bot commented on Apr 3, 2017

    @jenkins-infra-bot
    Author
    scm_issue_link:

    Code changed in jenkins
    User: Oleg Nenashev
    Path:
    pom.xml
    http://jenkins-ci.org/commit/jenkins/6ca0d754c5cba97613bc8b1e7b33327119fbf79c
    Log:
    JENKINS-36720 - FindBugs. Reduse threshold to Medium

  3. jenkins-infra-bot commented on Oct 16, 2017

    @jenkins-infra-bot
    Author
    oleg_nenashev:
    • Original comment link
    • Raw content of original comment:

      It's actually newbie-friendly. Anyone can pick the core, run FindBugs and then cleanup something from the report. This issue is rather a milestone for such kind of activities

    It's actually newbie-friendly. Anyone can pick the core, run FindBugs and then cleanup something from the report. This issue is rather a milestone for such kind of activities

  4. jenkins-infra-bot commented on Sep 24, 2019

    @jenkins-infra-bot
    Author
    danielbeck:
    • Original comment link
    • Raw content of original comment:

      Is this done completely in 2.191, or just partially?

    Is this done completely in 2.191, or just partially?

  5. jenkins-infra-bot commented on Sep 25, 2019

    @jenkins-infra-bot
    Author
    stefan_spieker:
    • Original comment link
    • Raw content of original comment:

      There are several PRs done for this and there are more to come. This is a quite huge task. I think we would be down to 400 spotbugs issues if all PRs would be merged. So I guess this will be in progress for a longer while

    There are several PRs done for this and there are more to come. This is a quite huge task. I think we would be down to 400 spotbugs issues if all PRs would be merged. So I guess this will be in progress for a longer while

  6. jenkins-infra-bot commented on Oct 2, 2019

    @jenkins-infra-bot
    Author
    oleg_nenashev:
    • Original comment link
    • Raw content of original comment:

      I am thinking about Highlighting this story for Hacktoberfest. WDYT stefan_spieker?

    I am thinking about Highlighting this story for Hacktoberfest. WDYT stefan_spieker?

  7. jenkins-infra-bot commented on Oct 2, 2019

    @jenkins-infra-bot
    Author
    stefan_spieker:
    • Original comment link
    • Raw content of original comment:

      oleg_nenashev: Yes. That is a good idea. We have a lot issues still to solve. Maybe you should mention then that changing in the main pom the line 109 with this : <findbugs.threshold>Medium</findbugs.threshold> is enough to get all spotbugs issues.

    oleg_nenashev: Yes. That is a good idea. We have a lot issues still to solve. Maybe you should mention then that changing in the main pom the line 109 with this : Medium is enough to get all spotbugs issues.

  8. jenkins-infra-bot commented on Dec 23, 2019

    @jenkins-infra-bot
    Author
    stefan_spieker:
    • Original comment link
    • Raw content of original comment:

      Current status:

      [INFO] Total bugs: 400

    Current status:

    [INFO] Total bugs: 400

  9. jenkins-infra-bot commented on Dec 23, 2019

    @jenkins-infra-bot
    Author
    oleg_nenashev:
    • Original comment link
    • Raw content of original comment:

      Ugh. But it is still a  very good progress, thanks!

    Ugh. But it is still a  very good progress, thanks!

  10. jenkins-infra-bot commented on Jan 11, 2020

    @jenkins-infra-bot
    Author
    stefan_spieker:
    • Original comment link
    • Raw content of original comment:

      We are on a good way, but still some steps to go:

      [java] Warnings generated: 362

       

    We are on a good way, but still some steps to go:

    [java] Warnings generated: 362

     

  11. jenkins-infra-bot commented on Jan 11, 2020

    @jenkins-infra-bot
    Author
    oleg_nenashev:
    • Original comment link
    • Raw content of original comment:

      Thanks for your hard work stefan_spieker! I really look forward to introduce stricter requirements at some point

    Thanks for your hard work stefan_spieker! I really look forward to introduce stricter requirements at some point

  12. jenkins-infra-bot commented on Feb 20, 2020

    @jenkins-infra-bot
    Author
    raihaan:
    • Original comment link
    • Raw content of original comment:

      Probably due to findsecbugs we are at [java] Warnings generated: 591 right now

    Probably due to findsecbugs we are at [java] Warnings generated: 591 right now

  13. jenkins-infra-bot commented on Aug 18, 2024

    @jenkins-infra-bot
    Author
    markewaite:
    • Original comment link
    • Raw content of original comment:

      The current spotbugs exclusion file for Jenkins core includes several items that need to be triaged. Items that need triage are in the section that starts with the text:

      Here lies technical debt. Exclusions in this section have not yet been triaged

      Items after that comment are examples of things to be reviewed as part of this issue.

    The current spotbugs exclusion file for Jenkins core includes several items that need to be triaged. Items that need triage are in the section that starts with the text:

    Here lies technical debt. Exclusions in this section have not yet been triaged

    Items after that comment are examples of things to be reviewed as part of this issue.

  14. bhumika-aga commented on Jun 19, 2026

    @bhumika-aga

    Raised a PR. Please have a look.

  15. added a commit that references this issue on Jun 19, 2026
    9d3be6f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions