ducminh-phan / reformat-gherkin

Formatter for Gherkin language
MIT License
24 stars 13 forks source link

Prevent Gherkin from using feature contents as paths #37

Closed rayjolt closed 4 years ago

rayjolt commented 4 years ago

Subclass the gherkin-official TokenScanner class so that it doesn't treat the feature contents as a path on the file system. This is necessary to prevent "path too long for Windows" errors for feature files larger than 32KB.

Also pin the gherkin-official version to 4.1.3, as we now depend on Gherkin internals.

Fixes #34

rayjolt commented 4 years ago

It looks like the Codacy check failed because the new test files were too big for their diff engine.