{"id":73350,"library":"pmd-java","title":"PMD Java","description":"A static code analyzer for Java that finds common programming flaws like unused variables, empty catch blocks, and unnecessary object creation.","status":"active","version":"7.23.0","language":"java","source_language":null,"source_url":"https://github.com/pmd/pmd","tags":["static-analysis","code-quality","java","linting","pmd"],"install":[{"cmd":"<dependency>\n  <groupId>net.sourceforge.pmd</groupId>\n  <artifactId>pmd-java</artifactId>\n  <version>7.23.0</version>\n</dependency>","lang":"xml","label":"Maven"},{"cmd":"implementation 'net.sourceforge.pmd:pmd-java:7.23.0'","lang":"groovy","label":"Gradle"}],"dependencies":[],"imports":[{"symbol":"PMD","correct":"net.sourceforge.pmd.PMD"}],"quickstart":{"code":"import net.sourceforge.pmd.PMD;\nimport net.sourceforge.pmd.PMDConfiguration;\n\nPMDConfiguration config = new PMDConfiguration();\nconfig.setInputPaths(\"/path/to/source\");\nconfig.setRuleSets(\"rulesets/java/quickstart.xml\");\nPMD.doPMD(config);","lang":"java","description":"Run PMD analysis on Java source files with a ruleset."},"warnings":[{"fix":"Update rule set files to the new format and adjust API calls accordingly.","message":"PMD 7.x has breaking changes in rule set format and API compared to 6.x.","severity":"breaking","affected_versions":">=7.0.0"}],"env_vars":null,"search_vec":"'analysi':26 'analyz':6 'block':19 'catch':18 'code':5,28 'code-qu':27 'common':11 'creation':23 'empti':17 'find':10 'flaw':13 'java':2,8,30 'like':14 'lint':31 'object':22 'pmd':1,32 'program':12 'qualiti':29 'static':4,25 'static-analysi':24 'unnecessari':21 'unus':15 'variabl':16","created_at":"2026-06-17T18:50:09.143166+00:00","updated_at":"2026-06-17T18:50:09.143166+00:00","problems":[],"ecosystem":"maven","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":null,"cli_name":null,"cli_version":null,"type":"library","homepage":"https://pmd.github.io/","github":"https://github.com/pmd/pmd","docs":"https://appdoc.app/artifact/net.sourceforge.pmd/pmd-java/","changelog":null,"pypi":null,"npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["utility"],"base_url":null,"auth_type":null,"provenance":{"verified_status":null,"verified_at":null,"last_verified":"2026-06-17","next_check":"2026-12-14","install_tag":null}}