❯ jsonlint --quiet --compact --continue --no-duplicate-keys '**/*.json'
no files found
❯ echo $?
1
It would be amazing if there were an option to not have this return an error and instead to just continue on its merry way. We are using this utility as part of a general linting workflow in GitLab and sometimes we may run the utility without any json files to lint. We'd like to have it return the "no files found" message but instead return a 0 exit code.
It would be amazing if there were an option to not have this return an error and instead to just continue on its merry way. We are using this utility as part of a general linting workflow in GitLab and sometimes we may run the utility without any json files to lint. We'd like to have it return the "no files found" message but instead return a 0 exit code.