aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-css-plugin/src/test/resources/executables/mockStylelint.js
blob: e8c16676e321f9611f6011fc296adabd4d1de112 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/env node
var testFile = process.argv[2];

var result = [
  {
    source: testFile,

    warnings: [
      {
        text: "some message",
        line: 2,
        rule: "color-no-invalid-hex"
      }
    ]
  }
];

var json = JSON.stringify(result);
console.log(json);