.codiceignore
The .codiceignore
file is used to specify .java
files and directories that should be ignored by Codice so it won't create or maintain test. Below are the possible options and patterns you can use in the .codiceignore
file.
Syntax
Each line in the
.codiceignore
file specifies a pattern.Blank lines are ignored.
Lines starting with
#
are treated as comments.
Patterns
Ignoring .java
Files
.java
Files*.java
: Ignore all.java
files.
Ignoring .java
Files in Specific Directories
.java
Files in Specific Directoriessrc/**/*.java
: Ignore all.java
files in thesrc
directory and its subdirectories.src/main/java/org/springframework/samples/petclinic/model/*.java
: Ignore all.java
files in thesrc/main/java/org/springframework/samples/petclinic/model
directory.
Ignoring Specific .java
Files
.java
FilesNotIgnore.java
: Ignore allNotIgnore.java
any directory.src/main/java/org/springframework/samples/petclinic/model/NotIgnore.java
: Ignore theNotIgnore.java
file in thesrc/main/java/org/springframework/samples/petclinic/model
directory.
Examples
Last updated