SchwarzIT / spectral-intellij-plugin

IntelliJ plugin for continuous OpenAPI linting using the Spectral OpenAPI linter
Apache License 2.0
19 stars 6 forks source link

Match pattern not working with Windows path style #102

Closed tintin92350 closed 1 year ago

tintin92350 commented 1 year ago

Describe the bug When using Windows path style in the Included path patterns field as below, it doesn't find the file.

Path : api-specifications\openapi\spec-v1.yaml

To Reproduce

  1. Open spectral settings
  2. Enter the following path : api-specifications\openapi\spec-v1.yaml or any path to existing specification but with backslash
  3. Close your specification file and re-open it
  4. Spectral doesn't lint the file

Expected behavior It should take backslash as normal slash in Windows context and find the two paths in the same way:

api-specifications/openapi/spec-v1.yaml
api-specifications\openapi\spec-v1.yaml

Environment:

markbrockhoff commented 1 year ago

Hi @tintin92350 thanks for the report. I'll close this issue as it's related to #89. Please feel free to follow the progress on improved Windows support there.