It seems that a tool called Sourcetrail has been released, and it seems to be interesting, so I touched it. There was a article you have already touched, but it's cute. Ubuntu.
I've used it, and the big repository that came to my mind was Django, so I'll try it with a combination of Python and Django.
You can download it from Sourcetrail (GitHub) Release Page. Download the 64-bit Linux tar file
Then unpack it to any location with tar -xzf Sourcetrail_2019_4_61_Linux_64bit.tar.gz -C path /
.
The version name is appropriate.
Enter the Sourcetrail directory you answered and run ʻinstall.sh` with root privileges to complete the installation.
A screen like this will appear.
When you do a New Project, the following screen will appear, so select it normally.
There is only one Python, so choose this one. Note that Python support seems to be beta phase.
Default Python varies from person to person, so specify as appropriate.
In Files & Directories to index
(files and directories to index), specifydjango / django /
or the directory you want to check the contents of.
After checking the next screen, let's create it.
indexing
When a screen like this appears, it's the next step. It seems that they are indexing well.
There are also 830 Files, so it will take some time. (It took about 40 minutes in my environment) It seems that one of the purposes is to reduce the trouble of code reading in large-scale development, so I would like to see if it can be used properly with a repository as large as Django.
When this screen appears, it's done! I haven't seen the details of the 65 errors ...
It will appear in the list like this.
Open the appropriate Class (HttpResponse) and the relationships will be displayed in a list. The corresponding code is on the right.
In this state, if you open an appropriate Function (serialize displayed in HttpResponse),
It opens like this. On the right side, it seems that the definition part and the call part are displayed. (Def is at the top)
This speeds up code reading. Currently, the only supported languages are C, C ++, Java, and Python, but if you are using this language, you should try it once.
Recommended Posts