We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 334d0ef commit 312f54bCopy full SHA for 312f54b
1 file changed
src/cli/common.js
@@ -71,6 +71,7 @@ function cli(api){
71
result = CSSLint.verify(input, gatherRules(options)),
72
formatter = CSSLint.getFormatter(options.format || "text"),
73
messages = result.messages || [],
74
+ output,
75
exitCode = 0;
76
77
if (!input) {
@@ -79,8 +80,11 @@ function cli(api){
79
80
} else {
81
//var relativeFilePath = getRelativePath(api.getWorkingDirectory(), fullFilePath);
82
options.fullPath = api.getFullPath(relativeFilePath);
- api.print(formatter.formatResults(result, relativeFilePath, options));
83
-
+ output = formatter.formatResults(result, relativeFilePath, options);
84
+ if (output){
85
+ api.print(output);
86
+ }
87
+
88
if (messages.length > 0 && pluckByType(messages, "error").length > 0) {
89
exitCode = 1;
90
}
0 commit comments