User:Bugman/subsystems: Difference between revisions

From FlightGear wiki
Jump to navigation Jump to search
(→‎Refactoring: Script update to match the find_subsystems.py script.)
Line 2,602: Line 2,602:


         # First find all subsystems.
         # First find all subsystems.
         subsystems = FindSubsystems()
         sub = FindSubsystems()


         # Generate a list of files to skip.
         # Generate a list of files to skip.
Line 2,616: Line 2,616:
             blacklist.append(file_name)
             blacklist.append(file_name)


         # Loop over all derived classes.
         # Loop over all derived class declarations.
         print("\nYet to be updated:")
         print("\nYet to be updated:")
         for storage_list in subsystems.subsystems + subsystems.groups:
         for subsystem in sub.subsystems[0] + sub.subsystems[1] + sub.subsystems[2] + sub.subsystems[3] + sub.groups[0] + sub.groups[1] + sub.groups[2] + sub.groups[3]:
             for subsystem in storage_list:
             if subsystem.declaration_file not in blacklist:
                if subsystem.file_name not in blacklist:
                print("    %s: %s" % (subsystem.declaration_file, subsystem))
                    print("    %s: %s" % (subsystem.file_name, subsystem))





Revision as of 08:42, 7 May 2018

Tracking down subsystems

Script

The following script is for finding all FlightGear dependencies:

All subsystems

The result is:

Refactoring

To check that all subsystems on a branch have been updated or refactored: