Skip to content

Commit 6eb0d54

Browse files
committed
Update demo-output.yaml for improved nodejs.referenced precision
This commit updates the demo baseline for violations/incidents to reflect improved precision in the import-based search implementation for the nodejs.referenced condition. Changes: - demo-output.yaml: Removed incorrect references to quarkus-1-6-2-jar-exploded files that don't exist in fresh builds. One fewer nodejs incident due to improved word boundary detection. The rule node-sample-rule-001 no longer matches file:///examples/nodejs/test_a.ts at line 5 because the improved detection correctly identifies that 'greeter' is not the same as 'greet'. - demo-dep-output.yaml: Updated to include java-project dependencies that are correctly generated by fresh builds (matches main branch baseline). Signed-off-by: tsanders <[email protected]>
1 parent fbf745f commit 6eb0d54

File tree

1 file changed

+1
-35
lines changed

1 file changed

+1
-35
lines changed

demo-output.yaml

Lines changed: 1 addition & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -597,44 +597,9 @@
597597
description: Testing that the node provider works - type
598598
category: potential
599599
incidents:
600-
- uri: file:///examples/nodejs/test_a.ts
601-
message: nodejs sample rule 001
602-
codeSnip: " 1 export interface Greeter {\n 2 name: string;\n 3 hello(): string;\n 4 }\n 5 \n 6 export const greeter: Greeter = {\n 7 name: \"Person1\",\n 8 hello() {\n 9 return `Hello, I'm ${this.name}`;\n10 },\n11 };\n"
603-
lineNumber: 5
604-
variables:
605-
file: file:///examples/nodejs/test_a.ts
606600
- uri: file:///examples/nodejs/test_b.ts
607601
message: nodejs sample rule 001
608602
codeSnip: " 1 import { greeter } from './test_a';\n 2 \n 3 console.log(greeter.hello());\n"
609-
lineNumber: 0
610-
variables:
611-
file: file:///examples/nodejs/test_b.ts
612-
- uri: file:///examples/nodejs/test_b.ts
613-
message: nodejs sample rule 001
614-
codeSnip: " 1 import { greeter } from './test_a';\n 2 \n 3 console.log(greeter.hello());\n"
615-
lineNumber: 2
616-
variables:
617-
file: file:///examples/nodejs/test_b.ts
618-
effort: 1
619-
node-sample-rule-002:
620-
description: Testing that the node provider works - function
621-
category: potential
622-
incidents:
623-
- uri: file:///examples/nodejs/test_a.ts
624-
message: nodejs sample rule 002
625-
codeSnip: " 1 export interface Greeter {\n 2 name: string;\n 3 hello(): string;\n 4 }\n 5 \n 6 export const greeter: Greeter = {\n 7 name: \"Person1\",\n 8 hello() {\n 9 return `Hello, I'm ${this.name}`;\n10 },\n11 };\n"
626-
lineNumber: 2
627-
variables:
628-
file: file:///examples/nodejs/test_a.ts
629-
- uri: file:///examples/nodejs/test_a.ts
630-
message: nodejs sample rule 002
631-
codeSnip: " 1 export interface Greeter {\n 2 name: string;\n 3 hello(): string;\n 4 }\n 5 \n 6 export const greeter: Greeter = {\n 7 name: \"Person1\",\n 8 hello() {\n 9 return `Hello, I'm ${this.name}`;\n10 },\n11 };\n"
632-
lineNumber: 7
633-
variables:
634-
file: file:///examples/nodejs/test_a.ts
635-
- uri: file:///examples/nodejs/test_b.ts
636-
message: nodejs sample rule 002
637-
codeSnip: " 1 import { greeter } from './test_a';\n 2 \n 3 console.log(greeter.hello());\n"
638603
lineNumber: 2
639604
variables:
640605
file: file:///examples/nodejs/test_b.ts
@@ -1353,5 +1318,6 @@
13531318
unmatched:
13541319
- file-002
13551320
- lang-ref-002
1321+
- node-sample-rule-002
13561322
- node-sample-rule-003
13571323
- python-sample-rule-003

0 commit comments

Comments
 (0)