Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is there a way to skip the fmt/fix modules? #65

Closed
MarcFraioli opened this issue Jul 26, 2019 · 4 comments
Closed

Is there a way to skip the fmt/fix modules? #65

MarcFraioli opened this issue Jul 26, 2019 · 4 comments
Assignees

Comments

@MarcFraioli
Copy link

I don't want the build to reformat my code, is there a way to disable the use of go fmt and go fix? Thanks.

@raydac raydac self-assigned this Jul 26, 2019
@raydac
Copy link
Owner

raydac commented Jul 26, 2019

they are active in default so that try please add pair execution descriptors

<executions>
  <execution>
    <id>default-fix</id>
    <phase>none</phase>
  </execution>
  <execution>
    <id>default-fmt</id>
    <phase>none</phase>
  </execution>
</executions>

@raydac
Copy link
Owner

raydac commented Jul 26, 2019

I think it is a good idea to provide properties to skip such steps

raydac added a commit that referenced this issue Jul 27, 2019
…ion through project properties, name format `mvn.golang.<MOJO>.skip`
@MarcFraioli
Copy link
Author

Thanks Igor, putting it in phase "none" worked perfectly. I'll try the new properties as well if they're available.

@raydac
Copy link
Owner

raydac commented Jul 30, 2019

it is provided in release 2.3.3

@raydac raydac closed this as completed Jul 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants