classes/phing/tasks/ext/JslLintTask.php

\JslLintTask

A Javascript lint task. Checks syntax of Javascript files.

Javascript lint (http://www.javascriptlint.com) must be in the system path. This class is based on Knut Urdalen's PhpLintTask.

Extends from
\Task
author
Stefan Priebsch
copyright
2001,2002 THYRELL. All rights reserved
package
phing.tasks.ext
version
$Id: JslLintTask.php 1273 2011-08-17 09:49:54Z mrook $

Properties

Propertyprivate  $badFiles= 'array'
Default valuearrayDetails
Type
Propertyprivate  $cache= 'null'
Default valuenullDetails
Type
Propertyprivate  $conf= 'null'
Default valuenullDetails
Type
Propertyprivate  $executable= 'jsl'
Default valuejslDetails
Type
Propertyprotected  $file= ''
Details
Type
Propertyprotected  $filesets= 'array'
Default valuearrayDetails
Type
Propertyprotected  $haltOnFailure= 'false'
Default valuefalseDetails
Type
Propertyprotected  $hasErrors= 'false'
Default valuefalseDetails
Type
Propertyprotected  $showWarnings= 'true'
Default valuetrueDetails
Type
Propertyprotected\PhingFile  $tofile= 'null'

Default valuenullDetails
Type
\PhingFile

Methods

methodpublic  createFileSet( ) : \FileSet
Nested creator, creates a FileSet for this task
Returns
Type Description
\FileSet
methodpublic  getExecutable( ) :
methodprotected  lint( string $file ) : void
Performs the actual syntax check
Parameters
Name Type Description
$file string
methodpublic  main( ) :
Execute lint check against PhingFile or a FileSet
methodpublic  setCacheFile( \PhingFile $file ) :
Whether to store last-modified times in cache
Parameters
Name Type Description
$file \PhingFile
methodpublic  setConfFile( \PhingFile $file ) :
jsl config file
Parameters
Name Type Description
$file \PhingFile
methodpublic  setExecutable(  $path ) :
Parameters
Name Type Description
$path
methodpublic  setFile( \PhingFile $file ) :
File to be performed syntax check on
Parameters
Name Type Description
$file \PhingFile
methodpublic  setHaltOnFailure( boolean $aValue ) :
The haltonfailure property
Parameters
Name Type Description
$aValue boolean
methodpublic  setShowWarnings( boolean $show ) :
Sets the flag if warnings should be shown
Parameters
Name Type Description
$show boolean
methodpublic  setToFile(  $tofile ) :
File to save error messages to
Parameters
Name Type Description
$tofile
Documentation was generated by DocBlox 0.13.1.