kowainik / stan

🕵️ Haskell STatic ANalyser
https://kowainik.github.io/projects/stan
Mozilla Public License 2.0
562 stars 48 forks source link

Config confusion #445

Closed Boarders closed 2 years ago

Boarders commented 2 years ago

I am trying to use Stan and I would like to disable certain rules (for example id:STAN-0206). I tried various ways but I cannot figure out from the documentation or examples how you do this. I think it would be useful to explain this in the documentation as I couldn't make any guess for how to do it.

ilkecan commented 2 years ago

Hi. This section describes how to configure Stan using TOML. There is also cli-to-toml subcommand that might be useful.

I think what you want can be configured as

# .stan.toml
check = [
  { id = "STAN-0206", scope = "all", type = "Exclude" },
]