You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nice tool! I succesfully set up some useful hooks using it ;)
I tried to set up pre commit hook to run swiftlint which I got installed globally:
"pre-commit": [ "swiftlint" ]
The problem is the hook doesn't exit when project has a lot of warnings. When I modify swiftlint to execute it against a single file (which has less number of warnings) it exits normally. Swiftlint is working correctly when running directly from terminal. It is likely caused by shellOut in runner.swift script
The text was updated successfully, but these errors were encountered:
Yeah it works that way.
But I'd prefer that script just prints out warnings instead of failing. I'm afraid hooks are going to freeze if any script produce huge number of logs
Hey,
Nice tool! I succesfully set up some useful hooks using it ;)
I tried to set up pre commit hook to run
swiftlint
which I got installed globally:The problem is the hook doesn't exit when project has a lot of warnings. When I modify swiftlint to execute it against a single file (which has less number of warnings) it exits normally. Swiftlint is working correctly when running directly from terminal. It is likely caused by
shellOut
inrunner.swift
scriptThe text was updated successfully, but these errors were encountered: