...
 
Commits (2)
......@@ -10,3 +10,8 @@ Style/FrozenStringLiteralComment:
Metrics/BlockLength:
Exclude:
- 'spec/**/*.rb'
- 'lib/debci/api.rb' # documentation
Metrics/ClassLength:
Exclude:
- 'lib/debci/api.rb' # documentation
......@@ -321,11 +321,18 @@ Metrics/AbcSize:
# Configuration parameters: CountComments, ExcludedMethods.
Metrics/BlockLength:
Max: 260
Exclude:
- 'lib/debci/api.rb'
# Offense count: 4
# Configuration parameters: CountComments.
Metrics/ClassLength:
Max: 299
Exclude:
- 'lib/debci/api.rb'
# Offense count: 2
Metrics/CyclomaticComplexity:
......
......@@ -2,7 +2,7 @@
<ul class='list-group' style='max-width: 400px'>
<% @results.each do |result| %>
<li class='list-group-item'>
<a href='/packages/<%= result.package[0] %>/<%= result.package %>'>
<a href='/packages/<%= result.package.match(/^((lib)?.)/)[0] %>/<%= result.package %>'>
<%= result.package %>
</a></li>
<% end %>
......