kowainik / kowainik/stan

Support disabling inspections in a specific line with a comment

Open
#444 3 comments 1 reaction 0 assignees View on GitHub
Dominant language
Haskell
Stars
597
Forks
53
PR merge metrics
No merged PRs in 30d

Description

I want to disable an inspection for a specific line or a function. For example, the user could do this with a comment such as:
```
-- stan-disable-next-line STAN-0006
mapCyclic = zipWith id . cycle
```
or
```
mapCyclic = zipWith id . cycle -- stan-disable-line STAN-0006
```
Is it feasible to implement something like this?

Contributor guide

Open the contributing guide

Research direction

No files, tests, or entry points are named. Start by tracing how Stan handles source comments and associates inspections with lines or functions, then define the behavior for the proposed stan-disable-next-line and stan-disable-line forms. Done should include support for the requested syntax and tests covering STAN-0006 suppression.

Written by the indexing model from the issue text.

Assessment

Tech stack
haskell
Domain
tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.