Skip to content

fix(lint): stop guard look-ahead at #endif and drop FASTLED_NO_PINMAP amnesty (#5187) - #5209

Merged
zackees merged 1 commit into
masterfrom
grind/5187-no-pinmap-amnesty
Nov 9, 2026
Merged

zackees merged 1 commit into
masterfrom
grind/5187-no-pinmap-amnesty

Conversation

@zackees

@zackees zackees commented Nov 9, 2026

Copy link
Copy Markdown
Member

Closes #5187

The driver-enable-define checker's look-ahead now stops at #endif/#else/#elif, so includes after a closed guard are not blamed on it. The global FASTLED_NO_PINMAP amnesty line is removed, so future #ifndef FASTLED_NO_PINMAP guards around platform includes are flagged.

Verified: new tests fail on old code, all 9 pass with fix (incl. test_shipped_tree_has_no_violations); bash lint green.

@coderabbitai

coderabbitai Bot commented Nov 9, 2026

Copy link
Copy Markdown

Warning

Review limit reached

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

Next included review available in 28 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 8 included reviews currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between e93cf31 and 4281599.

Files selected for processing: 3

  • ci/lint_cpp/driver_enable_define_amnesty.txt
  • ci/lint_cpp/driver_enable_define_checker.py
  • ci/tests/test_driver_enable_define_checker.py
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

@fastled-project-sync fastled-project-sync Bot moved this to Triage in FastLED Tracker Nov 9, 2026
@github-actions github-actions Bot added sanitized Title, body and conversation screened; review text requires separate screening. and removed sanitized Title, body and conversation screened; review text requires separate screening. labels Nov 9, 2026
@zackees
zackees added this pull request to the merge queue Nov 9, 2026
Merged via the queue into master with commit 22789a8 Nov 9, 2026
127 of 128 checks passed
@fastled-project-sync fastled-project-sync Bot moved this from Triage to Done in FastLED Tracker Nov 9, 2026
@zackees
zackees deleted the grind/5187-no-pinmap-amnesty branch November 17, 2026 07:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

sanitized Title, body and conversation screened; review text requires separate screening.

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

follow-up(#5156): FASTLED_NO_PINMAP amnesty hides future driver-include guards

1 participant