Skip to content

docs: add canonical feature-flag list to copilot-instructions to catch misspellings#5487

Merged
softhack007 merged 4 commits intomainfrom
copilot/add-checking-misspelled-flags
Apr 8, 2026
Merged

docs: add canonical feature-flag list to copilot-instructions to catch misspellings#5487
softhack007 merged 4 commits intomainfrom
copilot/add-checking-misspelled-flags

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Apr 8, 2026

Misspelled WLED_ENABLE_* / WLED_DISABLE_* flags are silently ignored by the preprocessor, causing features to be incorrectly included or excluded with no compiler warning (e.g. WLED_IR_DISABLE instead of WLED_DISABLE_INFRARED).

Change

  • Adds a Verify feature-flag names rule to the General Guidelines section of .github/copilot-instructions.md.
  • Embeds the complete canonical suffix lists for both WLED_DISABLE_* and WLED_ENABLE_*, derived directly from the codebase, so the agent can immediately identify any unrecognised flag as a likely typo and suggest the correct spelling.

Agent-Logs-Url: https://github.com/wled/WLED/sessions/9679ab9c-e696-4b45-a4f7-273717ef15c6

Co-authored-by: softhack007 <91616163+softhack007@users.noreply.github.com>
@softhack007
Copy link
Copy Markdown
Member

@coderabbitai review.

additionally, please check if the wording can be more concise without becoming less efficient.

@coderabbitai

This comment was marked as outdated.

Comment thread .github/copilot-instructions.md Outdated
Updated feature-flag names and their descriptions for correctness.
@wled wled deleted a comment from coderabbitai Bot Apr 8, 2026
Updated the list of WLED_DISABLE_* flags to include 'FILESYSTEM'.
@softhack007 softhack007 merged commit 48b27d1 into main Apr 8, 2026
29 checks passed
@softhack007 softhack007 deleted the copilot/add-checking-misspelled-flags branch April 8, 2026 21:05
pcmihnea pushed a commit to pcmihnea/WLED that referenced this pull request Apr 13, 2026
…h misspellings (wled#5487)

Misspelled WLED_ENABLE_* / WLED_DISABLE_* flags are silently ignored by the preprocessor, causing features to be incorrectly included or excluded with no compiler warning (e.g. WLED_IR_DISABLE instead of WLED_DISABLE_INFRARED).

This PR adds an AI rule that enforces checking of feature flags against a curated list.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: softhack007 <91616163+softhack007@users.noreply.github.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.

2 participants