I am aware there are couple questions already been asked for this use case and I went through Andrew Fawcett blog post having tool as a canvas app Spring Cleaning Apex Code with the Tooling API
I am looking for solution where I am not be hitting any API but a static analysis by parsing Apex Classes from local directory using python Script or Node.Js.
Has anyone tried this before finding unused methods using python Script or Node.JS
I am new to these scripting languages but will make an effort to see if I can achieve this by statically parsing the local directory, if anyone has tried this before any help will be greatly appreciated.
import os
import csv
import xml.etree.ElementTree as ET
orgName = 'myDevOrg'
rootdir = 'Local Directory Path'
classfilename2 = orgName + "fileList2.csv"
methodlistFileName2 = orgName + "methodList2.csv"
I am planning to find out methods from Apex classes and will check references of those methods and like that and if no reference is available then it is unused.