Skip to content

docs(ui): add lint/format check to AGENTS.md#19254

Merged
sachaudh merged 5 commits intomasterfrom
chore/ui-agents-lint-check
Mar 3, 2026
Merged

docs(ui): add lint/format check to AGENTS.md#19254
sachaudh merged 5 commits intomasterfrom
chore/ui-agents-lint-check

Conversation

@sachaudh
Copy link
Contributor

@sachaudh sachaudh commented Mar 2, 2026

Description

Add explicit instructions to ui/AGENTS.md to check IDE diagnostics and formatting after making changes. This prevents style check CI failures (like prettier violations) from being missed during development.

User-facing documentation

Testing and quality

  • the change is production ready: the change is GA, or otherwise the functionality is gated by a feature flag
  • CI results are inspected

Automated testing

  • added unit tests
  • added e2e tests
  • added regression tests
  • added compatibility tests
  • modified existing tests

How I validated my change

Documentation-only change to AI agent instructions. No functional code affected.

@openshift-ci
Copy link

openshift-ci bot commented Mar 2, 2026

Skipping CI for Draft Pull Request.
If you want CI signal for your change, please convert it to an actual PR.
You can still manually trigger a test run with /test all

Style check failures were being missed because there was no explicit
instruction to verify formatting after making changes.

Signed-off-by: Saif Chaudhry <schaudhr@redhat.com>
@sachaudh sachaudh force-pushed the chore/ui-agents-lint-check branch from 414da1c to 27a2c30 Compare March 2, 2026 17:27
@rhacs-bot
Copy link
Contributor

rhacs-bot commented Mar 2, 2026

Images are ready for the commit at 5c13832.

To use with deploy scripts, first export MAIN_IMAGE_TAG=4.11.x-217-ga57c1fe8d0.

npx prettier --check doesn't use the project's ESLint config which
includes prettier via eslint-plugin-prettier. Replace with npx eslint
run from apps/platform/ where the config and plugins resolve correctly.

AI-assisted

Signed-off-by: Saif Chaudhry <schaudhr@redhat.com>
@sachaudh sachaudh marked this pull request as ready for review March 3, 2026 15:14
@sachaudh sachaudh requested a review from a team as a code owner March 3, 2026 15:14
@codecov
Copy link

codecov bot commented Mar 3, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 49.62%. Comparing base (5b00d69) to head (ec214a8).
⚠️ Report is 9 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master   #19254      +/-   ##
==========================================
- Coverage   49.64%   49.62%   -0.02%     
==========================================
  Files        2679     2679              
  Lines      202130   202154      +24     
==========================================
- Hits       100339   100322      -17     
- Misses      94315    94355      +40     
- Partials     7476     7477       +1     
Flag Coverage Δ
go-unit-tests 49.62% <ø> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

sachaudh added 3 commits March 3, 2026 08:33
Disable import/namespace and import/no-cycle rules (same as
lint:fast-dev) for per-file linting. These rules dominate lint time
and skipping them keeps 1-200 files under 20s vs 2min+.

AI-assisted

Signed-off-by: Saif Chaudhry <schaudhr@redhat.com>
Reuse existing lint:fast-dev script with -- <file> instead of raw
npx eslint with inline rule overrides. Same behavior, cleaner command.

AI-assisted

Signed-off-by: Saif Chaudhry <schaudhr@redhat.com>
Include the auto-fix variant so agents can fix lint/prettier issues
automatically on changed files.

AI-assisted

Signed-off-by: Saif Chaudhry <schaudhr@redhat.com>
@sachaudh sachaudh merged commit 04b32f1 into master Mar 3, 2026
92 checks passed
@sachaudh sachaudh deleted the chore/ui-agents-lint-check branch March 3, 2026 20:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants