tasks/ext/JslLintTask.php
\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
Methods

createFileSet(
)
:
\FileSetNested creator, creates a FileSet for this task
Returns
| Type | Description |
|---|---|
| \FileSet | The created fileset object |

lint(
string $file
)
:
voidPerforms the actual syntax check
Parameters
| Name | Type | Description |
|---|---|---|
| $file | string |

setCacheFile(
\PhingFile $file
)
:
voidWhether to store last-modified times in cache
Parameters
| Name | Type | Description |
|---|---|---|
| $file | \PhingFile |

setConfFile(
\PhingFile $file
)
:
voidjsl config file
Parameters
| Name | Type | Description |
|---|---|---|
| $file | \PhingFile |

setFile(
\PhingFile $file
)
:
voidFile to be performed syntax check on
Parameters
| Name | Type | Description |
|---|---|---|
| $file | \PhingFile |

setHaltOnFailure(
boolean $aValue
)
:
voidThe haltonfailure property
Parameters
| Name | Type | Description |
|---|---|---|
| $aValue | boolean |

setShowWarnings(
boolean $show
)
:
voidSets the flag if warnings should be shown
Parameters
| Name | Type | Description |
|---|---|---|
| $show | boolean |