All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.cflint.CFLintStats Maven / Gradle / Ivy

Go to download

A static code analysis tool for ColdFusion (in the spirit of FindBugs and Lint). With CFLint, you are able to analyze your ColdFusion code base for code violations.

There is a newer version: 1.5.0
Show newest version
package com.cflint;

import java.math.BigInteger;

public class CFLintStats {

	// Epoch timestamp for XML format output
	private long timestamp = System.currentTimeMillis() / 1000L;
	// Number of files
	private long fileCount;
	// Number of lines
	private BigInteger totalLines = BigInteger.ZERO;
	// Bug counts for current execution
	private BugCounts counts = new BugCounts();

	public CFLintStats() {
		super();
	}

	public CFLintStats(long timestamp, long fileCount, BigInteger totalLines) {
		super();
		this.timestamp = timestamp;
		this.fileCount = fileCount;
		this.totalLines = totalLines;
	}

	public CFLintStats(long timestamp, long fileCount, BigInteger totalLines, BugCounts counts) {
		super();
		this.timestamp = timestamp;
		this.fileCount = fileCount;
		this.totalLines = totalLines;
		this.counts = counts;
	}
	
	public void addFile(long numberOfLines){
		fileCount++;
		totalLines = totalLines.add(BigInteger.valueOf(numberOfLines));
	}

	public long getTimestamp() { return timestamp; }

	public long getFileCount() { return fileCount; }

	public BigInteger getTotalLines() {
		return totalLines;
	}

	public BugCounts getCounts() { return counts; }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy