]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
Improve lint vars output messaging (#25049)
authorMark Otto <markd.otto@gmail.com>
Thu, 28 Dec 2017 18:24:08 +0000 (10:24 -0800)
committerGitHub <noreply@github.com>
Thu, 28 Dec 2017 18:24:08 +0000 (10:24 -0800)
build/lint-vars.js

index 909f5293d78881665224011c8e1d6178af6a6dc4..6164392e5dbb0176d6800c70709e72dfe630bf2c 100644 (file)
@@ -44,7 +44,7 @@ function findUnusedVars(dir) {
   // Array of all Sass variables
   const variables = sassFilesString.match(/(^\$[a-zA-Z0-9_-]+[^:])/gm)
 
-  console.log(`There's a total of ${variables.length} variables.`)
+  console.log(`Found ${variables.length} total variables.`)
 
   // Loop through each variable
   variables.forEach((variable) => {
@@ -52,7 +52,7 @@ function findUnusedVars(dir) {
     const count = (sassFilesString.match(re) || []).length
 
     if (count === 1) {
-      console.log(`Variable "${variable}" is only used once!`)
+      console.log(`Variable "${variable}" is not being used.`)
       unusedVarsFound = true
       globalSuccess = false
     }