aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-css-plugin/src/test/resources/executables/mockUnknownRule.js
blob: 844b38bcbe25e1cba81a5534f8aaa12734917b17 (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: "unknown-rule-key"
      }
    ]
  }
];

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