Skip to content

pturczyk/ymlint-maven-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Travis CI Build Status

YAML lint maven plugin

Performs YAML files validation using the org.yaml.snakeyaml library

Using the plugin

In order to enable the YAML file validation add the following section to your pom.xml file

<plugin>
    <groupId>io.github.pturczyk</groupId>
    <artifactId>ymlint-maven-plugin</artifactId>
    <version>...</version>
    
    <!-- optional -->
    <configuration>
        <yamlPaths>
          <!-- include src/main/resources/configuration.yml --> 
          <yamlPath>src/main/resources/configuration.yml</ymlPath>
          <!-- include all yaml files from src/test/resources directory and subdirectories -->
          <yamlPath>src/test/resources</ymlPath> 
        </yamlPaths>
    </configuration>
    
   <executions>
        <execution>
            <phase>validate</phase>
            <goals>
                <goal>check</goal>
            </goals>
        </execution>
    </executions>
</plugin>

About

YAML lint / validator maven plugin

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages