This repository has been archived by the owner on Feb 8, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 17
chore: codeQL config #617
Open
revolunet
wants to merge
10
commits into
master
Choose a base branch
from
revolunet-patch-10
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
chore: codeQL config #617
Changes from 9 commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
217cff2
chore: codeQL config
4196794
add faulty file
8508e13
Update codeql-analysis.yml
baf1bd6
Rename test.js to faulty.js
afdff0e
Create sync.ql
2483dbf
Update codeql-analysis.yml
8323ce5
Create qlpack.yml
97033df
Update sync.ql
a25390b
Update sync.ql
2845fa0
Update sync.ql
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
name: my-custom-queries | ||
version: 0.0.0 | ||
libraryPathDependencies: codeql-javascript |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
/** | ||
* @kind problem | ||
* @id sync-methods | ||
* @severity medium | ||
*/ | ||
|
||
import javascript | ||
|
||
from CallExpr c | ||
where c.getCalleeName() = "existsSync" or c.getCalleeName() = "readFileSync" | ||
select c, "Sync method warning" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
const fs = require("fs"); | ||
|
||
|
||
if (fs.existsSync("./package.json")) { | ||
console.log("ok"); | ||
} |
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.
Check warning
Code scanning / CodeQL
Sync method warning