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

Enable sass linting by default, as had been expected #6131

Merged
merged 1 commit into from Jul 20, 2017

Conversation

fofr
Copy link
Contributor

@fofr fofr commented Jul 19, 2017

Reviewers: I don't know groovy and I am unsure how to test this. Help would be much appreciated.

The docs say that the sass linter is on by default:

* - sassLint Whether or not to run the SASS linter. Default: true

That's not the case though.

  • If options.sassLint is omitted then checking options.sassLint 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

I think this may have broken here:
#5828

* 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
@fofr
Copy link
Contributor Author

fofr commented Jul 19, 2017

Related to alphagov/government-frontend#402

@tijmenb
Copy link
Contributor

tijmenb commented Jul 19, 2017

This seems good to me, but maybe @suzannehamilton has other ideas on how to set defaults in the options?

Copy link
Contributor

@suzannehamilton suzannehamilton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That looks OK to me - I don't know of a better way handling it in Groovy.

And I think you're right that I broke the default true value, sorry. 😬

@fofr
Copy link
Contributor Author

fofr commented Jul 20, 2017

Because we lint all SASS, when we merge this there will be build failures on unrelated PRs, there may be some clean-up required.

@fofr fofr merged commit c1db716 into master Jul 20, 2017
@fofr fofr deleted the turn-on-sass-linting branch July 20, 2017 14:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants