Skip to content

Latest commit

 

History

313 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Cron Extractor

Checkstyle Test Configurations Generator

This repository stores and generates configurations for diff.groovy testing or regression-report.yml in the Checkstyle project.

Using the Configurations

  1. Navigate to the specific module directory you're interested in.
  2. Open the README.md file in that directory.
  3. Add a comment in the PR exactly as shown under "Trigger report generation by comment in Pull Request:" in the README.

This will trigger the regression testing using the generated configuration.

Updating Project Lists

The project lists in extractor/src/main/resources/ (all-projects.*, list-of-projects.* and their *-for-javadoc-checks variants) are the source of truth for the list-of-projects.yml and list-of-projects.properties files located in each Check directory. Those per-Check copies are generated by the extractor and must never be edited by hand.

Important

After changing any project list (or other extractor configuration), run the extractor exactly as CI does (see .github/workflows/ci.yml) and commit the regenerated Check configs in the same PR as two separate commits:

  1. Functional commit - your actual change (for example, the project list or extractor configuration update). Only this commit is reviewed.
  2. Autogenerated commit - the regenerated Check configs produced by the extractor, with a message such as Update from extractor auto execution. This commit is too technical to review and is skipped by maintainers.

Do not mix hand-written and generated changes in one commit. See https://github.com/checkstyle/test-configs/pull/245/commits for an example.

To run the extractor:

./setup.sh
cd extractor
./gradlew clean build test run --args="../.ci-temp/checkstyle" --info --stacktrace --console=plain \
  -Dorg.gradle.logging.level=DEBUG \
  -Dtest.single=MainsLauncherTest

Otherwise the "Check git changes" step of CI will fail, as it verifies that the committed Check configs match what the extractor generates.

About

Stores configs for regression-report.yml (checkstyle repository) and diff.groovy (contribution repository)

Resources

Contributing

Stars

2 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages