{"id":19249026,"url":"https://github.com/sbt/sbt-findbugs","last_synced_at":"2026-03-16T14:32:33.053Z","repository":{"id":11300188,"uuid":"13715270","full_name":"sbt/sbt-findbugs","owner":"sbt","description":"FindBugs static analysis plugin for sbt.","archived":false,"fork":false,"pushed_at":"2017-10-09T16:19:15.000Z","size":227,"stargazers_count":46,"open_issues_count":9,"forks_count":13,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-04-21T12:42:51.919Z","etag":null,"topics":["analysis","findbugs","java","sbt","sbt-plugin","static-analysis"],"latest_commit_sha":null,"homepage":"","language":"Scala","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"mattboldt/typed.js","license":"epl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sbt.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-10-20T07:30:28.000Z","updated_at":"2024-04-30T08:31:37.000Z","dependencies_parsed_at":"2022-09-13T06:50:32.890Z","dependency_job_id":null,"html_url":"https://github.com/sbt/sbt-findbugs","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/sbt/sbt-findbugs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbt%2Fsbt-findbugs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbt%2Fsbt-findbugs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbt%2Fsbt-findbugs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbt%2Fsbt-findbugs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sbt","download_url":"https://codeload.github.com/sbt/sbt-findbugs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sbt%2Fsbt-findbugs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30207990,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T03:24:23.086Z","status":"ssl_error","status_checked_at":"2026-03-07T03:23:11.444Z","response_time":53,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["analysis","findbugs","java","sbt","sbt-plugin","static-analysis"],"created_at":"2024-11-09T18:12:08.301Z","updated_at":"2026-03-07T04:31:03.630Z","avatar_url":"https://github.com/sbt.png","language":"Scala","funding_links":[],"categories":[],"sub_categories":[],"readme":"# sbt-findbugs - Static code analysis via FindBugs from within sbt\n\n[![Build Status](https://travis-ci.org/sbt/sbt-findbugs.svg?branch=master)](https://travis-ci.org/sbt/sbt-findbugs)\n[![Codacy Grade](https://img.shields.io/codacy/grade/c5bcab37c4a04974b06a1cfd3f5a9fcc.svg?label=codacy)](https://www.codacy.com/app/stringbean/sbt-findbugs)\n[![SBT 0.13 version](https://img.shields.io/badge/sbt_0.13-2.0.0-blue.svg)](https://bintray.com/stringbean/sbt-plugins/sbt-findbugs)\n[![SBT 1.0 version](https://img.shields.io/badge/sbt_1.0-2.0.0-blue.svg)](https://bintray.com/stringbean/sbt-plugins/sbt-findbugs)\n\nThis sbt plug-in enables you to analyze your (Java) code with the help of the great\n[FindBugs](http://findbugs.sourceforge.net/) tool. It defines a `findbugs` sbt action for that purpose.\n\nInstall the plugin by adding the following to `project/plugins.sbt`:\n\n```scala\naddSbtPlugin(\"com.github.sbt\" % \"sbt-findbugs\" % \"\u003cversion\u003e\")\n```\n\nAnd then run the plugin with `sbt findbugs`. This will generate a FindBugs report in\n`target/scala-xx/findugs/report.xml`.\n\n## Defining exclude/include filters\n\n### Defining filters inline\n\nJust use Scala inline XML for the setting, for example:\n\n```scala\nfindbugsIncludeFilters := Some(\u003cFindBugsFilter\u003e\n  \u003cMatch\u003e\n    \u003cClass name=\"de.johoop.Meep\" /\u003e\n  \u003c/Match\u003e\n\u003c/FindBugsFilter\u003e)\n```\n\n### Using filter files\n\nYou can also read the filter settings from files in a more conventional way:\n\n```scala\nfindbugsIncludeFilters := Some(baseDirectory.value / \"findbugs-include-filters.xml\")\n```\n\nOr, when your configuration is zipped and previously published to a local repo:\n\n```scala\nfindbugsIncludeFilters := {\n  val configFiles = update.value.select(module = moduleFilter(name = \"velvetant-sonar\"))\n  val configFile = configFiles.headOption flatMap { zippedFile =\u003e\n    IO.unzip(zippedFile, target.value / \"rules\") find (_.name contains \"velvetant-sonar-findbugs.xml\")\n  }\n\n  configFile map scala.xml.XML.loadFile orElse sys.error(\"unable to find config file in update report\")\n}\n```\n\n## Settings\n\n(see also the [FindBugs documentation](http://findbugs.sourceforge.net/manual/running.html#commandLineOptions))\n\n### `findbugsReportType`\n* *Description:* Optionally selects the output format for the FindBugs report.\n* *Accepts:* `Some(FindbugsReportType.{Xml, Html, PlainHtml, FancyHtml, FancyHistHtml, Emacs, Xdoc})`\n* *Default:* `Some(FindbugsReportType.Xml)`\n\n### `findbugsReportPath`\n* *Description:* Target path of the report file to generate (optional).\n* *Accepts:* any legal file path\n* *Default:* `Some(crossTarget.value / \"findbugs\" / \"report.xml\")`\n\n### `findbugsPriority`\n* *Description:* Suppress reporting of bugs based on priority.\n* *Accepts:* `FindbugsPriority.{Relaxed, Low, Medium, High}`\n* *Default:* `FindbugsPriority.Medium`\n\n### `findbugsEffort`\n* *Description:* Decide how much effort to put into analysis.\n* *Accepts:* `FindbugsEffort.{Minimum, Default, Maximum}`\n* *Default:* `FindbugsEffort.Default`\n\n### `findbugsOnlyAnalyze`\n* *Description:* Optionally, define which packages/classes should be analyzed.\n* *Accepts:* An option containing a `List[String]` of packages and classes.\n* *Default:* `None` (meaning: analyze everything).\n\n### `findbugsMaxMemory`\n* *Description:* Maximum amount of memory to allow for FindBugs (in MB).\n* *Accepts:* any reasonable amount of memory as an integer value\n* *Default:* `1024`\n\n### `findbugsAnalyzeNestedArchives`\n* *Description:* Whether FindBugs should analyze nested archives or not.\n* *Accepts:* `true` and `false`\n* *Default:* `true`\n\n### `findbugsSortReportByClassNames`\n* *Description:* Whether the reported bug instances should be sorted by class name or not.\n* *Accepts:* `true` and `false`\n* *Default:* `false`\n\n### `findbugsIncludeFilters`\n* *Description:* Optional filter file XML content defining which bug instances to include in the static analysis.\n* *Accepts:* `None` and `Option[Node]`\n* *Default:* `None` (no include filters).\n\n### `findbugsExcludeFilters`\n* *Description:* Optional filter file XML content defining which bug instances to exclude in the static analysis.\n* *Accepts:* `None` and `Some[Node]`\n* *Default:* `None` (no exclude filters).\n\n### `findbugsAnalyzedPath`\n* *Description:* The path to the classes to be analyzed.\n* *Accepts:* any `sbt.Path`\n* *Default:* `Seq(classDirectory in Compile value)`\n\n## Contributors\n\nThanks to [@asflierl](http://github.com/asflierl) and [@anishathalye](http://github.com/anishathalye) for their contributions!\n\n## License\n\nCopyright (c) Joachim Hofer \u0026 contributors\n\nAll rights reserved.\n\nThis program and the accompanying materials are made available under the terms of the **Eclipse Public License v1.0**\nwhich accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbt%2Fsbt-findbugs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsbt%2Fsbt-findbugs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsbt%2Fsbt-findbugs/lists"}