Skip to content

Commit

Permalink
Set warningsAsErrors to true and fixed warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
davidfowl committed May 3, 2015
1 parent ca3a712 commit bac175c
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 6 deletions.
3 changes: 3 additions & 0 deletions src/OmniSharp.Stdio/project.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
{
"version": "1.0.0-*",
"description": "ASP.NET 5 web server for stdio",
"compilationOptions": {
"warningsAsErrors": true
},
"dependencies": {
"Microsoft.AspNet.Hosting": "1.0.0-beta3",
"Microsoft.AspNet.Http.Interfaces": "1.0.0-beta3",
Expand Down
3 changes: 3 additions & 0 deletions src/OmniSharp/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"version": "1.0.0-*",
"compilationOptions": {
"warningsAsErrors": true
},
"dependencies": {
"OmniSharp.Stdio": "1.0.0-*",
"Kestrel": "1.0.0-beta3",
Expand Down
3 changes: 3 additions & 0 deletions tests/OmniSharp.Stdio.Tests/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"version": "1.0.0-*",
"compilationOptions": {
"warningsAsErrors": true
},
"dependencies": {
"OmniSharp.Stdio": "1.0.0-*",
"xunit": "2.1.0-beta1-*",
Expand Down
9 changes: 4 additions & 5 deletions tests/OmniSharp.Tests/BufferManagerFacts.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using OmniSharp.Models;
using Xunit;

Expand All @@ -10,7 +9,7 @@ namespace OmniSharp.Tests
public class BufferManagerFacts
{
[Fact]
public async Task UpdateBufferIgnoresVoidRequests()
public void UpdateBufferIgnoresVoidRequests()
{
var workspace = TestHelpers.CreateSimpleWorkspace("class C {}", "test.cs");
Assert.Equal(2, workspace.CurrentSolution.Projects.Count());
Expand All @@ -29,7 +28,7 @@ public async Task UpdateBufferIgnoresVoidRequests()
}

[Fact]
public async Task UpdateBufferIgnoresFilePathsThatDontMatchAProjectPath()
public void UpdateBufferIgnoresFilePathsThatDontMatchAProjectPath()
{
var workspace = GetWorkspaceWithProjects();

Expand All @@ -39,7 +38,7 @@ public async Task UpdateBufferIgnoresFilePathsThatDontMatchAProjectPath()
}

[Fact]
public async Task UpdateBufferFindsProjectBasedOnPath()
public void UpdateBufferFindsProjectBasedOnPath()
{
var workspace = GetWorkspaceWithProjects();

Expand All @@ -54,7 +53,7 @@ public async Task UpdateBufferFindsProjectBasedOnPath()
}

[Fact]
public async Task UpdateBufferFindsProjectBasedOnNearestPath()
public void UpdateBufferFindsProjectBasedOnNearestPath()
{
var workspace = new OmnisharpWorkspace();

Expand Down
2 changes: 1 addition & 1 deletion tests/OmniSharp.Tests/DocumentationConverterFacts.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ namespace OmniSharp.Tests
public class DocumentationConverterFacts
{
[Fact]
public async Task Converts_xml_documentation_to_plain_text()
public void Converts_xml_documentation_to_plain_text()
{
var documentation = @"
<member name=""M:TestNamespace.TestClass.GetZero"">
Expand Down
3 changes: 3 additions & 0 deletions tests/OmniSharp.Tests/project.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"version": "1.0.0-*",
"compilationOptions": {
"warningsAsErrors": true
},
"dependencies": {
"OmniSharp": "1.0.0-*",
"xunit": "2.1.0-beta1-*",
Expand Down

0 comments on commit bac175c

Please sign in to comment.