Skip to content

Commit ffdbaff

Browse files
committed
Render as Markdown analyzer and code fix
1 parent d535c1c commit ffdbaff

9 files changed

Lines changed: 1056 additions & 5 deletions

LICENSE.md

Lines changed: 35 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
Copyright (c) Rackspace, US Inc. All rights reserved.
1+
Copyright (c) Rackspace, US Inc. All rights reserved.
22

33
Licensed under the Apache License, Version 2.0 (the "License"); you may not use
44
these files except in compliance with the License. You may obtain a copy of the
@@ -10,3 +10,37 @@ Unless required by applicable law or agreed to in writing, software distributed
1010
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
1111
CONDITIONS OF ANY KIND, either express or implied. See the License for the
1212
specific language governing permissions and limitations under the License.
13+
14+
## Third Party Licenses
15+
16+
### CommonMark.NET
17+
18+
The CommonMark.NET library is used under the following license:
19+
20+
> Copyright (c) 2014, Kārlis Gaņģis
21+
> All rights reserved.
22+
>
23+
> Redistribution and use in source and binary forms, with or without
24+
> modification, are permitted provided that the following conditions are met:
25+
>
26+
> * Redistributions of source code must retain the above copyright
27+
> notice, this list of conditions and the following disclaimer.
28+
>
29+
> * Redistributions in binary form must reproduce the above copyright
30+
> notice, this list of conditions and the following disclaimer in the
31+
> documentation and/or other materials provided with the distribution.
32+
>
33+
> * Neither the name of Kārlis Gaņģis nor the names of other contributors
34+
> may be used to endorse or promote products derived from this software
35+
> without specific prior written permission.
36+
>
37+
> THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
38+
> ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
39+
> WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
40+
> DISCLAIMED. IN NO EVENT SHALL COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY
41+
> DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
42+
> (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
43+
> LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
44+
> ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
45+
> (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
46+
> SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

OpenStackNetAnalyzers/OpenStackNetAnalyzers/DocumentValueFromSummaryCodeFix.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ private SyntaxTrivia GetLastDocumentationCommentExteriorTrivia(SyntaxNode node)
169169
.LastOrDefault();
170170
}
171171

172-
private T ReplaceExteriorTrivia<T>(T node, SyntaxTrivia trivia)
172+
public static T ReplaceExteriorTrivia<T>(T node, SyntaxTrivia trivia)
173173
where T : SyntaxNode
174174
{
175175
// Make sure to include a space after the '///' characters.
@@ -180,7 +180,7 @@ private T ReplaceExteriorTrivia<T>(T node, SyntaxTrivia trivia)
180180
(originalTrivia, rewrittenTrivia) => SelectExteriorTrivia(rewrittenTrivia, trivia, triviaWithSpace));
181181
}
182182

183-
private SyntaxTrivia SelectExteriorTrivia(SyntaxTrivia rewrittenTrivia, SyntaxTrivia trivia, SyntaxTrivia triviaWithSpace)
183+
private static SyntaxTrivia SelectExteriorTrivia(SyntaxTrivia rewrittenTrivia, SyntaxTrivia trivia, SyntaxTrivia triviaWithSpace)
184184
{
185185
// if the trivia had a trailing space, make sure to preserve it
186186
if (rewrittenTrivia.ToString().EndsWith(" "))

0 commit comments

Comments
 (0)