Validate sources
Last updated
Last updated
Checking the quality of your code to find and fix errors is a common task. The offers the _validateSources
task, which allows you to check the quality of the code of the artifacts of a webpackage. This task will check the following type of files within the :
Javascript files using and the .eslintrc
config file located at the root folder of the active webpackage.
CSS files using and the .csslintrc
config file located at the root folder of the CDT (normally it is called devtools).
JSON files using .
To show how to validate the sources of the artifacts of the active webpackage using the _validateSources
task.
You should run the task within the CDT folder (normally it is called devtools) as follows:
If errors are identified, they will be listed in the bash. Otherwise, a success message will be displayed.