File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
fossid/src/main/resources/templates/asciidoc
freemarker/src/main/kotlin Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -86,11 +86,11 @@ License(s):
8686| Source Location | pURL | License | File | URL | Score | Release Date
8787
8888.${snippetCount*2} +|
89- [#if helper.isFullFileLocation(sourceLocation) ]
90- Full match
91- [#else ]
89+ [#if sourceLocation.hasLineRange ]
9290Partial match +
9391${sourceLocation.startLine?c } -${sourceLocation.endLine?c }
92+ [#else ]
93+ Full match
9494[/#if ]
9595
9696[#list snippetFinding.snippets as snippet ]
Original file line number Diff line number Diff line change @@ -339,12 +339,6 @@ class FreemarkerTemplateProcessor(
339339 fun groupSnippetsBySourceLines (snippetFindings : Collection <SnippetFinding >): Map <TextLocation , SnippetFinding > =
340340 snippetFindings.associateBy { it.sourceLocation }
341341
342- /* *
343- * Return a flag if the given [sourceLocation] refers to the full source file.
344- */
345- @Suppress(" unused" ) // This function is used in the templates.
346- fun isFullFileLocation (sourceLocation : TextLocation ) = ! sourceLocation.hasLineRange
347-
348342 /* *
349343 * Collect all the licenses present in a collection of [SnippetFinding]s.
350344 */
You can’t perform that action at this time.
0 commit comments