Skip to content

Commit

Permalink
feat(reports): add references
Browse files Browse the repository at this point in the history
Add references (this might not be correct).

#44,#187
  • Loading branch information
gregswindle committed Feb 18, 2018
1 parent d6c982f commit 6ba9d95
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/formatters/md/.templates/en/crc-model-template.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ <h3><samp><%=_.get(crcModel, 'class.meta.kind') %><code><%- _.get(crcModel, 'cla
<% if (_.isEmpty(crcModel.responsibilities)){%>None found.
<%}else{%>
<ol>
<% _.forEach(crcModel.responsibilities, responsibility => {%>
<li><strong><%= responsibility.name %></strong>: Provide "<%= responsibility.description %>"</li>
<% _.forEach(crcModel.responsibilities.descriptions, description => {%>
<li><%= description %></li>
<%}); %>
</ol>
<%}%>
Expand Down Expand Up @@ -72,7 +72,7 @@ <h3><samp><%=_.get(crcModel, 'class.meta.kind') %><code><%- _.get(crcModel, 'cla
<% if (_.gt(_.get(crcModel, 'class.meta.references.length'), 0)) { %>
<ol>
<% _.forEach(_.get(crcModel, 'class.meta.references'), (ref) => { %>
<li>File name: <samp>[<%= ref.start %> : <%= ref.end %>]</samp></li>
<li>File name: <samp><%= ref.identifier.name %> [<%= ref.identifier.start %> : <%= ref.identifier.end %>]</samp></li>
<% }) %>
</ol>
<% } %>
Expand Down

0 comments on commit 6ba9d95

Please sign in to comment.