summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/spandx/gitlab.rb15
1 files changed, 2 insertions, 13 deletions
diff --git a/lib/spandx/gitlab.rb b/lib/spandx/gitlab.rb
index f713091..15df979 100644
--- a/lib/spandx/gitlab.rb
+++ b/lib/spandx/gitlab.rb
@@ -18,20 +18,9 @@ module Spandx
{ version: '2.0', licenses: [], dependencies: [] }.tap do |report|
each do |dependency|
dependency.licenses.each do |license|
- report[:licenses].push({
- id: license.id,
- name: license.name,
- url: license.url,
- count: 0
- })
+ report[:licenses].push(id: license.id, name: license.name, url: license.url)
end
- report[:dependencies].push({
- name: dependency.name,
- description: '',
- url: '',
- licenses: dependency.licenses.map(&:id),
- paths: ['.']
- })
+ report[:dependencies].push(name: dependency.name, licenses: dependency.licenses.map(&:id))
end
end
end