{
  "markdown": "# PMD - source code analyzer\n\n![PMD Logo](https://raw.githubusercontent.com/pmd/pmd/main/docs/images/logo/pmd-logo-300px.png)\n\n[![Join the chat](https://img.shields.io/gitter/room/pmd/pmd)](https://app.gitter.im/#/room/#pmd_pmd:gitter.im?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)\n[![Build Snapshot](https://github.com/pmd/pmd/actions/workflows/build-snapshot.yml/badge.svg?branch=main)](https://github.com/pmd/pmd/actions/workflows/build-snapshot.yml)\n[![Maven Central](https://maven-badges.herokuapp.com/maven-central/net.sourceforge.pmd/pmd/badge.svg)](https://maven-badges.herokuapp.com/maven-central/net.sourceforge.pmd/pmd)\n[![Reproducible Builds](https://img.shields.io/badge/Reproducible_Builds-ok-green?labelColor=blue)](https://github.com/jvm-repo-rebuild/reproducible-central/tree/master/content/net/sourceforge/pmd#readme)\n[![Coverage Status](https://coveralls.io/repos/github/pmd/pmd/badge.svg?branch=main&v=1)](https://coveralls.io/github/pmd/pmd?branch=main)\n[![Codacy Badge](https://app.codacy.com/project/badge/Grade/ea550046a02344ec850553476c4aa2ca)](https://app.codacy.com/organizations/gh/pmd/dashboard)\n[![Contributor Covenant](https://img.shields.io/badge/Contributor%20Covenant-v2.0%20adopted-ff69b4.svg)](code_of_conduct.md) \n[![Documentation (latest)](https://img.shields.io/badge/docs-latest-green)](https://docs.pmd-code.org/latest/)\n[![Gurubase](https://img.shields.io/badge/Gurubase-Ask%20PMD%20Guru-006BFF)](https://gurubase.io/g/pmd)\n[![Docker Image Version](https://img.shields.io/docker/v/pmdcode/pmd?sort=semver&label=Docker)](https://hub.docker.com/r/pmdcode/pmd)\n\n**PMD** is an extensible multilanguage static code analyzer. It finds common programming flaws like unused variables,\nempty catch blocks, unnecessary object creation, and so forth. It's mainly concerned with **Java and\nApex**, but **supports 16 other languages**. It comes with **400+ built-in rules**. It can be\nextended with custom rules. It uses JavaCC and Antlr to parse source files into abstract syntax trees\n(AST) and runs rules against them to find violations. Rules can be written in Java or using a XPath query.\n\nCurrently, PMD supports Java, JavaScript, Salesforce.com Apex and Visualforce,\nKotlin, Swift, Modelica, PL/SQL, Apache Velocity, JSP, WSDL, Maven POM, HTML, XML and XSL.\nScala is supported, but there are currently no Scala rules available.\n\nAdditionally, it includes **CPD**, the copy-paste-detector. CPD finds duplicated code in\nCoco, C/C++, C#, CSS, Dart, Fortran, Gherkin, Go, Groovy, HTML, Java, JavaScript, JSP, Julia, Kotlin,\nLua, Matlab, Modelica, Objective-C, Perl, PHP, PL/SQL, Python, Ruby, Salesforce.com Apex and\nVisualforce, Scala, Swift, T-SQL, Typescript, Apache Velocity, WSDL, XML and XSL.\n\n## 🚀️ Installation and Usage\n\nDownload the latest binary zip from the [releases](https://github.com/pmd/pmd/releases/latest)\nand extract it somewhere.\n\nExecute `bin/pmd check` or `bin\\pmd.bat check`.\n\nSee also [Getting Started](https://docs.pmd-code.org/latest/pmd_userdocs_installation.html)\n\n**Demo:**\n\nThis shows how PMD analyses [openjdk](https://github.com/openjdk/jdk):\n\n![Demo](docs/images/userdocs/pmd-demo.gif)\n\nThere are plugins for Maven and Gradle as well as for various IDEs.\nSee [Tools / Integrations](https://docs.pmd-code.org/latest/pmd_userdocs_tools.html)\n\n## ℹ️ How to get support?\n\n*   How do I? -- Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/pmd)\n    or on [discussions](https://github.com/pmd/pmd/discussions).\n*   I got this error, why? -- Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/pmd)\n    or on [discussions](https://github.com/pmd/pmd/discussions).\n*   I got this error and I'm sure it's a bug -- file an [issue](https://github.com/pmd/pmd/issues).\n*   I have an idea/request/question -- create a new [discussion](https://github.com/pmd/pmd/discussions).\n*   I have a quick question -- ask in our [Gitter room](https://app.gitter.im/#/room/#pmd_pmd:gitter.im)\n    or our [PMD Guru at Gurubase](https://gurubase.io/g/pmd).\n*   Where's your documentation? -- <https://docs.pmd-code.org/latest/>\n\n## 🤝️ Contributing\n\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nOur latest source of PMD can be found on [GitHub](https://github.com/pmd/pmd). Fork us!\n\nFor details, see [How to contribute to PMD](https://docs.pmd-code.org/latest/pmd_devdocs_contributing.html).\n\nThe rule designer is developed over at [pmd/pmd-designer](https://github.com/pmd/pmd-designer).\nPlease see [its README](https://github.com/pmd/pmd-designer#contributing) for\ndeveloper documentation.\n\n## 💵️ Financial Contributors\n\nBecome a financial contributor and help us sustain our community. [Contribute](https://opencollective.com/pmd/contribute)\n\n## ✨️ Contributors\n\nThis project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification.\nContributions of any kind welcome!\n\nSee [credits](docs/pages/pmd/projectdocs/credits.md) for the complete list.\n\n## 📝️ License\n\n[BSD Style](LICENSE)\n",
  "bytes": 5125,
  "sha": "897a1819d5f70081ef254c3266dfa05bd3e63746117fd6bbcd0a46ecdd808268",
  "repo_slug": "roeiba/pmd",
  "fonte": "repo",
  "truncated": false,
  "api": "https://agentalog.com/api/listings/mcp_io_github_roeiba_pmd_fa2be90c/readme"
}