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