PecanProject / pecan

The Predictive Ecosystem Analyzer (PEcAn) is an integrated ecological bioinformatics toolbox.
www.pecanproject.org
Other
199 stars 230 forks source link

Add Script to Identify `Orphaned` Functions in Codebase #3291

Closed Sweetdevil144 closed 1 month ago

Sweetdevil144 commented 1 month ago

Description

This script identifies orphaned functions within our system. It iterates through modules, listing functions and checking if they are utilized within their module or externally. Unutilized functions are categorized as purely orphaned, while those used externally are noted separately. The results are output to a CSV file for further analysis.

Motivation and Context

The motivation behind this change is to clean up the codebase by identifying functions that are no longer in use. This can help in reducing the code size, improving maintainability, and potentially uncovering areas of the code that lack proper integration. It addresses the need for ongoing codebase optimization and cleanliness.

Review Time Estimate

Types of changes

Checklist: