If a .scssinspectrc file is located in the project directory, its values will
be used in place of the defaults listed above. For example:

{

"anonymize":"number|string"// list of types delimited by '|'

"threshold":100,

"type":"token",

"lang":"scss",

"diff":"css",

"reporter":"html",

"skip":false,

"ignore":"bootstrap|legacy|lib"// used as RegExp

}

You can use ignore parameter to set one pattern as well as multiple a .scssinspectignore files with patterns applied locally (for current directory and children).
Example .scssinspectignore may look like this:

lib
**/_legacy/**
vendor/**/*.css

Integration

Example for Travis CI. Expected Entries in your .travis.yml:

before_script:

-"npm install -g scssinspect"

script:

-"scssinspect -t 30 ./path/to/src"

If you wish to log results as HTML and not break the build, use following example:

HTML

HTML reporter is well suited for CI usage. (Note that example below got indentation and formatting)

<!doctype html>

<html>

<head>

<style><!--styles --></style>

<title><!-- current date --></title>

</head>

<body>

<header>Match - 2 instances</header>

<h3>demo\a.scss:3,3</h3>

<h3>demo\b.scss:6,8</h3>

<pre class='diff'>

<code class='diff-files'>

- .\demo\a.scss:3,3

+ .\demo\b.scss:6,8

</code>

<code class='line-added'>+ .b, .a{ </code>

<codeclass='line-added'>+ color:#fff; </code>

<codeclass='line-added'>+ } </code>

<code class='line-removed'>- .a,.b{color:#fff;}</code>

</pre>

<footer>

<span class='failure'>1 match found across 2 files</span>

</footer>

</body>

</html>

Known issues

Scssinspect is dependent on Gonzales-PE parser which sometimes cannot parse scss
libraries (like bootstrap). It is recommended to ignore these files or directories
using --ignore flag or ignore property in .scssinspectrc.