This repository has been archived by the owner on Mar 22, 2023. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove nav bar dropdown menu; build inspection details off xml-docs. …
…todo: get xml-docs from tags using GitHub API.
- Loading branch information
1 parent
e41cc97
commit 9d9c8a7
Showing
102 changed files
with
61,819 additions
and
25,541 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
37 changes: 37 additions & 0 deletions
37
RubberduckWeb/RubberduckWeb.Tests/FormattedCodeBlockTests.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
using Microsoft.VisualStudio.TestTools.UnitTesting; | ||
using RubberduckWeb.VBA; | ||
|
||
namespace RubberduckWeb.Tests | ||
{ | ||
[TestClass] | ||
public class FormattedCodeBlockTests | ||
{ | ||
[TestMethod] | ||
public void IndentsWithNonBreakingSpaces() | ||
{ | ||
var code = @" | ||
Public Sub DoSomething() | ||
Dim foo As Long | ||
foo = 12 ' assignment is redundant | ||
foo = 34 | ||
End Sub | ||
"; | ||
var expected = @" | ||
<span class=""keyword"">Public</span> <span class=""keyword"">Sub</span> DoSomething()<br/> | ||
<span class=""keyword""Dim</span> foo <span class=""keyword"">As</span> <span class=""keyword"">Long</span><br/> | ||
foo = 12 <span class=""comment""' assignment is redundant</span></br> | ||
foo = 34<<br/> | ||
<span class=""keyword"">End Sub</span><br/> | ||
".Replace("\n", string.Empty); | ||
|
||
var builder = new FormattedCodeBlockBuilder(); | ||
var result = builder.Format(code); | ||
Assert.AreEqual(expected, result); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<packages> | ||
<package id="Microsoft.AspNet.Mvc" version="5.2.3" targetFramework="net452" /> | ||
<package id="Microsoft.AspNet.Razor" version="3.2.3" targetFramework="net452" /> | ||
<package id="Microsoft.AspNet.WebPages" version="3.2.3" targetFramework="net452" /> | ||
<package id="Microsoft.AspNet.Mvc" version="5.2.7" targetFramework="net46" /> | ||
<package id="Microsoft.AspNet.Razor" version="3.2.7" targetFramework="net46" /> | ||
<package id="Microsoft.AspNet.WebPages" version="3.2.7" targetFramework="net46" /> | ||
<package id="Microsoft.Web.Infrastructure" version="1.0.0.0" targetFramework="net452" /> | ||
<package id="Newtonsoft.Json" version="6.0.4" targetFramework="net452" /> | ||
<package id="Newtonsoft.Json" version="12.0.2" targetFramework="net46" /> | ||
<package id="System.Runtime" version="4.0.20" targetFramework="net46" /> | ||
</packages> |
145 changes: 0 additions & 145 deletions
145
RubberduckWeb/RubberduckWeb/App_Start/NinjectWebCommon.cs
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.