Skip to content

Allow Steep annotation - #820

Open
TonyCTHsu wants to merge 1 commit into
standardrb:mainfrom
TonyCTHsu:allow-steep-annotation
Open

Allow Steep annotation#820
TonyCTHsu wants to merge 1 commit into
standardrb:mainfrom
TonyCTHsu:allow-steep-annotation

Conversation

@TonyCTHsu

@TonyCTHsu TonyCTHsu commented Jul 9, 2026

Copy link
Copy Markdown

Summary

#709 added AllowRBSInlineAnnotation to Layout/LeadingCommentSpace so RBS inline type annotations (#: ...) aren't flagged. This PR follows that same precedent for Steep's equivalent inline annotation syntax (#: ..., #$ ...), by turning on RuboCop's AllowSteepAnnotation option for the same cop.

Layout/LeadingCommentSpace already supports AllowRBSInlineAnnotation
(see standardrb#709) for RBS inline type annotations (#: ...). RuboCop also
ships an AllowSteepAnnotation option for the equivalent Steep syntax
(#: ..., #$ ...), which base.yml doesn't enable yet.
TonyCTHsu added a commit to DataDog/dd-trace-rb that referenced this pull request Jul 9, 2026
Filed standardrb/standard#820 to add AllowSteepAnnotation: true to
standard's own base config, following the precedent set by RBS support
in standardrb/standard#709. If merged and released, we can drop our
Layout/LeadingCommentSpace override here.
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