Closed nplowman closed 6 years ago
You can safely remove it, but you will lose colors in terminal when running without --tty. So ideally I would remove it conditionally using an extra parameter to the fin codeclimate command, like in fin codeclimate --no-tty
I guess it's better to steal is_tty
function from fin
is_tty ()
{
[[ "$(/usr/bin/tty || true)" != "not a tty" ]]
}
and use it conditionally to have that parameter or not.
Feel free to create a pull request. addons repository is very democratic.
I put in a PR for review: https://github.com/docksal/addons/pull/8
Merged. Thanks!
When I attempt to run 'fin codeclimate' from a git hook, I get the following error:
the input device is not a TTY
Considering that running code sniffers from a pre-commit hook is a pretty common use case, this is a pretty big issue.
It looks like if I remove the -tty option here, it resolves the issue:
Is this something that can be safely removed so that it plays nicely with git hooks? Or possibly another work-around for this issue?