Skip to content

Update linting settings - #37

Merged
mernst merged 2 commits into
masterfrom
linting4
Aug 8, 2026
Merged

mernst merged 2 commits into
masterfrom
linting4

Conversation

@mernst

@mernst mernst commented Aug 8, 2026

Copy link
Copy Markdown
Contributor

No description provided.

@coderabbitai

coderabbitai Bot commented Aug 8, 2026 •

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@mernst, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 50 minutes

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: e5b1ca24-ad4c-4b50-bc95-240dc976e4a7

📥 Commits

Reviewing files that changed from the base of the PR and between 8719d78 and 8915ad3.

📒 Files selected for processing (1)
  • .github/workflows/prek.yaml
📝 Walkthrough

Walkthrough

The pull request updates prek configuration and CircleCI execution settings. It adds and reorders excluded paths, removes two hook exclusions, and adds CircleCI validation. It expands HTML exclusions and changes Gradle Spotless matching to include Java and Gradle Kotlin files. It updates Checkmake and Yamllint repository URLs, updates the Yamllint revision, removes a Shellcheck exclusion, and changes the CircleCI prek job image from Python 3.14 to Python 3.11.

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch linting4

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@prek.toml`:
- Around line 91-98: Update the CircleCI workflow so validation runs
independently of the `circleci_validate` hook: after installing the CircleCI
CLI, add an explicit `circleci config validate` step. Do not rely on the
pre-commit hook, which skips validation when `CIRCLECI` is set.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: ASSERTIVE

Plan: Pro Plus

Run ID: ad0ef948-1452-481b-be6c-425780fcbf51

📥 Commits

Reviewing files that changed from the base of the PR and between 82c9785 and 8719d78.

📒 Files selected for processing (2)
  • .circleci/config.yml
  • prek.toml

Comment thread prek.toml
Comment on lines +91 to +98
# This doesn't install the tool! It fails with "Circleci CLI could not be
# found." unless you have installed the CircleCI CLI. Using `snap` to install
# leads to permission problems due to snap confinement. To install:
# - run: curl -fLSs https://raw.githubusercontent.com/CircleCI-Public/circleci-cli/main/install.sh | sudo bash
[[repos]]
repo = "https://github.com/zahorniak/pre-commit-circleci"
rev = "v1.3.0"
hooks = [{ id = "circleci_validate" }]

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎯 Functional Correctness | 🟠 Major | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
set -euo pipefail

rg -n -C 4 \
  'circleci_validate|CIRCLECI|circleci config validate|prek run' \
  prek.toml .circleci/config.yml

Repository: plume-lib/run-google-java-format

Length of output: 970


🌐 Web query:

https://raw.githubusercontent.com/zahorniak/pre-commit-circleci/v1.3.0/circleci_validate.py

💡 Result:

The file circleci_validate.py from the zahorniak/pre-commit-circleci repository is a Python script that functions as a pre-commit git hook [1]. Its primary purpose is to automatically validate a CircleCI configuration file by invoking the circleci config validate command provided by the circleci-cli tool [1]. By including this hook in a project's .pre-commit-config.yaml file, developers ensure that their CircleCI configuration is checked for errors before changes are committed [1]. Key details include: - Functionality: It runs circleci config validate to ensure the configuration file is well-formed and valid according to CircleCI's requirements [1]. - Usage: It is configured within the .pre-commit-config.yaml file, allowing users to pass additional arguments (such as --org-slug) or specify custom configuration file paths [1]. - Prerequisites: This hook requires the official CircleCI CLI (circleci-cli) to be installed and available in the environment where pre-commit is running [1][2]. - Related Hooks: The repository also includes other hooks for CircleCI operations, such as circleci_process (to process configuration) and circleci_pack (to pack modular configurations) [1].

Citations:


🌐 Web query:

raw.githubusercontent.com/zahorniak/pre-commit-circleci/v1.3.0/circleci_validate.py "CIRCLECI" "sys.exit"

💡 Result:

The file circleci_validate.py in the zahorniak/pre-commit-circleci repository [1] is a Python script designed to act as a pre-commit hook for validating CircleCI configuration files [1]. When this script uses sys.exit() in the context of CIRCLECI environment detection or validation failure, it is implementing standard command-line interface (CLI) signaling [2][3][4]. Specifically: 1. Signaling Failure: If the validation process (typically via the circleci config validate command) fails, the script uses sys.exit(1) (or another non-zero exit code) to signal to the pre-commit framework that the hook has failed [5][1][4]. 2. Blocking Commits: Because the pre-commit framework monitors the exit code of its hooks, a sys.exit(1) call causes the pre-commit tool to halt the Git commit process, preventing invalid or misconfigured CircleCI configuration files from being committed to the repository [5][1][6]. 3. Execution Environment: The script relies on the official CircleCI CLI being installed on the local system to perform the actual validation [5][1]. It functions by wrapping the circleci config validate command and propagating that command's exit status through its own sys.exit() call [1]. In general Python CLI script usage, sys.exit(0) indicates successful execution, while any non-zero value (commonly 1) is used to indicate an error or validation failure [7][2][8][4]. Top results: [5][1]

Citations:


🌐 Web query:

site:raw.githubusercontent.com/zahorniak/pre-commit-circleci/v1.3.0/circleci_validate.py "CIRCLECI"

💡 Result:

The file checks the CIRCLECI environment variable:

if os.getenv("CIRCLECI"):
    print("Circleci environment detected, skipping validation.")
    sys.exit(0)

When CIRCLECI is set, validation is skipped. [1]


Run circleci validation outside the circleci_validate pre-commit hook.

Pre-commit is configured to run prek run -q --all-files in CircleCI, while this hook exits successfully when CIRCLECI is set and skips circleci config validate. Add an explicit circleci config validate step after installing the CircleCI CLI, or document that this hook is local-only.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@prek.toml` around lines 91 - 98, Update the CircleCI workflow so validation
runs independently of the `circleci_validate` hook: after installing the
CircleCI CLI, add an explicit `circleci config validate` step. Do not rely on
the pre-commit hook, which skips validation when `CIRCLECI` is set.

Source: MCP tools

@mernst
mernst merged commit 579e887 into master Aug 8, 2026
5 checks passed
@mernst
mernst deleted the linting4 branch August 8, 2026 04:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant