Skip to content
This repository has been archived by the owner on Jan 30, 2024. It is now read-only.

Commit

Permalink
Enable sass by default, as docs state
Browse files Browse the repository at this point in the history
* If `options.sassLint` is omitted it is null and falsy.
* The default state was therefore no sass linting
* Explicitly check that it has been set to false so that if the option
is not provided sassLint runs
  • Loading branch information
fofr committed Jul 19, 2017
1 parent 843349b commit f28348c
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -146,7 +146,7 @@ def buildProject(Map options = [:]) {
echo "WARNING: You do not have Ruby linting turned on. Please install govuk-lint and enable."
}

if (hasAssets() && hasLint() && options.sassLint) {
if (hasAssets() && hasLint() && options.sassLint != false) {
stage("Lint SASS") {
sassLinter()
}
Expand Down

0 comments on commit f28348c

Please sign in to comment.