You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
unsafe_type_assertion column/line uses type-node position instead of expression-start #25
unsafe_type_assertion reports line and column from node.type.getStart(sourceFile) (the any keyword position), while all other AST assertion types (unsafe_double_type_assertion, unsafe_object_assertion, unsafe_array_assertion) use node.getStart() (the start of the entire AsExpression).
Impact
For single-line value as any, the difference is minor (column points to any instead of value)
For multiline value as\n any, the line differs — unsafe_type_assertion reports line 2, other assertion types would report line 1
If consumers use column for editor annotations or sorting, values won't be directly comparable across assertion types
Suppression behavior is unaffected (uses expression-start line for all branches)
Location
ai-slop-detector.ts:244-259
Resolution
Align unsafe_type_assertion to use node.getStart() like the other assertion types, or document the intentional difference if multiline accuracy is preferred.
#23 - feat: detect unsafe TypeScript type assertions via AST (issue #22) [open]
📝 Issue Planner
Check the box below or use the @coderabbitai plan command to generate an implementation plan and prompts that you can use with your favorite coding assistant.
Create Plan
🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your .coderabbit.yaml:
issue_enrichment:
auto_enrich:
enabled: false
💬 Have feedback or questions? Drop into our discord!
Activity
coderabbitai commentedon Jul 27, 2026
🔗 Related PRs
#23 - feat: detect unsafe TypeScript type assertions via AST (issue
#22) [open]📝 Issue Planner
Check the box below or use the
@coderabbitai plancommand to generate an implementation plan and prompts that you can use with your favorite coding assistant.🧪 Issue enrichment is currently in open beta.
You can configure auto-planning by selecting labels in the issue_enrichment configuration.
To disable automatic issue enrichment, add the following to your
.coderabbit.yaml:💬 Have feedback or questions? Drop into our discord!