This repository has been archived by the owner on Jun 27, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add the option to force customization for languages that don't have a Customization.qll. This enable customization for Ruby for which the Customization.qll hasn't been integrated into the latest CodeQL Bundle.
- Loading branch information
1 parent
1334473
commit 999e458
Showing
3 changed files
with
39 additions
and
17 deletions.
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
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,8 @@ | ||
import ruby | ||
import codeql.ruby.dataflow.RemoteFlowSources | ||
|
||
class CustomSource extends RemoteFlowSource::Range { | ||
CustomSource() { this.asExpr().getExpr().(MethodCall).getMethodName() = "source" } | ||
|
||
override string getSourceType() { result = "test" } | ||
} |