Open mamouneyya opened 3 years ago
1, SPM doesn't allow for arbitrary code evaluation so you can't really check if someone has set up the git hook. Perhaps if you use CocoaPods you can use the Podfile to validate that someone has githooks set up
2, Perhaps you could have a shared library, or scripts which are cloned during the repo strapping and are referenced from your Komondor scripts
1, SPM doesn't allow for arbitrary code evaluation so you can't really check if someone has set up the git hook. Perhaps if you use CocoaPods you can use the Podfile to validate that someone has githooks set up
Let's say we want to re-install them always regardless, how would you execute this automatically and where?
In a repo bootstrap shell script maybe?
Interested to hear any thought from the community on how to leverage this in a large team. We have so many separate packages that we would like to automate the process of linting / formatting for each one and without people doing any extra step(s) to setup or execute anything.
I know a server based solution might work better for this use case, but I'm still very interested in exploring any possibility to implement this on the client side, for the very reasons the author of this package listed (e.g. detecting errors as early as possible, having linting and formatting amended to each commit so we have cleaner history, etc.).
I can think of 2 problems right now:
Thanks a lot!