[
https://issues.apache.org/jira/browse/OFBIZ-11304?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17133295#comment-17133295
]
Aditya Sharma edited comment on OFBIZ-11304 at 6/11/20, 2:32 PM:
-----------------------------------------------------------------
I tried the rebase and checkout command with the pre-commit hook.
For both the commands, the hook doesn't event executes. We mainly use rebase to
rewrite a linear history and checkout for changing/creating the branch or
detaching the head at most. For all these actions, there is no new commit being
taking place which may invoke the pre-commit hook.
Is there anything that I might be missing?
was (Author: aditya.sharma):
I tried the rebase and checkout command with the pre-commit hook.
For both the commands, the hook doesn't event executes. We mainly use rebase to
rewrite a linear history and checkout for changing/creating the branch or
detaching the head at most. For all these, there is a new commit being taking
place which invokes the pre-commit hook.
Is there anything that I might be missing?
> Install a Checkstyle pre-push (on every committer machine?)
> -----------------------------------------------------------
>
> Key: OFBIZ-11304
> URL: https://issues.apache.org/jira/browse/OFBIZ-11304
> Project: OFBiz
> Issue Type: Sub-task
> Affects Versions: Trunk
> Reporter: Jacques Le Roux
> Priority: Minor
> Fix For: Upcoming Branch
>
>
> The ofbizTrunkFrameworkPlugins build fails when a lint error is detected by
> the check gradle task. It's "hard" to exactly know from where lint errors
> come among all still present.
> I think we should rely on a Checkstyle pre-commit hook like
> https://gist.github.com/davetron5000/37350 to complement
> tasks.checkstyleMain.maxErrors. This pre-commit hook prevents to commit when
> a lint error is present in the commit.
> Every committer would have it installed locally and the problem would be gone
> with some committers good will. I started a discussion about it at
> https://markmail.org/message/guxbsvdkzky7gtdx. Jacopo made the same
> proposition years ago: https://markmail.org/message/gkgmko4axj3vtnv3
--
This message was sent by Atlassian Jira
(v8.3.4#803005)