Codice Docs
  • Overview
  • Configuration Guide
    • Application Configuration
    • .codiceignore
  • Analytics
  • Security and Privacy
Powered by GitBook
On this page
  • Syntax
  • Patterns
  • Examples
  1. Configuration Guide

.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: Ignore all .java files.

Ignoring .java Files in Specific Directories

  • src/**/*.java: Ignore all .java files in the src directory and its subdirectories.

  • src/main/java/org/springframework/samples/petclinic/model/*.java: Ignore all .java files in the src/main/java/org/springframework/samples/petclinic/model directory.

Ignoring Specific .java Files

  • NotIgnore.java: Ignore all NotIgnore.java any directory.

  • src/main/java/org/springframework/samples/petclinic/model/NotIgnore.java: Ignore the NotIgnore.java file in the src/main/java/org/springframework/samples/petclinic/model directory.

Examples

# Ignore all .java files
*.java

# Ignore all .java files in the src directory and its subdirectories
src/**/*.java

# Ignore all files in the src/main/java/org/springframework/samples/petclinic/model directory
src/main/java/org/springframework/samples/petclinic/model/*

# Ignore all .java files in the src/main/java/org/springframework/samples/petclinic/model directory
src/main/java/org/springframework/samples/petclinic/model/*.java
PreviousApplication ConfigurationNextAnalytics

Last updated 2 months ago