checkstyle
Checkstyle is a development tool to help programmers write Java code that adheres to a coding standard. By default it supports the Google Java Style Guide and Sun Code Conventions, but is highly configurable. It can be invoked with an ANT task and a command line program
What XERJ indexed
Snapshot
Only config, src/it/java/org/checkstyle/suppressionxpathfilter/coding, src/it/resources/org/checkstyle/suppressionxpathfilter/coding/unnecessarypermitsclause, src/main/java/com/puppycrawl/tools/checkstyle, src/main/resources/com/puppycrawl/tools/checkstyle/checks/coding, src/main/resources/com/puppycrawl at commit bfe45c6f95 (2026-09-26). master is 389 commits ahead.
Selected work

“Issue #14121: IndentationCheck: inner Handlers should not have refere…”. 43 files, 1,013 lines in src/main, src/test, config.
Also selected on this repository: @M-SaaD-H (6e39d3ef4c7b).
Licence
The repository
LICENSE file checked at the pinned commit; the author agreed to inclusion.
The XERJ corpus
The author agreed by email on 2026-10-18. Agents read it for how it works, not to copy it. Answers name the repo, the commit and the file:line.
selected for the XERJ Corpus Hublicence clearedsuggested use: approach only
javastatic-code-analysiscommand-line-toolstatic-analysiscode-qualityhacktoberfest
Example questions
- How does checkstyle implement java?
- What does src/main do in checkstyle?
- Show the static-code-analysis code in checkstyle.
Inside the indexed corpus
- 9,549 files, 47.6 MB in total, about 5.1 KB per file.
- The selected commit changed 43 of those files (0.5%).
- Languages by size: Java 97.7%, HTML 1%, Shell 0.6%, JavaScript 0.2%, ANTLR 0.2%.
- On GitHub since 2013-08-31, last push 2026-10-31, 18,216 commits on master.
- The pin is 389 commits behind master; the corpus answers from the pinned code, not the newest.
Licence on GitHub and in the corpus
GitHub reported LGPL-2.1 for checkstyle/checkstyle on 2026-10-31, but the LICENSE file at commit bfe45c6f95 was reviewed as NOASSERTION. The corpus is the pinned commit, so answers from it follow NOASSERTION.
Contributors
youssef alaa ahmed haredy (@Youssefalaa7) has 1 selected repository on the hub.
Saad Haider (@M-SaaD-H) was also selected on checkstyle/checkstyle and has 1 selected repository on the hub.
Using XERJ with checkstyle
- How do I run syntax-aware code search? checkstyle is tagged static-analysis on GitHub.
- XERJ vs ast-grep: syntax search and an index
- Index a monorepo so your agent stops reading the whole repo The pinned tree has 9,549 files.
- Search an OpenAPI spec so an agent can find endpoints The hub files it under API design and specification.
The prompt
Paste it into your AI agent. It clones checkstyle/checkstyle at the pinned commit and indexes it on your machine.
Search the GitHub repository checkstyle/checkstyle with XERJ (https://hub.xerj.org/corpus/checkstyle--checkstyle). Run these in a shell, in order, and check each result before the next: 1. xerj --help (success: it prints usage). If xerj is missing: curl -fsSL https://xerj.org/get | sh 2. git clone https://github.com/checkstyle/checkstyle checkstyle && git -C checkstyle checkout bfe45c6f95d88e012e9cffbdfeca3ad91fb3ef0c 3. Start a local node and leave it running: xerj --insecure --data-dir ./xerj-data 4. xerj autoindex ./checkstyle --url http://127.0.0.1:9200 --prefix checkstyle --progress plain 5. xerj autoindex map --url http://127.0.0.1:9200 Then answer my question from the indexed files and cite the ax_path of every hit. Query syntax: https://xerj.org/llms.txt Licence: check the LICENSE file. Read it for the approach only, do not copy code.
Related
youssef alaa ahmed haredyAPI design and specification corporagosec-rulesbandit-pluginsvectra-corejyt6640/persona-harnessmagento/magento2-phpstorm-plugina2aproject/a2a-java
Stats: GitHub API, fetched 2026-10-31. Snapshot: the git tree at the pinned commit. Selected work and consent: the XERJ registry.