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
C#: Initial implementation of csv printing in FlowSummaries test #7178
base: main
Are you sure you want to change the base?
Conversation
79d0261
to
1824df5
csharp/ql/lib/semmle/code/csharp/dataflow/internal/FlowSummaryImpl.qll
Outdated
Show resolved
Hide resolved
csharp/ql/lib/semmle/code/csharp/dataflow/internal/FlowSummaryImpl.qll
Outdated
Show resolved
Hide resolved
csharp/ql/lib/semmle/code/csharp/dataflow/internal/FlowSummaryImpl.qll
Outdated
Show resolved
Hide resolved
csharp/ql/lib/semmle/code/csharp/dataflow/internal/FlowSummaryImpl.qll
Outdated
Show resolved
Hide resolved
csharp/ql/lib/semmle/code/csharp/dataflow/internal/FlowSummaryImpl.qll
Outdated
Show resolved
Hide resolved
csharp/ql/lib/semmle/code/csharp/dataflow/internal/FlowSummaryImpl.qll
Outdated
Show resolved
Hide resolved
csharp/ql/lib/semmle/code/csharp/dataflow/internal/FlowSummaryImplSpecific.qll
Outdated
Show resolved
Hide resolved
csharp/ql/test/library-tests/frameworks/EntityFramework/FlowSummaries.ql
Outdated
Show resolved
Hide resolved
27b914c
to
43180b4
ee3d34b
to
8f172bf
fe81d26
to
ae09212
csharp/ql/test/library-tests/frameworks/EntityFramework/FlowSummaries.expected
Show resolved
Hide resolved
…ries. Note that any non NormalReturnKind printed summary will not be in the flow summary CSV language
…ts for ruby and java
csharp/ql/lib/semmle/code/csharp/dataflow/internal/FlowSummaryImplSpecific.qll
Outdated
Show resolved
Hide resolved
| import semmle.code.csharp.dataflow.internal.FlowSummaryImpl::Private::TestOutput | ||
|
|
||
| abstract class IncludeSummarizedCallable extends RelevantSummarizedCallable { | ||
| /** Gets the qualified parameter types of this callable as a comma-separated string */ |
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.
All ql doc comments should end with a full stop .
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.
Will fix (and also look at the other comments). Is there a documented coding standard?
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.
In this PR we change the way flow summaries are printed in the FlowSummaries.expected file.
The idea is that the printing result should be parseable as flow summaries written in CSV format.
This holds for the dataflow/libraries flow summaries test, but not for frameworks/EntityFramework.
For the latter case, we extend the the printing of ReturnKind slightly for the special cases, where the return kind is not a normal return kind. This means that these strings are not parsable as flow summaries.
Furthermore, the tests has been updated to reflect the new way of printing.
The text was updated successfully, but these errors were encountered: