api / org.gradle.plugins.javascript.jshint / JsHint

JsHint

open class JsHint : SourceTask

Constructors

<init>

JsHint()

Functions

doJsHint

open fun doJsHint(): Unit

getEncoding

open fun getEncoding(): String

getJsHint

open fun getJsHint(): FileCollection

getJsonReport

open fun getJsonReport(): File

getRhinoClasspath

open fun getRhinoClasspath(): FileCollection

setEncoding

open fun setEncoding(encoding: String): Unit

setJsHint

open fun setJsHint(jsHint: FileCollection): Unit

Sets jshint file.

open fun setJsHint(jsHint: Any): Unit

setJsonReport

open fun setJsonReport(jsonReport: File): Unit

Sets JSON report file.

open fun setJsonReport(jsonReport: Any): Unit

setRhinoClasspath

open fun setRhinoClasspath(rhinoClasspath: FileCollection): Unit

Sets Rhino classpath.

open fun setRhinoClasspath(rhinoClasspath: Any): Unit

Inherited Functions

exclude

open fun exclude(vararg excludes: String): SourceTask
open fun exclude(excludes: MutableIterable<String>): SourceTask
open fun exclude(excludeSpec: Spec<FileTreeElement>): SourceTask
open fun exclude(excludeSpec: Closure<Any>): SourceTask

{@inheritDoc}

getExcludes

open fun getExcludes(): MutableSet<String>

{@inheritDoc}

getIncludes

open fun getIncludes(): MutableSet<String>

{@inheritDoc}

getSource

open fun getSource(): FileTree

Returns the source for this task, after the include and exclude patterns have been applied. Ignores source files which do not exist.

include

open fun include(vararg includes: String): SourceTask
open fun include(includes: MutableIterable<String>): SourceTask
open fun include(includeSpec: Spec<FileTreeElement>): SourceTask
open fun include(includeSpec: Closure<Any>): SourceTask

{@inheritDoc}

setExcludes

open fun setExcludes(excludes: MutableIterable<String>): SourceTask

{@inheritDoc}

setIncludes

open fun setIncludes(includes: MutableIterable<String>): SourceTask

{@inheritDoc}

setSource

open fun setSource(source: FileTree): Unit

Sets the source for this task.

open fun setSource(source: Any): Unit

Sets the source for this task. The given source object is evaluated as per org.gradle.api.Project#files(Object...).

source

open fun source(vararg sources: Any): SourceTask

Adds some source to this task. The given source objects will be evaluated as per org.gradle.api.Project#files(Object...).