{"id":51196980,"url":"https://github.com/objectionary/wpa","last_synced_at":"2026-06-27T21:30:30.444Z","repository":{"id":353685470,"uuid":"1219806055","full_name":"objectionary/wpa","owner":"objectionary","description":"Whole Program Analysis (WPA) linters for EO code","archived":false,"fork":false,"pushed_at":"2026-06-18T06:18:57.000Z","size":152,"stargazers_count":4,"open_issues_count":6,"forks_count":3,"subscribers_count":0,"default_branch":"master","last_synced_at":"2026-06-18T08:14:53.509Z","etag":null,"topics":["code-analysis","codeanalysis","eolang","java","static-analysis"],"latest_commit_sha":null,"homepage":"","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/objectionary.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-04-24T08:32:13.000Z","updated_at":"2026-06-18T06:19:01.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/objectionary/wpa","commit_stats":null,"previous_names":["objectionary/wpa"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/objectionary/wpa","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objectionary%2Fwpa","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objectionary%2Fwpa/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objectionary%2Fwpa/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objectionary%2Fwpa/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/objectionary","download_url":"https://codeload.github.com/objectionary/wpa/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/objectionary%2Fwpa/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34869004,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-27T02:00:06.362Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["code-analysis","codeanalysis","eolang","java","static-analysis"],"created_at":"2026-06-27T21:30:29.826Z","updated_at":"2026-06-27T21:30:30.439Z","avatar_url":"https://github.com/objectionary.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Whole-Program Analyzers for EO\n\n[![EO principles respected here](https://www.elegantobjects.org/badge.svg)](https://www.elegantobjects.org)\n[![We recommend IntelliJ IDEA](https://www.elegantobjects.org/intellij-idea.svg)](https://www.jetbrains.com/idea/)\n\n[![mvn](https://github.com/objectionary/wpa/actions/workflows/mvn.yml/badge.svg)](https://github.com/objectionary/wpa/actions/workflows/mvn.yml)\n[![PDD status](https://www.0pdd.com/svg?name=objectionary/wpa)](https://www.0pdd.com/p?name=objectionary/wpa)\n[![Maven Central](https://img.shields.io/maven-central/v/org.eolang/wpa.svg)](https://maven-badges.herokuapp.com/maven-central/org.eolang/wpa)\n[![Javadoc](https://www.javadoc.io/badge/org.eolang/wpa.svg)](https://www.javadoc.io/doc/org.eolang/wpa)\n[![License](https://img.shields.io/badge/license-MIT-green.svg)](https://github.com/objectionary/wpa/blob/master/LICENSE.txt)\n\nThis Java package is a collection of whole-program analyzers\n(a.k.a. WPA lints) for [XMIR] — an intermediate representation of\n[EO] objects. WPA lints analyze a set of XMIR files together,\nrather than one file at a time.\n\nSingle-file lints live in a separate package,\n[`org.eolang:lints`](https://github.com/objectionary/lints),\nwhich this library builds upon.\n\nAdd it to your project:\n\n```xml\n\u003cdependency\u003e\n  \u003cgroupId\u003eorg.eolang\u003c/groupId\u003e\n  \u003cartifactId\u003ewpa\u003c/artifactId\u003e\n  \u003cversion\u003e\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\nThen, run a whole-program analysis of XMIR files using the `Program`\nclass:\n\n```java\nimport java.nio.file.Paths;\nimport org.eolang.lints.Program;\nimport org.junit.jupiter.api.Assertions;\nimport org.junit.jupiter.api.Test;\n\nfinal class Foo {\n    @Test\n    void testProgram() {\n        Assertions.assertTrue(\n            new Program(\n                Paths.get(\"xmir-files\")\n            ).defects().isEmpty()\n        );\n    }\n}\n```\n\nYou can disable any particular linter with the help of the `+unlint`\nmeta in your XMIR source.\n\n## Design of This Library\n\nThe library is designed as a set of `Lint\u003cMap\u003cString, XML\u003e\u003e`\nimplementations. The `Program` class is the public entry point —\nit discovers `.xmir` files in a directory, runs all WPA lints, and\nreturns the collected defects.\n\nClasses exposed to users of the library:\n\n* `Program` — checker of a set of [XMIR]\n* `Defect` — a single defect discovered (from `org.eolang:lints`)\n* `Severity` — severity of a defect (from `org.eolang:lints`)\n\n## How to Contribute\n\nFork the repository, make changes, and send us a pull request.\nWe will review your changes and apply them to the `master` branch\nshortly, provided they don't violate our quality standards.\nTo avoid frustration, before sending us your pull request please\nrun a full Maven build:\n\n```bash\nmvn clean install -Pqulice\n```\n\nYou will need Maven 3.8+ and Java 11+.\n\n[XMIR]: https://news.eolang.org/2022-11-25-xmir-guide.html\n[EO]: https://www.eolang.org\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobjectionary%2Fwpa","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fobjectionary%2Fwpa","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fobjectionary%2Fwpa/lists"}