mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
22 lines
601 B
C#
22 lines
601 B
C#
using Semmle.Autobuild.Shared;
|
|
|
|
namespace Semmle.Autobuild.CSharp
|
|
{
|
|
/// <summary>
|
|
/// XML extraction.
|
|
/// </summary>
|
|
class XmlBuildRule : IBuildRule
|
|
{
|
|
public BuildScript Analyse(Autobuilder builder, bool auto)
|
|
{
|
|
if (!builder.Options.Indexing || builder.Odasa is null)
|
|
return BuildScript.Success;
|
|
|
|
var command = new CommandBuilder(builder.Actions).
|
|
RunCommand(builder.Odasa).
|
|
Argument("index --xml --extensions config csproj props xml");
|
|
return command.Script;
|
|
}
|
|
}
|
|
}
|