XhmikosR / find-unused-sass-variables

A simple tool to find unused Sass variables

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

main: process exit code is 0 even when unused variables are found

XhmikosR opened this issue · comments

3.1.0:

C:\Users\xmr\Desktop\find-unused-sass-variables>fusv tests/ --ignore="$a,$b"
Looking for unused variables
Finding unused variables in "C:\Users\xmr\Desktop\find-unused-sass-variables\tests"...
9 total variables.
Variable $unused is not being used!
Variable $black is not being used!
Variable $ignored-variable is not being used!
Variable $enabled-variable is not being used!
Variable $nestedVar is not being used!
Variable $nestNestedVar is not being used!

C:\Users\xmr\Desktop\find-unused-sass-variables>echo %ERRORLEVEL%
1

main:

C:\Users\xmr\Desktop\find-unused-sass-variables>npm run test:cli

> find-unused-sass-variables@3.1.0 test:cli
> node ./cli.js tests/ --ignore="$a,$b"

Looking for unused variables
Searching for unused variables in "C:\Users\xmr\Desktop\find-unused-sass-variables\tests" folder, scss files...
9 total variables.
6 are not used!
Variable $unused is not being used! C:/Users/xmr/Desktop/find-unused-sass-variables/tests/_variables.scss:4
Variable $black is not being used! C:/Users/xmr/Desktop/find-unused-sass-variables/tests/_variables.scss:5
Variable $ignored-variable is not being used! C:/Users/xmr/Desktop/find-unused-sass-variables/tests/_variables.scss:13
Variable $enabled-variable is not being used! C:/Users/xmr/Desktop/find-unused-sass-variables/tests/_variables.scss:19
Variable $nestedVar is not being used! C:/Users/xmr/Desktop/find-unused-sass-variables/tests/test.scss:7
Variable $nestNestedVar is not being used! C:/Users/xmr/Desktop/find-unused-sass-variables/tests/test.scss:12

C:\Users\xmr\Desktop\find-unused-sass-variables>echo %ERRORLEVEL%
0