Skip to content

feat: add standalone Checkstyle, dotenv, and kube linting - #430

Closed
zeitlinger wants to merge 1 commit into
mainfrom
codex/flint-v2-linter-capabilities
Closed

feat: add standalone Checkstyle, dotenv, and kube linting#430
zeitlinger wants to merge 1 commit into
mainfrom
codex/flint-v2-linter-capabilities

Conversation

@zeitlinger

@zeitlinger zeitlinger commented Jul 22, 2026

Copy link
Copy Markdown
Member

Blocked by #429

Summary

  • add standalone Checkstyle support using the curated JAR and Java runtime
  • add safe dotenv-linter checking and fixing
  • add report-only kube-linter support for selected Kubernetes manifests
  • add tool pins, generated docs, and focused end-to-end cases

Stacked on the mise registry compatibility PR. This PR does not change a consumer repository yet.

Validation

  • cargo fmt --all -- --check
  • mise exec -- cargo clippy --all-targets -- -D warnings
  • mise exec -- cargo test --bin flint (293 passed; local test used a temporary no-op dotnet executable)
  • FLINT_CASES=checkstyle cargo test -q --test e2e cases
  • FLINT_CASES=dotenv-linter cargo test -q --test e2e cases
  • FLINT_CASES=kube-linter cargo test -q --test e2e cases
  • mise run generate
  • mise run lint:fix

@zeitlinger
zeitlinger force-pushed the codex/flint-v2-mise-compat branch from 2eabd73 to ef79e90 Compare July 23, 2026 09:27
@zeitlinger
zeitlinger force-pushed the codex/flint-v2-linter-capabilities branch from 21e7bd6 to 4f127d1 Compare July 23, 2026 09:31
@zeitlinger
zeitlinger force-pushed the codex/flint-v2-mise-compat branch from ef79e90 to 3aadccc Compare July 24, 2026 08:05
Base automatically changed from codex/flint-v2-mise-compat to main July 24, 2026 09:44
Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
@zeitlinger

Copy link
Copy Markdown
Member Author

Split into three focused draft PRs for easier review:

@zeitlinger zeitlinger closed this Jul 24, 2026
@zeitlinger
zeitlinger deleted the codex/flint-v2-linter-capabilities branch July 24, 2026 12:50
zeitlinger added a commit that referenced this pull request Jul 27, 2026
Blocked by #447

## Summary

- add standalone Checkstyle support using the curated JAR and Java
runtime
- treat Checkstyle warning/error output as a failed check
- add generated documentation, tool pins, and focused end-to-end cases

Split from #430 so the Checkstyle integration can be reviewed
independently.

## Validation

- `mise run generate`
- `mise run lint:fix`
- `mise exec -- cargo test`

---------

Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
zeitlinger added a commit that referenced this pull request Jul 27, 2026
## Summary

- add report-only kube-linter support for explicitly selected Kubernetes
manifests
- default to conventional Kubernetes directories while excluding
unrelated YAML and Compose files
- add configuration support, generated documentation, tool pins, and
focused tests

Split from #430 so the kube-linter integration can be reviewed
independently.

## Validation

- `mise run generate`
- `mise run lint:fix`
- `mise exec -- cargo test`

Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
zeitlinger added a commit that referenced this pull request Jul 27, 2026
## Summary

- add dotenv-linter checking for explicit `.env`-style files
- add serialized fixing without backup files or secret-bearing output
- add generated documentation, tool pins, and focused end-to-end cases

Split from #430 so the dotenv-linter integration can be reviewed
independently.

## Validation

- `mise run generate`
- `mise run lint:fix`
- `mise exec -- cargo test`

---------

Signed-off-by: Gregor Zeitlinger <gregor.zeitlinger@grafana.com>
Co-authored-by: Martin Costello <martin@martincostello.com>
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