Skip to content

pixee/codetf-java-bindings

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code Transformation Format - Java Bindings

This library provides domain objects for interacting with Code Transformation Format (CodeTF) files.

Features

These objects offer the following attributes:

  • Decorated with Jackson annotations
  • Sanity checking CodeTF requirements
  • Immutability
  • JavaDocs to help you understand what data is expected

Adding to your project

To deserialize a CodeTF file using these objects, simply deserialize with Jackson's typical APIs:

Gradle

implementation("io.codemodder:codetf-java:4.2.1")

Maven

<dependency>
  <groupId>io.codemodder</groupId>
  <artifactId>codetf-java</artifactId>
  <version>4.2.1</version>
</dependency>

Using in your project

ObjectMapper mapper = new ObjectMapper();
CodeTFReport report = mapper.readValue(codetfFile, CodeTFReport.class);

Running Formatter

To run the autoformatter, run the following command:

mvn fmt:format