-
-
Notifications
You must be signed in to change notification settings - Fork 50
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support disabling inspections in a specific line with a comment #444
Comments
I realized it is already possible to disable a specific observation using the # .stan.toml
ignore = [
{ id = "OBS-STAN-0006-NO6o1e-42:26" },
{ id = "OBS-STAN-0101-NO6o1e-11:12" },
{ id = "OBS-STAN-0103-NO6o1e-34:12" },
{ id = "OBS-STAN-0103-YrzpQi-26:19" },
{ id = "OBS-STAN-0103-YrzpQi-26:57" },
{ id = "OBS-STAN-0105-NO6o1e-46:13" },
{ id = "OBS-STAN-0105-NO6o1e-46:24" },
] But the problem with this is that the observation ID depends on the line number and this requires manual bookkeeping if any line is removed or added before that line. So an option to ignore a line with a comment before or in that line would be more convenient. |
commenting in addition to thumbsup for visibility, i think this is an essential feature for a static analyzer, especially with the recent inclusion of STAN in HLS |
I agree with this. I suspect we should probably learn from how
I don't know where to start to add this feature. The first step would be to determine in which part of the code it belongs. |
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:
or
Is it feasible to implement something like this?
The text was updated successfully, but these errors were encountered: