-
Notifications
You must be signed in to change notification settings - Fork 528
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into feature/fix-shorthand-values
- Loading branch information
Showing
25 changed files
with
289 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
# Max warnings | ||
|
||
An error will be thrown if the total number of warnings exceeds the `max-warnings` setting. | ||
|
||
## Examples | ||
|
||
This can be set as a command-line option: | ||
|
||
``` bash | ||
$ sass-lint --max-warnings 50 | ||
``` | ||
|
||
In `.sass-lint.yml`: | ||
|
||
``` yaml | ||
options: | ||
max-warnings: 50 | ||
``` | ||
Or inside a script: | ||
``` javascript | ||
var sassLint = require('sass-lint'), | ||
config = {options: {'max-warnings': 50}}; | ||
|
||
results = sassLint.lintFiles('sass/**/*.scss', config) | ||
sassLint.failOnError(results, config); | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
'use strict'; | ||
|
||
var util = require('util'); | ||
|
||
module.exports = { | ||
SassLintFailureError: function (message) { | ||
Error.captureStackTrace(this, this.constructor); | ||
this.name = 'SassLintFailureError'; | ||
this.message = message; | ||
}, | ||
MaxWarningsExceededError: function (message) { | ||
Error.captureStackTrace(this, this.constructor); | ||
this.name = 'MaxWarningsExceededError'; | ||
this.message = message; | ||
} | ||
}; | ||
|
||
util.inherits(module.exports.SassLintFailureError, Error); | ||
util.inherits(module.exports.MaxWarningsExceededError, Error); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.