3030
3131class  RootFS (Pipeline ):
3232    """ 
33-     A pipeline to analyze a Linux root filesystem aka.  rootfs. 
33+     A pipeline to analyze a Linux root filesystem,  aka rootfs. 
3434    """ 
3535
3636    @classmethod  
@@ -52,7 +52,7 @@ def steps(cls):
5252
5353    def  extract_input_files_to_codebase_directory (self ):
5454        """ 
55-         Extract  root filesystem input archives with extractcode. 
55+         Extracts  root filesystem input archives with extractcode. 
5656        """ 
5757        input_files  =  self .project .inputs ("*" )
5858        target_path  =  self .project .codebase_path 
@@ -68,13 +68,13 @@ def extract_input_files_to_codebase_directory(self):
6868
6969    def  find_root_filesystems (self ):
7070        """ 
71-         Find the  root filesystems in project codebase/. 
71+         Finds  root filesystems in the  project's  codebase/. 
7272        """ 
7373        self .root_filesystems  =  list (rootfs .RootFs .from_project_codebase (self .project ))
7474
7575    def  collect_rootfs_information (self ):
7676        """ 
77-         Collect  rootfs information and store on  project. 
77+         Collects and stores  rootfs information in the  project. 
7878        """ 
7979        rootfs_data  =  {}
8080        for  rfs  in  self .root_filesystems :
@@ -85,14 +85,14 @@ def collect_rootfs_information(self):
8585
8686    def  collect_and_create_codebase_resources (self ):
8787        """ 
88-         Collect  and create  all image files as CodebaseResource. 
88+         Collects  and labels  all image files as CodebaseResource. 
8989        """ 
9090        for  rfs  in  self .root_filesystems :
9191            rootfs .create_codebase_resources (self .project , rfs )
9292
9393    def  collect_and_create_system_packages (self ):
9494        """ 
95-         Collect  installed system packages for each rootfs based on the distro. 
95+         Collects  installed system packages for each rootfs based on the distro. 
9696        The collection of system packages is only available for known distros. 
9797        """ 
9898        with  self .save_errors (rootfs .DistroNotFound , rootfs .DistroNotSupported ):
@@ -101,25 +101,25 @@ def collect_and_create_system_packages(self):
101101
102102    def  tag_uninteresting_codebase_resources (self ):
103103        """ 
104-         Flag remaining  files  not from a system package if they are not worth tracking . 
104+         Flags  files— not worth tracking—that don’t belong to any system packages . 
105105        """ 
106106        rootfs .tag_uninteresting_codebase_resources (self .project )
107107
108108    def  tag_empty_files (self ):
109109        """ 
110-         Flag  empty files. 
110+         Flags  empty files. 
111111        """ 
112112        rootfs .tag_empty_codebase_resources (self .project )
113113
114114    def  scan_for_application_packages (self ):
115115        """ 
116-         Scan  unknown resources for packages infos . 
116+         Scans  unknown resources for packages information . 
117117        """ 
118118        scancode .scan_for_application_packages (self .project )
119119
120120    def  match_not_analyzed_to_system_packages (self ):
121121        """ 
122-         Match  not-yet-analyzed files to files already related  to system packages. 
122+         Matches " not-yet-analyzed"  files to files already belong  to system packages. 
123123        """ 
124124        rootfs .match_not_analyzed (
125125            self .project ,
@@ -129,7 +129,7 @@ def match_not_analyzed_to_system_packages(self):
129129
130130    def  match_not_analyzed_to_application_packages (self ):
131131        """ 
132-         Match  not-yet-analyzed files to files already related  to application packages. 
132+         Matches " not-yet-analyzed"  files to files already belong  to application packages. 
133133        """ 
134134        # TODO: do it one rootfs at a time e.g. for rfs in self.root_filesystems: 
135135        rootfs .match_not_analyzed (
@@ -140,18 +140,18 @@ def match_not_analyzed_to_application_packages(self):
140140
141141    def  scan_for_files (self ):
142142        """ 
143-         Scan  unknown resources for copyrights, licenses, emails, and urls. 
143+         Scans  unknown resources for copyrights, licenses, emails, and urls. 
144144        """ 
145145        scancode .scan_for_files (self .project )
146146
147147    def  analyze_scanned_files (self ):
148148        """ 
149-         Analyze  single file scan results for completeness. 
149+         Analyzes  single file scan results for completeness. 
150150        """ 
151151        pipes .analyze_scanned_files (self .project )
152152
153153    def  tag_not_analyzed_codebase_resources (self ):
154154        """ 
155-         Check  for leftover files for sanity. We  should have  none. 
155+         Checks  for any  leftover files for sanity; there  should be  none. 
156156        """ 
157157        pipes .tag_not_analyzed_codebase_resources (self .project )
0 commit comments