FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
aspnetwebstack/tools/WebStack.StyleCop.targets at main · drivenet/aspnetwebstack · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
drivenet
/
aspnetwebstack
Public
forked from
haoduotnt/aspnetwebstack
Notifications
You must be signed in to change notification settings
Fork
2
Star
8
Code
Pull requests
0
Actions
Security and quality
0
Insights
Additional navigation options
Code
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
aspnetwebstack
/
tools
/
WebStack.StyleCop.targets
Copy path
More file actions
More file actions
Latest commit
History
History
History
80 lines (67 loc) · 4.7 KB
Breadcrumbs
aspnetwebstack
/
tools
/
WebStack.StyleCop.targets
Copy path
File metadata and controls
80 lines (67 loc) · 4.7 KB
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
<Projec
t
xmln
s
=
"http://schemas.microsoft.com/developer/msbuild/200
3
">
<
ItemGroup
>
<
StyleCopMsBuildRunner
Include
=
"
$(WebStackRootPath)packages\StyleCop.5.0.0\**\StyleCop.dll
"
/>
<
StyleCopAdditionalAddins
Include
=
"
$(WebStackRootPath)packages\Microsoft.Web.SkipStrongNames.1.0.0\**\Microsoft.Web.StyleCop.dll
"
/>
<
StyleCopAdditionalAddinPaths
Include
=
"
@(StyleCopAdditionalAddins -> '%(RootDir)%(Directory)')
"
/>
</
ItemGroup
>
<
UsingTask
AssemblyFile
=
"
@(StyleCopMsBuildRunner)
"
TaskName
=
"
StyleCopTask
"
Condition
=
"
'@(StyleCopMsBuildRunner)' != ''
"
/>
<
PropertyGroup
>
<
PrepareForRunDependsOn
>$(PrepareForRunDependsOn);StyleCop</
PrepareForRunDependsOn
>
</
PropertyGroup
>
<
PropertyGroup
>
<
IsStyleCopEnabled
Condition
=
"
'$(IsStyleCopEnabled)' == ''
"
>$(StyleCopEnabled)</
IsStyleCopEnabled
>
<
StyleCopForceFullAnalysis
Condition
=
"
'$(StyleCopForceFullAnalysis)' == ''
"
>false</
StyleCopForceFullAnalysis
>
<
StyleCopCacheResults
Condition
=
"
'$(StyleCopCacheResults)' == ''
"
>true</
StyleCopCacheResults
>
<
StyleCopTreatErrorsAsWarnings
Condition
=
"
'$(StyleCopTreatErrorsAsWarnings)' == ''
"
>true</
StyleCopTreatErrorsAsWarnings
>
<
StyleCopOverrideSettingsFile
Condition
=
"
'$(StyleCopOverrideSettingsFile)' == ''
"
> </
StyleCopOverrideSettingsFile
>
<
StyleCopOutputFile
Condition
=
"
'$(StyleCopOutputFile)' == ''
"
>$(IntermediateOutputPath)StyleCopViolations.xml</
StyleCopOutputFile
>
<
StyleCopSuccessMarkerFile
Condition
=
"
'$(StyleCopSuccessMarkerFile)' == ''
"
>$(IntermediateOutputPath)StyleCop.success</
StyleCopSuccessMarkerFile
>
<!--
Specifying 0 will cause StyleCop to use the default violation count limit.
Specifying any positive number will cause StyleCop to use that number as the violation count limit.
Specifying any negative number will cause StyleCop to allow any number of violations without limit.
-->
<
StyleCopMaxViolationCount
Condition
=
"
'$(StyleCopMaxViolationCount)' == ''
"
>0</
StyleCopMaxViolationCount
>
</
PropertyGroup
>
<!--
Define target: StyleCop
-->
<
Target
Name
=
"
StyleCop
"
Inputs
=
"
@(Compile)
"
Outputs
=
"
$(StyleCopSuccessMarkerFile)
"
Condition
=
"
'$(IsStyleCopEnabled)' == 'true'
"
>
<
PropertyGroup
>
<
StyleCopMsBuildRunner
>@(StyleCopMsBuildRunner)</
StyleCopMsBuildRunner
>
</
PropertyGroup
>
<
Error
Text
=
"
Multiple StyleCop copies detected. Please clean out your packages folder and try again.
"
Condition
=
"
$(StyleCopMsBuildRunner.Contains(';'))
"
/>
<
Delete
Files
=
"
$(StyleCopSuccessMarkerFile)
"
Condition
=
"
Exists('$(StyleCopSuccessMarkerFile)')
"
/>
<
Message
Text
=
"
Running Style Analysis...
"
Importance
=
"
high
"
/>
<
Message
Text
=
"
Forcing full StyleCop reanalysis.
"
Condition
=
"
'$(StyleCopForceFullAnalysis)' == 'true'
"
Importance
=
"
Low
"
/>
<!--
Determine what files should be checked. Take all Compile items, but exclude those that have
set ExcludeFromStyleCop=true or ExcludeFromSourceAnalysis=true.
-->
<
ItemGroup
>
<
StyleCopFiles
Include
=
"
@(Compile)
"
Condition
=
"
'%(Compile.ExcludeFromStyleCop)' != 'true' and '%(Compile.ExcludeFromSourceAnalysis)' != 'true'
"
/>
<
StyleCopExcludedFiles
Include
=
"
@(Compile)
"
Condition
=
"
'%(Compile.ExcludeFromStyleCop)' == 'true' or '%(Compile.ExcludeFromSourceAnalysis)' == 'true'
"
/>
</
ItemGroup
>
<
Message
Text
=
"
Analyzing @(StyleCopFiles)
"
Importance
=
"
Low
"
/>
<!--
Show list of what files should be excluded. checked. Take all Compile items, but exclude those that have
set ExcludeFromStyleCop=true or ExcludeFromSourceAnalysis=true.
-->
<
Message
Text
=
"
Excluding @(StyleCopExcludedFiles)
"
Importance
=
"
Normal
"
Condition
=
"
'@(StyleCopExcludedFiles)' != ''
"
/>
<!--
Run the StyleCop MSBuild task.
-->
<
StyleCopTask
ProjectFullPath
=
"
$(MSBuildProjectDirectory)
"
SourceFiles
=
"
@(StyleCopFiles)
"
AdditionalAddinPaths
=
"
@(StyleCopAdditionalAddinPaths)
"
ForceFullAnalysis
=
"
$(StyleCopForceFullAnalysis)
"
DefineConstants
=
"
$(DefineConstants)
"
TreatErrorsAsWarnings
=
"
$(StyleCopTreatErrorsAsWarnings)
"
CacheResults
=
"
$(StyleCopCacheResults)
"
OverrideSettingsFile
=
"
$(StyleCopOverrideSettingsFile)
"
OutputFile
=
"
$(StyleCopOutputFile)
"
MaxViolationCount
=
"
$(StyleCopMaxViolationCount)
"
/>
<!--
Make output files cleanable
-->
<
ItemGroup
>
<
FileWrites
Include
=
"
$(StyleCopOutputFile)
"
/>
<
FileWrites
Include
=
"
$(StyleCopSuccessMarkerFile)
"
/>
</
ItemGroup
>
<
Touch
Files
=
"
$(StyleCopSuccessMarkerFile)
"
AlwaysCreate
=
"
true
"
/>
<!--
Add the StyleCop.cache file to the list of files we've written - so they can be cleaned up on a Build Clean.
-->
<
CreateItem
Include
=
"
StyleCop.Cache
"
Condition
=
"
'$(StyleCopCacheResults)' == 'true'
"
>
<
Output
TaskParameter
=
"
Include
"
ItemName
=
"
FileWrites
"
/>
</
CreateItem
>
</
Target
>
</
Project
>
Back
|
FazBrowse Home
|
New Git URL