Skip to content

C#: Fix @kind property of CCyclomaticComplexity#87

Merged
pavgust merged 2 commits into
github:masterfrom
lcartey:csharp/ccyclomatic-kind
Aug 23, 2018
Merged

C#: Fix @kind property of CCyclomaticComplexity#87
pavgust merged 2 commits into
github:masterfrom
lcartey:csharp/ccyclomatic-kind

Conversation

@lcartey
Copy link
Copy Markdown
Contributor

@lcartey lcartey commented Aug 21, 2018

The CCyclomaticComplexitty.ql query has the wrong @kind - it is a metric query, so needs @kind treemap instead of @kind table.

In fixing this problem, I noticed that queries in the Metrics query directory do not compile in QL for Eclipse. This is because the Metrics directory has a queries.xml file which prevents import resolution for the top-level project directory. This has been solved by setting the appropriate library path in the .qlpath file, which is the same solution used by semmlecode-cpp-queries.

The Metrics folder has a queries.xml file which is required when
building a full distribution, as the Metrics folder gets copied into
odasa-csharp-metrics directory. However, in QL for Eclipse this doesn't
compile because it prevents import lookup at the top level. Modifying
the qlpath file to include the top-level directory on the library path
fixes the problem.
CCyclomaticComplexity is a metric query, so needs a @kind treemap
instead of @kind table.
@lcartey lcartey requested review from a team and pavgust August 21, 2018 13:50
@pavgust pavgust merged commit 3182274 into github:master Aug 23, 2018
@lcartey lcartey deleted the csharp/ccyclomatic-kind branch August 23, 2018 10:51
smowton pushed a commit to smowton/codeql that referenced this pull request Dec 6, 2021
Add optional compilation start plugin option + remove exitProcess
erik-krogh pushed a commit to erik-krogh/ql that referenced this pull request Dec 15, 2021
erik-krogh pushed a commit to erik-krogh/ql that referenced this pull request Dec 15, 2021
erik-krogh pushed a commit to erik-krogh/ql that referenced this pull request Dec 15, 2021
erik-krogh pushed a commit to erik-krogh/ql that referenced this pull request Dec 15, 2021
dbartol pushed a commit that referenced this pull request Dec 18, 2024
Consider a Reusable Workflow privileged if a caller is
MathiasVP added a commit to MathiasVP/ql that referenced this pull request Aug 10, 2025
…-query

PS: Port `powershell/command-injection` from the internal repo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants