stan icon indicating copy to clipboard operation
stan copied to clipboard

`file = "relative_path_to_excluded_file"` appears to be OS-specific

Open mpilgrem opened this issue 2 years ago • 0 comments

On Windows, I tried:

# Anti-pattern: Slow 'length' for Text
[[check]]
  id = "STAN-0208"
  file = "src/Stack/PackageDump.hs"
  type = "Exclude"

but that did not exclude what I wanted to be excluded. I had to specify:

# Anti-pattern: Slow 'length' for Text
[[check]]
  id = "STAN-0208"
  file = "src\\Stack\\PackageDump.hs"
  type = "Exclude"

I think that means that file-specific exclusions have to be stated twice in each .stan.toml file that is going to be used on both Windows and Unix-like operating systems. I assume the same is true for directory-specific exclusions.

It would be good if they only had to be specified once.

mpilgrem avatar Oct 18 '23 23:10 mpilgrem