Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Initial structure for cpg native queries and and a small example #865
base: main
Are you sure you want to change the base?
Initial structure for cpg native queries and and a small example #865
Changes from 1 commit
8e8a961
deea504
5f551c7
dd0b454
309fad9
6394508
62e8ccb
3d38d6e
0bc5f61
0ebce3e
627d0ff
54756a7
aa02666
d9d2352
49f1497
aa2be08
12b93ec
5263e3d
c760aa6
e79badf
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
Check warning
Code scanning / detekt
License text is absent or incorrect. Warning
Check warning
Code scanning / detekt
Detects missing final newlines Warning
Check warning on line 6 in codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQueryConfiguration.kt
Codecov / codecov/patch
codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQueryConfiguration.kt#L6
Check warning on line 9 in codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQueryConfiguration.kt
Codecov / codecov/patch
codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQueryConfiguration.kt#L8-L9
Check warning
Code scanning / detekt
Empty block of code detected. As they serve no purpose they should be removed. Warning
Check warning
Code scanning / detekt
Reports empty class bodies Warning
Check warning
Code scanning / detekt
Checks whether files end with a line separator. Warning
Check warning
Code scanning / detekt
License text is absent or incorrect. Warning
Check warning
Code scanning / detekt
Detects missing final newlines Warning
Check warning
Code scanning / detekt
Detects imports in non default order Warning
Check warning
Code scanning / detekt
Reports consecutive blank lines Warning
Check warning on line 11 in codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQueryExecutor.kt
Codecov / codecov/patch
codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQueryExecutor.kt#L11
Check warning
Code scanning / detekt
Property is unused and should be removed. Warning
Check warning on line 17 in codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQueryExecutor.kt
Codecov / codecov/patch
codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQueryExecutor.kt#L17
Check warning on line 19 in codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQueryExecutor.kt
Codecov / codecov/patch
codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQueryExecutor.kt#L19
Check warning on line 22 in codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQueryExecutor.kt
Codecov / codecov/patch
codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQueryExecutor.kt#L21-L22
Check warning
Code scanning / detekt
Reports spaces around commas Warning
Check warning on line 27 in codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQueryExecutor.kt
Codecov / codecov/patch
codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQueryExecutor.kt#L26-L27
Check warning on line 30 in codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQueryExecutor.kt
Codecov / codecov/patch
codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQueryExecutor.kt#L29-L30
Check warning on line 34 in codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQueryExecutor.kt
Codecov / codecov/patch
codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQueryExecutor.kt#L33-L34
Check warning
Code scanning / detekt
Checks whether files end with a line separator. Warning
Check warning
Code scanning / detekt
License text is absent or incorrect. Warning
Check warning
Code scanning / detekt
Checks if top level class matches the filename Warning
Check warning
Code scanning / detekt
Detects missing final newlines Warning
Check warning
Code scanning / detekt
If a source file contains only a single non-private top-level class or object, the file name should reflect the case-sensitive name plus the .kt extension. Warning
Check warning on line 20 in codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQueryFinding.kt
Codecov / codecov/patch
codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQueryFinding.kt#L16-L20
Check warning on line 25 in codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQueryFinding.kt
Codecov / codecov/patch
codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQueryFinding.kt#L23-L25
Check warning on line 27 in codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQueryFinding.kt
Codecov / codecov/patch
codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQueryFinding.kt#L27
Check warning on line 29 in codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQueryFinding.kt
Codecov / codecov/patch
codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQueryFinding.kt#L29
Check warning on line 31 in codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQueryFinding.kt
Codecov / codecov/patch
codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQueryFinding.kt#L31
Check warning on line 34 in codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQueryFinding.kt
Codecov / codecov/patch
codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQueryFinding.kt#L34
Check warning
Code scanning / detekt
Checks whether files end with a line separator. Warning
Check warning
Code scanning / detekt
License text is absent or incorrect. Warning
Check warning
Code scanning / detekt
Detects missing final newlines Warning
Check warning on line 6 in codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQueryOptionGroup.kt
Codecov / codecov/patch
codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQueryOptionGroup.kt#L6
Check warning
Code scanning / detekt
Empty block of code detected. As they serve no purpose they should be removed. Warning
Check warning
Code scanning / detekt
Reports empty class bodies Warning
Check warning
Code scanning / detekt
Checks whether files end with a line separator. Warning
Check warning on line 12 in codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQueryOptionGroup.kt
Codecov / codecov/patch
codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQueryOptionGroup.kt#L12
Check warning
Code scanning / detekt
License text is absent or incorrect. Warning
Check warning
Code scanning / detekt
Detects missing final newlines Warning
Check warning
Code scanning / detekt
Detects unused imports Warning
Check warning
Code scanning / detekt
Reports multiple space usages Warning
Check warning on line 15 in codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQuerySarifBuilder.kt
Codecov / codecov/patch
codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQuerySarifBuilder.kt#L9-L15
Check warning
Code scanning / detekt
Reports spaces around commas Warning
Check warning
Code scanning / detekt
Reports mis-indented code Warning
Check warning
Code scanning / detekt
Reports mis-indented code Warning
Check warning
Code scanning / detekt
Reports mis-indented code Warning
Check warning on line 20 in codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQuerySarifBuilder.kt
Codecov / codecov/patch
codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQuerySarifBuilder.kt#L18-L20
Check warning
Code scanning / detekt
Reports mis-indented code Warning
Check warning
Code scanning / detekt
Reports spaces around commas Warning
Check warning on line 34 in codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQuerySarifBuilder.kt
Codecov / codecov/patch
codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQuerySarifBuilder.kt#L25-L34
Check warning on line 42 in codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQuerySarifBuilder.kt
Codecov / codecov/patch
codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQuerySarifBuilder.kt#L39-L42
Check warning on line 46 in codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQuerySarifBuilder.kt
Codecov / codecov/patch
codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQuerySarifBuilder.kt#L44-L46
Check warning
Code scanning / detekt
Checks whether files end with a line separator. Warning
Check warning
Code scanning / detekt
License text is absent or incorrect. Warning
Check warning
Code scanning / detekt
Detects missing final newlines Warning
Check warning on line 1 in codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQuerySubcommand.kt
Codecov / codecov/patch
codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQuerySubcommand.kt#L1
Check warning
Code scanning / detekt
Reports spaces around colons Warning
Check warning on line 10 in codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQuerySubcommand.kt
Codecov / codecov/patch
codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQuerySubcommand.kt#L9-L10
Check warning on line 12 in codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQuerySubcommand.kt
Codecov / codecov/patch
codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQuerySubcommand.kt#L12
Check warning on line 14 in codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQuerySubcommand.kt
Codecov / codecov/patch
codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQuerySubcommand.kt#L14
Check warning on line 18 in codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQuerySubcommand.kt
Codecov / codecov/patch
codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/CPGQuerySubcommand.kt#L17-L18
Check warning
Code scanning / detekt
Checks whether files end with a line separator. Warning
Check warning
Code scanning / detekt
License text is absent or incorrect. Warning
Check warning
Code scanning / detekt
Detects missing final newlines Warning
Check warning on line 7 in codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/queries/CPGQuery.kt
Codecov / codecov/patch
codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/queries/CPGQuery.kt#L7
Check warning
Code scanning / detekt
Reports consecutive blank lines Warning
Check warning on line 15 in codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/queries/CPGQuery.kt
Codecov / codecov/patch
codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/queries/CPGQuery.kt#L13-L15
Check warning
Code scanning / detekt
Detects blank lines before rbraces Warning
Check warning
Code scanning / detekt
Checks whether files end with a line separator. Warning
Check warning
Code scanning / detekt
License text is absent or incorrect. Warning
Check warning
Code scanning / detekt
Detects missing final newlines Warning
Check warning
Code scanning / detekt
Detects unused imports Warning
Check warning
Code scanning / detekt
Reports spaces around colons Warning
Check warning on line 9 in codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/queries/ExampleQuery.kt
Codecov / codecov/patch
codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/queries/ExampleQuery.kt#L9
Check warning
Code scanning / detekt
Reports lines with exceeded length Warning
Check warning
Code scanning / detekt
Line detected, which is longer than the defined maximum line length in the code style. Warning
Check warning on line 13 in codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/queries/ExampleQuery.kt
Codecov / codecov/patch
codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/queries/ExampleQuery.kt#L11-L13
Check warning
Code scanning / detekt
Reports mis-indented code Warning
Check warning
Code scanning / detekt
Reports spaces around commas Warning
Check warning
Code scanning / detekt
Reports spaces around colons Warning
Check warning on line 16 in codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/queries/ExampleQuery.kt
Codecov / codecov/patch
codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/queries/ExampleQuery.kt#L15-L16
Check warning
Code scanning / detekt
Reports methods that have an empty first line. Warning
Check warning on line 20 in codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/queries/ExampleQuery.kt
Codecov / codecov/patch
codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/queries/ExampleQuery.kt#L20
Check warning on line 25 in codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/queries/ExampleQuery.kt
Codecov / codecov/patch
codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/queries/ExampleQuery.kt#L22-L25
Check warning on line 28 in codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/queries/ExampleQuery.kt
Codecov / codecov/patch
codyze-specification-languages/cpg-native/src/main/kotlin/de/fraunhofer/aisec/codyze/specificationLanguage/cpg/native/queries/ExampleQuery.kt#L28
Check warning
Code scanning / detekt
Checks whether files end with a line separator. Warning