File tree Expand file tree Collapse file tree 3 files changed +8
-10
lines changed Expand file tree Collapse file tree 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):
26112611 objects = CodebaseResourceQuerySet .as_manager ()
26122612 labels = TaggableManager (through = UUIDTaggedItem , ordering = ["name" ])
26132613
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" )
26212621 self .save ()
26222622
26232623 class Meta :
Original file line number Diff line number Diff line change 4141from scanpipe .pipes import spdx
4242from scanpipe .pipes import update_or_create_dependency
4343from scanpipe .pipes import update_or_create_package
44- from scanpipe .models import CodebaseResource
4544
4645"""
4746Resolve packages from manifest, lockfile, and SBOM.
4847"""
4948
50-
5149def resolve_manifest_resources (resource , package_registry ):
5250 """Get package data from resource."""
5351 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):
989989 if no_licenses :
990990 top_licenses ["" ] = no_licenses
991991
992- return top_licenses
992+ return top_licenses
993993
994994 def get_context_data (self , ** kwargs ):
995995 context = super ().get_context_data (** kwargs )
You can’t perform that action at this time.
0 commit comments