Replies: 4 comments 9 replies
-
|
I actually think even moving to a monorepo behooves us to use commit message linting. |
Beta Was this translation helpful? Give feedback.
-
|
I don't see the benefit of commit message linting to be honest |
Beta Was this translation helpful? Give feedback.
-
|
Don't have strong feelings about linting or not. I think linting helps with the commit messages having a predictable structure when someone is reviewing it and rails people into respecting the project's conventions which I don't see as a bad thing. On the other hand what's really important imo is that whoever is reviewing makes sure whatever commits are being merged have messages that are relevant outside of the context of the PR and that they are easy to parse. Keeping the current dapp convention but adding a context like princeton metioned makes the most sense to me. So something like If we end up following a convention for naming our commits I don't see how linting would be detrimental. I also don't see a reason not to have a project convention for commit messages as it helps keeping things consistent with rotating contributors/reviewers. tl;dr linting or not I believe having a convention for naming the commits is something we'd want to make the git history easy to parse. Reviewer has to ensure commit messages are relevant outside of the context of a PR, no tool solves this. Assuming we decide in favour of having a commit message convention I don't see how linting would be detrimental as it just enforces a convention you want to have. |
Beta Was this translation helpful? Give feedback.
-
|
one downside to commit linting I've encountered is that I can't use any git GUIs to make commits. sometimes I want to use VSCode or Github Desktop, so it's a minor nuissance in that regard. I also recall when I was first contributing running into a couple issues with the commit linting on my setup (Windows+WSL). Onboarding new devs could be a bit more seamless if we dropped commit linting from our stack |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Looking at moving
dappandcontractsto monorepo, I see that the dapp project enforces a pre-commit hook using husky, applying linting rules to the code but also the commit message.It doesn't make sense to keep that as a dapp-exclusive thing. We need the same commit message linting for the entire monorepo, not on a per-project basis, obviously.
So as a group, we need to decide, do we remove commit message linting from the monorepo for now, or use the rules from the dapp project? Personally, I think we should ditch commit message linting for now. We can always introduce it later if we think it'll add value.
What do you think? Feedback welcome... 👍 for removing commit message linting or 👎 add it to the monorepo.
Beta Was this translation helpful? Give feedback.
All reactions