This repository has been archived on 2026-05-12. You can view files and clone it, but you cannot make any changes to its state, such as pushing and creating new issues, pull requests or comments.
PaintPlay/JSCop.targets
adrianvic 59426d62fb first
2023-12-21 14:33:34 -03:00

10 lines
616 B
XML

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Target Name="AfterBuild" Condition="$(RunJSCop) == 'true'">
<ItemGroup>
<JSItems Include="@(Content)" Condition="%(Content.Extension)=='.js' AND %(Content.JSCOP) != 'false'"/>
</ItemGroup>
<Message Text="JSItems = @(JSItems, ',')" Importance="high"/>
<Exec Command="\\bpt-scratch\JSCop\Win8Current\bin\js50.exe analyze /disable:JS2026,JS2045,JS2073,JS2074,JS2076,JS3054,JS3056,JS3057,JS3058,JS3092 @(JSItems->'/file:%(FullPath)', ' ')" />
</Target>
</Project>