Skip to content

Manual formatting/validating misses files #27

Closed
@djcooke

Description

@djcooke

Hello,

My build was failing due to incorrectly formatted code in files under .../src/it/java/. When I manually ran the formatter (mvn git-code-format:format-code -DglobPattern=**/*), it did not format these files. When I manually ran the validator (mvn git-code-format:validate-code-format -DglobPattern=**/*), it did not check these files, and completed successfully.

I was able to get around the issue by changing each of the affected files and then committing them. The formatter run by pre-commit hook did format the affected files.

My plugin config from pom.xml:

            <plugin>
              <groupId>com.cosium.code</groupId>
              <artifactId>maven-git-code-format</artifactId>
              <version>1.32</version>
              <executions>
                <execution>
                  <id>install-formatter-hook</id>
                  <goals>
                    <goal>install-hooks</goal>
                  </goals>
                </execution>
                <execution>
                  <id>validate-code-format</id>
                  <goals>
                    <goal>validate-code-format</goal>
                  </goals>
                </execution>
              </executions>
            </plugin>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions