tasks/ext/JslLintTask.php

Show: inherited
Table of Contents

\JslLintTask

Package: phing\tasks\ext

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.

Parent(s)
\Task < \ProjectComponent
Author
Stefan Priebsch  
Version
$Id: JslLintTask.php 1273 2011-08-17 09:49:54Z mrook $  

Properties

Propertyprivate  $badFiles= 'array()'
Default valuearray()Details
Type
n/a
Propertyprivate  $cache= 'null'
Default valuenullDetails
Type
n/a
Propertyprivate  $conf= 'null'
Default valuenullDetails
Type
n/a
Propertyprivate  $executable= '"jsl"'
Default value"jsl"Details
Type
n/a
Propertyprotected  $file= ''
Details
Type
n/a
Propertyprotected  $filesets= 'array()'
Default valuearray()Details
Type
n/a
Propertyprotected  $haltOnFailure= 'false'
Default valuefalseDetails
Type
n/a
Propertyprotected  $hasErrors= 'false'
Default valuefalseDetails
Type
n/a
Propertyprotected  $showWarnings= 'true'
Default valuetrueDetails
Type
n/a
Propertyprotected\PhingFile  $tofile= 'null'

Default valuenullDetails
Type
\PhingFile

Methods

methodpubliccreateFileSet( ) : \FileSet

Nested creator, creates a FileSet for this task

Returns
Type Description
\FileSet The created fileset object
methodpublicgetDescription( ) : void

methodpublicgetExecutable( ) : void

methodpublicgetLocation( ) : void

methodpublicgetOwningTarget( ) : void

methodpublicgetProject( ) : void

methodprotectedgetRegisterSlot( ) : void

methodpublicgetRuntimeConfigurableWrapper( ) : void

methodpublicgetTaskName( ) : void

methodpublicgetTaskType( ) : void

methodpublicinit( ) : void

methodprotectedlint( string $file ) : void

Performs the actual syntax check

Parameters
Name Type Description
$file string
methodpubliclog( ) : void

methodpublicmain( ) : void

Execute lint check against PhingFile or a FileSet

methodpublicmaybeConfigure( ) : void

methodpublicperform( ) : void

methodpublicsetCacheFile( \PhingFile $file ) : void

Whether to store last-modified times in cache

Parameters
Name Type Description
$file \PhingFile
methodpublicsetConfFile( \PhingFile $file ) : void

jsl config file

Parameters
Name Type Description
$file \PhingFile
methodpublicsetDescription( ) : void

methodpublicsetExecutable(  $path ) : void

Parameters
Name Type Description
$path
methodpublicsetFile( \PhingFile $file ) : void

File to be performed syntax check on

Parameters
Name Type Description
$file \PhingFile
methodpublicsetHaltOnFailure( boolean $aValue ) : void

The haltonfailure property

Parameters
Name Type Description
$aValue boolean
methodpublicsetLocation( ) : void

methodpublicsetOwningTarget( ) : void

methodpublicsetProject( ) : void

methodpublicsetRuntimeConfigurableWrapper( ) : void

methodpublicsetShowWarnings( boolean $show ) : void

Sets the flag if warnings should be shown

Parameters
Name Type Description
$show boolean
methodpublicsetTaskName( ) : void

methodpublicsetTaskType( ) : void

methodpublicsetToFile(  $tofile ) : void

File to save error messages to

Parameters
Name Type Description
$tofile
Documentation was generated by DocBlox 0.17.1.