Merge pull request #589 from PowerShell/werror

Treat C# warnings as errors
This commit is contained in:
Andy Schwartzmeyer 2016-02-24 16:56:35 -08:00
commit 23a83184ff
11 changed files with 16 additions and 1 deletions

View File

@ -7,6 +7,9 @@
"frameworks": {
"netstandard1.5": {
"imports": [ "dnxcore50" ],
"compilationOptions": {
"warningsAsErrors": true
},
"dependencies": {
"NETStandard.Library": "1.0.0-rc3-23819",
"System.Security.SecureString": "1.0.0-*"

View File

@ -15,6 +15,7 @@
"netstandard1.5": {
"imports": [ "dnxcore50" ],
"compilationOptions": {
"warningsAsErrors": true,
"define": [ "_CORECLR" ]
},
"dependencies": {

View File

@ -4,6 +4,7 @@
"authors": [ "garretts", "andschwa" ],
"compilationOptions": {
"warningsAsErrors": true,
"allowUnsafe": true
},

View File

@ -4,6 +4,7 @@
"authors": [ "garretts", "andschwa" ],
"compilationOptions": {
"warningsAsErrors": true,
"allowUnsafe": true
},

View File

@ -5,6 +5,7 @@
"authors": [ "sevoroby", "andschwa" ],
"compilationOptions": {
"warningsAsErrors": true,
"allowUnsafe": true
},

View File

@ -3,6 +3,10 @@
"version": "1.0.0-*",
"authors": [ "andschwa" ],
"compilationOptions": {
"warningsAsErrors": true
},
"configurations": {
"Linux": {
"compilationOptions": {

View File

@ -388,7 +388,7 @@ OPTIONS
this.currentPowerShell.Invoke(null, settings);
}
}
catch (IncompleteParseException e)
catch (IncompleteParseException)
{
incompleteLine = true;
cmd = cmd.Trim();

View File

@ -5,6 +5,7 @@
"authors": [ "andschwa" ],
"compilationOptions": {
"warningsAsErrors": true,
"emitEntryPoint": true
},

View File

@ -4,6 +4,7 @@
"authors": [ "garretts", "andschwa" ],
"compilationOptions": {
"warningsAsErrors": true,
"allowUnsafe": true
},

View File

@ -4,6 +4,7 @@
"authors": [ "garretts", "andschwa" ],
"compilationOptions": {
"warningsAsErrors": true,
"allowUnsafe": true
},

View File

@ -5,6 +5,7 @@
"authors": [ "garretts" ],
"compilationOptions": {
"warningsAsErrors": true,
"allowUnsafe": true
},