-
Notifications
You must be signed in to change notification settings - Fork 2k
Rust: Source and sink doc / tidy up #18977
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
dc7d7f1
Rust: Clarify doc on FlowSink, FlowSource.
geoffw0 4924a0f
Rust: Introduce a QuerySink class, common to all query sinks.
geoffw0 044d0a1
Rust: Include WeakSensitiveDataHashing sinks as well.
geoffw0 df4f117
Rust: QLDoc formatting.
geoffw0 f811294
Merge branch 'main' into sourcesinkdoc
geoffw0 56f6a67
Rust: Add sinks for rust/regex-injection to stats.
geoffw0 ee6455a
Rust: ... and extend QuerySink to complete the above.
geoffw0 64b5767
Rust: ... one more fix.
geoffw0 0df652b
Rust: Autoformat.
geoffw0 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,4 +1,26 @@ | ||
| /** Provides classes and predicates for defining flow sources. */ | ||
| /** | ||
| * Provides classes and predicates for defining flow sources. | ||
| * | ||
| * Flow sources defined here feed into the `ActiveThreatModelSource` class and | ||
| * ultimately reach data flow configurations as follows: | ||
| * | ||
| * data from `*.model.yml` | QL extensions of `FlowSource::Range` | ||
| * v v | ||
| * `FlowSource` (associated with a models-as-data `kind` string) | ||
| * v | ||
| * `sourceNode` predicate | (theoretically other QL defined sources) | ||
| * v v | ||
| * `ThreatModelSource` (associated with a threat model source type) | ||
| * v | ||
| * `ActiveThreatModelSource` (just the enabled sources) | ||
| * v | ||
| * various `Source` classes for specific data flow configurations | ||
|
||
| * | ||
| * New sources should be defined using models-as-data or QL extensions of | ||
| * `FlowSource::Range`. Data flow configurations on the other hand should use | ||
| * `ActiveThreatModelSource` to match sources enabled in the user | ||
| * configuration. | ||
| */ | ||
|
|
||
| private import rust | ||
| private import internal.FlowSummaryImpl as Impl | ||
|
|
||
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This QL doc does not render well in VS code. Consider using a code block, e.g.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I wasn't aware this was actually rendered anywhere (it's rendered when mousing over an import, possibly other places).
Done.