Skip to content

Cross-platform path separators #5

@Sharparam

Description

@Sharparam

When having a lint config like:

{
  whitelist_globals: {
    ["spec/"]: {
      "it", "describe", "setup", "teardown", "before_each", "after_each",
      "pending"
    }
  }
}

It works correctly on Linux, but the rules are not applied on Windows since it uses a backslash for path separator instead of regular slash.

It would be ideal if a slash works on all platforms, similar to luacheck's configuration file.

The same issue occurs with regular moonc, is it perhaps an upstream issue?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions