Skip to content

Refactor banned-term scanning to use visible HTML text#7

Open
harbourviewcompany-create wants to merge 1 commit into
mainfrom
codex/refactor-banned-term-scanning-in-check-site.js
Open

Refactor banned-term scanning to use visible HTML text#7
harbourviewcompany-create wants to merge 1 commit into
mainfrom
codex/refactor-banned-term-scanning-in-check-site.js

Conversation

@harbourviewcompany-create
Copy link
Copy Markdown
Owner

Motivation

  • Ensure banned-term matching operates on what a user actually sees rather than raw markup to avoid false positives from comments, scripts, or styles.
  • Improve robustness by normalizing extracted text before applying existing patterns so CI checks are more accurate without changing behavior.

Description

  • Added decodeHtmlEntities to decode common named entities and numeric character references in extracted text.
  • Added extractVisibleTextFromHtml which strips HTML comments and <script>/<style> blocks, removes tags, decodes entities, and collapses whitespace.
  • Switched banned-term checks to run patterns against the extracted visibleText instead of the raw html string while keeping bannedPatterns and the failure message format unchanged.

Testing

  • Ran node scripts/check-site.js locally and it completed successfully with Static site check passed..
  • No other automated tests were modified or run as part of this change.

Codex Task

@chatgpt-codex-connector
Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 20, 2026

Warning

Rate limit exceeded

@harbourviewcompany-create has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 59 minutes and 12 seconds before requesting another review.

You’ve run out of usage credits. Purchase more in the billing tab.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: f712d282-01b2-4a49-a552-7db1c06549c2

📥 Commits

Reviewing files that changed from the base of the PR and between 6e00de5 and 46bc2f4.

📒 Files selected for processing (1)
  • scripts/check-site.js

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 and usage tips.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 20, 2026

Deploy Preview for wurx-otta ready!

Name Link
🔨 Latest commit 46bc2f4
🔍 Latest deploy log https://app.netlify.com/projects/wurx-otta/deploys/6a0d224f1a1fa00008dd0b33
😎 Deploy Preview https://deploy-preview-7--wurx-otta.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link
Copy Markdown

netlify Bot commented May 20, 2026

Deploy Preview for wurx-can ready!

Name Link
🔨 Latest commit 46bc2f4
🔍 Latest deploy log https://app.netlify.com/projects/wurx-can/deploys/6a0d224fa1488d0008278618
😎 Deploy Preview https://deploy-preview-7--wurx-can.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant