Skip to content

Commit 378159d

Browse files
author
Kapil Borle
committed
Build against CoreCLR binaries
Uses dotnet cli to build ScriptAnalyzer binaries.
1 parent 2b9b9d8 commit 378159d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+143
-2
lines changed

Engine/project.json

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
{
2+
"name": "Microsoft.Windows.PowerShell.ScriptAnalyzer",
3+
"version": "1.0.0-*",
4+
"authors": ["kapilmb"],
5+
// "buildOptions": {
6+
// "emitEntryPoint": true
7+
// },
8+
9+
// "configurations": {
10+
// "CoreCLR": {
11+
// "buildOptions": {
12+
// "define": [ "CORECLR" ]
13+
// }
14+
// }
15+
// },
16+
17+
"dependencies": {
18+
"Microsoft.NETCore.App": {
19+
"type": "platform",
20+
"version": "1.0.0-rc2-3002702"
21+
},
22+
"System.Management.Automation": "1.0.0-b2682"
23+
},
24+
25+
26+
// "frameworks": {
27+
// "netcoreapp1.0": {
28+
// "imports": [ "dnxcore50", "portable-net45+win8" ],
29+
// "dependencies": {
30+
// "Microsoft.NETCore.App": "1.0.0-rc2-3002485"
31+
// }
32+
// }
33+
// },
34+
35+
"frameworks": {
36+
"netcoreapp1.0": {
37+
// "netstandard1.5": {
38+
"imports": "dnxcore50",
39+
40+
"buildOptions": {
41+
"define": [ "CORECLR" ],
42+
"compile": {
43+
"exclude": [
44+
"SafeDirectoryCatalog.cs",
45+
"Strings.Designer.cs",
46+
"Commands/GetScriptAnalyzerLoggerCommand.cs"
47+
]
48+
}
49+
}
50+
}
51+
}
52+
53+
// "runtimes": {
54+
// // "ubuntu.14.04-x64": { },
55+
// // "centos.7.1-x64": { },
56+
// // "win7-x64": { },
57+
// // "osx.10.10-x64": { },
58+
// // "osx.10.11-x64": { }
59+
// "win81-x64": { }
60+
// }
61+
}

Rules/AvoidAlias.cs

6.07 KB
Binary file not shown.
4.85 KB
Binary file not shown.
6.49 KB
Binary file not shown.

Rules/AvoidEmptyCatchBlock.cs

4.03 KB
Binary file not shown.

Rules/AvoidGlobalVars.cs

4.3 KB
Binary file not shown.

Rules/AvoidInvokingEmptyMembers.cs

4.87 KB
Binary file not shown.
Binary file not shown.

Rules/AvoidPositionalParameters.cs

5.39 KB
Binary file not shown.

Rules/AvoidReservedCharInCmdlet.cs

5.04 KB
Binary file not shown.

0 commit comments

Comments
 (0)