Sourcetrail: инструмент, чтобы разобраться в чужом коде и не выстрелить себе в голову





I regret to report that I've just recently looked again at my programs for prime factors and tic-tac-toe, and they are entirely free of any sort of comments or documentation.

— Donald E. Knuth



, , .



, write-only .



, .



- , :





, . , . . .



  • , , . - , , .
  • AppleStore, Wireguard .
  • . , .
  • , .
  • PHP, JavaScript.




. 1 Exploits of a mom.



. , , . .



Sourcetrail



Sourcetrail , , . .





. 2 Sourcetrail.



  • . . .
  • . , .
  • .


Sourcetrail . - . Sourcetrail .





. 3 .



; , — ; — , — . :



  • C/C++;
  • Java;
  • Python.




. 4 Run.



tictactoe_cpp Run. , Run main. , .



  • : → .
  • : → .
  • : → .
  • : → .




5 .



() ().





6 .



Sourcetrail . . , . , . . .



trail controls .





. 7 .



, , -. . 2 , . — . , , . .



trail controls custom trail, . , , , .





. 8 custom trail.



Sourcetrail



Sourcetrail Windows, macOS Linux. Windows setup.exe, macOS . Linux :



  1. .tar.gz Sourcetrail.sh;
  2. AppImage, chmod + x filename .


.



  • Windows
  • macOS ~/Library/Application Support/Sourcetrail;
  • Linux ~/.config/sourcetrail.


Sourcetrail Java 8 Java . Sourcetrail, JRE. Sourcetrail 32- 32- JRE, 64- — 64- JRE.



IDE



Sourcetrail IDE . , github.



  • Atom;
  • CLion;
  • Eclipse;
  • Emacs;
  • IntelliJ IDEA;
  • Qt Creator;
  • Sublime Text;
  • Vim;
  • Visual Studio Code.


CLI



, Sourcetrail.



sourcetrail index [options...] projectfile

      
      





options:



--help;
--version;
--project-file #  .srctrlprj .

      
      





:



sourcetrail config [options...]
--help;
--indexer-threads #  ;
--use-processes #,    C/C++   ;
--logging-enabled #/    /  ;
--verbose-indexer-logging-enabled #  ,  ;
--jvm-path;
--jvm-max-memory;
--maven-path #   maven;
--jre-system-library-paths #  jar   JRE;
--global-header-search-paths;
--global-framework-search-paths;
--show #   ;

      
      







, , , . , Sourcetrail , . , .






All Articles