File tree 3 files changed +8
-10
lines changed
3 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -2611,13 +2611,13 @@ class Type(models.TextChoices):
2611
2611
objects = CodebaseResourceQuerySet .as_manager ()
2612
2612
labels = TaggableManager (through = UUIDTaggedItem , ordering = ["name" ])
2613
2613
2614
- @staticmethod
2615
- def is_white_out_file (file_path ):
2616
- return file_path .endswith (".whiteout" )
2617
-
2618
- def tag_white_out_files (self ):
2619
- if self .is_white_out_file (self .path ):
2620
- self .labels .add ("white-out" )
2614
+ @staticmethod
2615
+ def is_white_out_file (file_path ):
2616
+ return file_path .endswith (".whiteout" )
2617
+
2618
+ def tag_white_out_files (self ):
2619
+ if self .is_white_out_file (self .path ):
2620
+ self .labels .add ("white-out" )
2621
2621
self .save ()
2622
2622
2623
2623
class Meta :
Original file line number Diff line number Diff line change 41
41
from scanpipe .pipes import spdx
42
42
from scanpipe .pipes import update_or_create_dependency
43
43
from scanpipe .pipes import update_or_create_package
44
- from scanpipe .models import CodebaseResource
45
44
46
45
"""
47
46
Resolve packages from manifest, lockfile, and SBOM.
48
47
"""
49
48
50
-
51
49
def resolve_manifest_resources (resource , package_registry ):
52
50
"""Get package data from resource."""
53
51
packages = get_packages_from_manifest (resource .location , package_registry ) or []
Original file line number Diff line number Diff line change @@ -989,7 +989,7 @@ def get_resource_license_summary(project, limit=10):
989
989
if no_licenses :
990
990
top_licenses ["" ] = no_licenses
991
991
992
- return top_licenses
992
+ return top_licenses
993
993
994
994
def get_context_data (self , ** kwargs ):
995
995
context = super ().get_context_data (** kwargs )
You can’t perform that action at this time.
0 commit comments