Skip to content

Commit

Permalink
Match autoformatting, add QLDoc references
Browse files Browse the repository at this point in the history
  • Loading branch information
carldybdahl-microsoft committed Feb 26, 2025
1 parent 335bf6b commit ad84e9b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions csharp/ql/src/Bad Practices/PathCombine.qhelp
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@
</recommendation>
<references>

<li>Microsoft Learn, .NET API browser, <a href="https://learn.microsoft.com/en-us/dotnet/api/system.io.path.combine?view=net-9.0">Path.Combine</a>.</li>
<li>Microsoft Learn, .NET API browser, <a href="https://learn.microsoft.com/en-us/dotnet/api/system.io.path.join?view=net-9.0">Path.Join</a>.</li>

</references>
</qhelp>
2 changes: 1 addition & 1 deletion csharp/ql/src/Bad Practices/PathCombine.ql
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ import semmle.code.csharp.frameworks.System

from MethodCall call
where call.getTarget().hasFullyQualifiedName("System.IO", "Path", "Combine")
select call, "Path.Combine may silently discard its initial arguments if the latter are absolute paths. Use Path.Join to consistently join them."
select call, "Call to System.IO.Path.Combine."
Original file line number Diff line number Diff line change
@@ -1 +1 @@
| PathCombine.cs:7:9:7:54 | call to method Combine | Path.Combine may silently discard its initial arguments if the latter are absolute paths. Use Path.Join to consistently join them. |
| PathCombine.cs:7:9:7:54 | call to method Combine | Call to System.IO.Path.Combine. |

0 comments on commit ad84e9b

Please sign in to comment.