Skip to content

file = "relative_path_to_excluded_file" appears to be OS-specific #531

@mpilgrem

Description

@mpilgrem

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions