Skip to content

Commit 43ccc14

Browse files
committed
Add ServiceStack stubs and empty test referencing it
1 parent e3a49f8 commit 43ccc14

File tree

22 files changed

+38696
-0
lines changed

22 files changed

+38696
-0
lines changed
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
using System.Collections.Generic;
2+
using System.Linq;
3+
using ServiceStack;
4+
5+
namespace ServiceStackTest
6+
{
7+
8+
9+
}
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
semmle-extractor-options: /nostdlib /noconfig --load-sources-from-project:../../../resources/stubs/ServiceStack/5.11.0/ServiceStack.csproj

csharp/ql/test/library-tests/frameworks/ServiceStack/remoteFlowSource.expected

Whitespace-only changes.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import semmle.code.csharp.security.dataflow.flowsources.Remote
2+
3+
from RemoteFlowSource source
4+
where
5+
source.getLocation().getFile().fromSource() and
6+
not source.getLocation().getFile().getAbsolutePath().matches("%/resources/stubs/%")
7+
select source, source.getSourceType()

csharp/ql/test/resources/stubs/ServiceStack.Client/5.11.0/ServiceStack.Client.cs

Lines changed: 1924 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<TargetFramework>net5.0</TargetFramework>
4+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
5+
<OutputPath>bin\</OutputPath>
6+
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<ProjectReference Include="../../ServiceStack.Text/5.11.0/ServiceStack.Text.csproj" />
11+
<ProjectReference Include="../../ServiceStack.Interfaces/5.11.0/ServiceStack.Interfaces.csproj" />
12+
<ProjectReference Include="../../_frameworks/Microsoft.NETCore.App/Microsoft.NETCore.App.csproj" />
13+
</ItemGroup>
14+
</Project>

csharp/ql/test/resources/stubs/ServiceStack.Common/5.11.0/ServiceStack.Common.cs

Lines changed: 5620 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<TargetFramework>net5.0</TargetFramework>
4+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
5+
<OutputPath>bin\</OutputPath>
6+
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<ProjectReference Include="../../ServiceStack.Text/5.11.0/ServiceStack.Text.csproj" />
11+
<ProjectReference Include="../../ServiceStack.Interfaces/5.11.0/ServiceStack.Interfaces.csproj" />
12+
<ProjectReference Include="../../_frameworks/Microsoft.NETCore.App/Microsoft.NETCore.App.csproj" />
13+
</ItemGroup>
14+
</Project>

csharp/ql/test/resources/stubs/ServiceStack.Interfaces/5.11.0/ServiceStack.Interfaces.cs

Lines changed: 5646 additions & 0 deletions
Large diffs are not rendered by default.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
<PropertyGroup>
3+
<TargetFramework>net5.0</TargetFramework>
4+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
5+
<OutputPath>bin\</OutputPath>
6+
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<ProjectReference Include="../../_frameworks/Microsoft.NETCore.App/Microsoft.NETCore.App.csproj" />
11+
</ItemGroup>
12+
</Project>

0 commit comments

Comments
 (0)