Skip to content

ReturnCode always 0 when run against multiple globs #117

Description

@robellegate

If you use multiple glob patterns, write-good will always return 0 even if there's grammar mistakes.

This is what happens when using multiple globs, *.md and ./docs/*.md:
Example

$ write-good *.md ./docs/*.md --parse --no-passive --no-adverb --no-tooWordy --no-cliches
README.md:14:29:"various" is a weasel word
README.md:15:6:"and" is repeated






$ echo $?
0

Whereas this is what happens when run with only one glob, *.md:

$ write-good *.md --parse --no-passive --no-adverb --no-tooWordy --no-cliches
README.md:14:29:"various" is a weasel word
README.md:15:6:"and" is repeated
$ echo $?
255

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions