com.googlecode.jslint4java.cli.Flags Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jslint4java Show documentation
Show all versions of jslint4java Show documentation
A Java wrapper for Douglas Crockford's wonderful JSLint tool.
The newest version!
package com.googlecode.jslint4java.cli;
import java.nio.charset.Charset;
import java.util.ArrayList;
import java.util.List;
import com.beust.jcommander.Parameter;
/**
* Command line flags for jslint4java.
*
* @see JSLintFlags
*/
class Flags {
@Parameter(names = "--encoding", description = "Specify the input encoding", converter = CharsetConverter.class)
public Charset encoding;
@Parameter(names = "--jslint", description = "Specify an alternative version of jslint.js")
public String jslint;
@Parameter(names = "--help", description = "Display usage information")
public boolean help;
@Parameter(names = "--report", description = "Display report in different formats: plain, xml, junit, checkstyle and report")
public String report;
@Parameter(names = "--timeout", description = "Maximum number of seconds JSLint can run for")
public long timeout = 0;
@Parameter(names = "--version", description = "Show the version of JSLint in use.")
public boolean version;
/**
* All remaining files on the command line. The ones that actually need
* linting.
*/
@Parameter(description = "file.js ...")
public List files = new ArrayList();
}