aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-css-plugin/src/test/resources/executables/mockSyntaxError.js
blob: cd32af2f9c9b6e8ea6f5e9d98560ae25ebbb79cb (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: "Missed semicolon (CssSyntaxError)",
        line: 2,
        rule: "CssSyntaxError"
      }
    ]
  }
];

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