Skip to content

Commit 737b9bc

Browse files
committed
Update demo-output.yaml with all provider violations
Regenerate demo-output.yaml with ALL providers (Java, Go, Python, Node.js, YAML, builtin) running together to demonstrate comprehensive analysis including TypeScript/React support. This includes: - Java provider violations (annotation-on-any-class-01, java-gradle-project, etc.) - Go provider violations (lang-ref-001/002/003/004) - Python provider violations (python-sample-rule-001/002) - Node.js provider violations including new TypeScript/React tests (test-tsx-support-00000/00010) - Builtin provider violations (builtin-inclusion-test-json/xml) - New test rule for regex patterns (test-regex-pattern-00000) Resolves CI test failure for 'ensure violation and dependency outputs are unchanged'. Signed-off-by: tsanders <[email protected]>
1 parent 148fea7 commit 737b9bc

File tree

1 file changed

+39
-49
lines changed

1 file changed

+39
-49
lines changed

demo-output.yaml

Lines changed: 39 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,41 @@
545545
variables:
546546
file: file:///examples/python/file_a.py
547547
effort: 1
548+
test-regex-pattern-00000:
549+
description: Test regex pattern for TypeScript/JavaScript files
550+
category: potential
551+
incidents:
552+
- uri: file:///examples/nodejs/Component.tsx
553+
message: Found React reference using regex pattern
554+
codeSnip: " 1 import React from 'react';\n 2 \n 3 export const MyComponent: React.FC = () => {\n 4 return <div>Hello from TypeScript React</div>;\n 5 };\n"
555+
lineNumber: 1
556+
variables:
557+
matchingText: React
558+
- uri: file:///examples/nodejs/Component.tsx
559+
message: Found React reference using regex pattern
560+
codeSnip: " 1 import React from 'react';\n 2 \n 3 export const MyComponent: React.FC = () => {\n 4 return <div>Hello from TypeScript React</div>;\n 5 };\n"
561+
lineNumber: 3
562+
variables:
563+
matchingText: React
564+
- uri: file:///examples/nodejs/Component.tsx
565+
message: Found React reference using regex pattern
566+
codeSnip: " 1 import React from 'react';\n 2 \n 3 export const MyComponent: React.FC = () => {\n 4 return <div>Hello from TypeScript React</div>;\n 5 };\n"
567+
lineNumber: 4
568+
variables:
569+
matchingText: React
570+
- uri: file:///examples/nodejs/LegacyComponent.jsx
571+
message: Found React reference using regex pattern
572+
codeSnip: " 1 import React from 'react';\n 2 \n 3 export const LegacyComponent = () => {\n 4 return <div>Hello from JavaScript React</div>;\n 5 };\n"
573+
lineNumber: 1
574+
variables:
575+
matchingText: React
576+
- uri: file:///examples/nodejs/LegacyComponent.jsx
577+
message: Found React reference using regex pattern
578+
codeSnip: " 1 import React from 'react';\n 2 \n 3 export const LegacyComponent = () => {\n 4 return <div>Hello from JavaScript React</div>;\n 5 };\n"
579+
lineNumber: 4
580+
variables:
581+
matchingText: React
582+
effort: 1
548583
test-tsx-support-00000:
549584
description: Test that .tsx files are scanned (builtin provider)
550585
category: potential
@@ -557,62 +592,16 @@
557592
matchingText: import React
558593
effort: 1
559594
test-tsx-support-00010:
560-
description: Test that nodejs provider can find references in .tsx files
595+
description: Test that nodejs provider can find references in TypeScript/React files
561596
category: potential
562597
incidents:
563598
- uri: file:///examples/nodejs/Component.tsx
564-
message: Found React reference in .tsx file using nodejs provider
599+
message: Found React reference using nodejs provider
565600
codeSnip: " 1 import React from 'react';\n 2 \n 3 export const MyComponent: React.FC = () => {\n 4 return <div>Hello from TypeScript React</div>;\n 5 };\n"
566601
lineNumber: 2
567602
variables:
568603
file: file:///examples/nodejs/Component.tsx
569604
effort: 1
570-
typescript-test-001:
571-
description: Testing TypeScript (.ts) file analysis
572-
category: potential
573-
incidents:
574-
- uri: file:///examples/nodejs/test_a.ts
575-
message: TypeScript interface found
576-
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"
577-
lineNumber: 5
578-
variables:
579-
file: file:///examples/nodejs/test_a.ts
580-
- uri: file:///examples/nodejs/test_b.ts
581-
message: TypeScript interface found
582-
codeSnip: " 1 import { greeter } from './test_a';\n 2 \n 3 console.log(greeter.hello());\n"
583-
lineNumber: 0
584-
variables:
585-
file: file:///examples/nodejs/test_b.ts
586-
- uri: file:///examples/nodejs/test_b.ts
587-
message: TypeScript interface found
588-
codeSnip: " 1 import { greeter } from './test_a';\n 2 \n 3 console.log(greeter.hello());\n"
589-
lineNumber: 2
590-
variables:
591-
file: file:///examples/nodejs/test_b.ts
592-
effort: 1
593-
typescript-test-002:
594-
description: Testing TypeScript function detection
595-
category: potential
596-
incidents:
597-
- uri: file:///examples/nodejs/test_a.ts
598-
message: TypeScript function found
599-
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"
600-
lineNumber: 2
601-
variables:
602-
file: file:///examples/nodejs/test_a.ts
603-
- uri: file:///examples/nodejs/test_a.ts
604-
message: TypeScript function found
605-
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"
606-
lineNumber: 7
607-
variables:
608-
file: file:///examples/nodejs/test_a.ts
609-
- uri: file:///examples/nodejs/test_b.ts
610-
message: TypeScript function found
611-
codeSnip: " 1 import { greeter } from './test_a';\n 2 \n 3 console.log(greeter.hello());\n"
612-
lineNumber: 2
613-
variables:
614-
file: file:///examples/nodejs/test_b.ts
615-
effort: 1
616605
xml-pom-001:
617606
description: ""
618607
category: potential
@@ -1071,7 +1060,7 @@
10711060
java-annotation-inspection-04: connection to the language server is closed, language server is not running
10721061
java-annotation-inspection-05: connection to the language server is closed, language server is not running
10731062
java-chaining-01: connection to the language server is closed, language server is not running
1074-
java-downloaded-maven-artifact: unable to ask for Konveyor rule entry
1063+
java-downloaded-maven-artifact: connection to the language server is closed, language server is not running
10751064
java-gradle-project: connection to the language server is closed, language server is not running
10761065
java-inclusion-test: connection to the language server is closed, language server is not running
10771066
lang-ref-001: connection to the language server is closed, language server is not running
@@ -1080,6 +1069,7 @@
10801069
lang-ref-004: connection to the language server is closed, language server is not running
10811070
singleton-sessionbean-00001: connection to the language server is closed, language server is not running
10821071
singleton-sessionbean-00002: connection to the language server is closed, language server is not running
1072+
test-regex-pattern-00010: failed to perform file content search - could not run grep with provided pattern exit status 2
10831073
unmatched:
10841074
- file-002
10851075
- node-sample-rule-003

0 commit comments

Comments
 (0)