You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ofbiz.apache.org by Yashwant Dhakad <ya...@hotwaxsystems.com> on 2020/12/26 10:33:27 UTC

Getting Error when push code changes to GitHub

Hello All,
I am getting an error while pushing changes to the GitHub repository for
the trunk. Do you have any idea what I am doing wrong? I run this command
"git push origin OFBIZ-10577" and Here is the error message:

> Task :compileJava UP-TO-DATE
> Task :compileGroovy UP-TO-DATE
> Task :processResources UP-TO-DATE
> Task :classes UP-TO-DATE
> Task :checkstyleMain
> Task :checkstyleMain FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':checkstyleMain'.
  Checkstyle files with violations: 126
  Checkstyle violations by severity: [error:327]


Kind Regards,
Yashwant Dhakad
Sr. Technical Consultant

*HotWax Systems*
*Enterprise open source experts*
cell: +91-9098240513
office: 0731-409-3684
http://www.hotwaxsystems.com

Re: Getting Error when push code changes to GitHub

Posted by Yashwant Dhakad <ya...@hotwaxsystems.com>.
Thanks, Girish, Now I am able to push code changes.

Kind Regards,
Yashwant Dhakad
Sr. Technical Consultant

*HotWax Systems*
*Enterprise open source experts*
cell: +91-9098240513
office: 0731-409-3684
http://www.hotwaxsystems.com


On Sat, Dec 26, 2020 at 4:30 PM Girish Vasmatkar <
girish.vasmatkar@hotwaxsystems.com> wrote:

> Hello Yashwant
>
> pre-commit hook is getting kicked in which runs checkstyleMain gradle task
> to check code compliance with the rules defined in checkstyle
> configuration. The error count is 327, which is probably more than the
> threshold defined in the build.gradle.
>
> tasks.checkstyleMain.maxErrors property governs the max threshold beyond
> which build will fail.
>
> Best Regards,
> Girish
>
>
> On Sat, Dec 26, 2020 at 4:03 PM Yashwant Dhakad <
> yashwant.dhakad@hotwaxsystems.com> wrote:
>
>> Hello All,
>> I am getting an error while pushing changes to the GitHub repository for
>> the trunk. Do you have any idea what I am doing wrong? I run this command
>> "git push origin OFBIZ-10577" and Here is the error message:
>>
>> > Task :compileJava UP-TO-DATE
>> > Task :compileGroovy UP-TO-DATE
>> > Task :processResources UP-TO-DATE
>> > Task :classes UP-TO-DATE
>> > Task :checkstyleMain
>> > Task :checkstyleMain FAILED
>>
>> FAILURE: Build failed with an exception.
>>
>> * What went wrong:
>> Execution failed for task ':checkstyleMain'.
>>   Checkstyle files with violations: 126
>>   Checkstyle violations by severity: [error:327]
>>
>>
>> Kind Regards,
>> Yashwant Dhakad
>> Sr. Technical Consultant
>>
>> *HotWax Systems*
>> *Enterprise open source experts*
>> cell: +91-9098240513
>> office: 0731-409-3684
>> http://www.hotwaxsystems.com
>>
>

Re: Getting Error when push code changes to GitHub

Posted by Girish Vasmatkar <gi...@hotwaxsystems.com>.
Hello Yashwant

pre-commit hook is getting kicked in which runs checkstyleMain gradle task
to check code compliance with the rules defined in checkstyle
configuration. The error count is 327, which is probably more than the
threshold defined in the build.gradle.

tasks.checkstyleMain.maxErrors property governs the max threshold beyond
which build will fail.

Best Regards,
Girish


On Sat, Dec 26, 2020 at 4:03 PM Yashwant Dhakad <
yashwant.dhakad@hotwaxsystems.com> wrote:

> Hello All,
> I am getting an error while pushing changes to the GitHub repository for
> the trunk. Do you have any idea what I am doing wrong? I run this command
> "git push origin OFBIZ-10577" and Here is the error message:
>
> > Task :compileJava UP-TO-DATE
> > Task :compileGroovy UP-TO-DATE
> > Task :processResources UP-TO-DATE
> > Task :classes UP-TO-DATE
> > Task :checkstyleMain
> > Task :checkstyleMain FAILED
>
> FAILURE: Build failed with an exception.
>
> * What went wrong:
> Execution failed for task ':checkstyleMain'.
>   Checkstyle files with violations: 126
>   Checkstyle violations by severity: [error:327]
>
>
> Kind Regards,
> Yashwant Dhakad
> Sr. Technical Consultant
>
> *HotWax Systems*
> *Enterprise open source experts*
> cell: +91-9098240513
> office: 0731-409-3684
> http://www.hotwaxsystems.com
>