It seems that there is an issue with how CSSLint handles formatting when format for multiple files can't be combined by simple concatenation of results for individual file.
I came across the issue when developing formatter for JSON, but it can apply to other formatters as well - in fact it's just a lucky chance that no previous formatters had this issue.
Essentially, in JSON, single file result is an object like so:
It seems that there is an issue with how CSSLint handles formatting when format for multiple files can't be combined by simple concatenation of results for individual file.
I came across the issue when developing formatter for JSON, but it can apply to other formatters as well - in fact it's just a lucky chance that no previous formatters had this issue.
Essentially, in JSON, single file result is an object like so:
But multiple results must be wrapped in square brackets and separated by commas like so:
or even more complex object indicating a file name, for example.
Unfortunately, it seems that the tool is simply looping through the files and prints out the result on each pass effectively concatenating the results.
It might be a better idea to allow formatters format multiple entries through a separate call like
formatMultipleResults()
I might take a stab at it while updating JSON formatter.