shivasurya / code-pathfinder

Code Pathfinder, the open-source alternative to CodeQL. Designed for precise flow analysis and advanced structural search, it identifies vulnerabilities in source code.
https://codepathfinder.dev/
GNU Affero General Public License v3.0
32 stars 6 forks source link

codepathfinder: Figure out connection between method and doc #34

Closed shivasurya closed 1 month ago

shivasurya commented 1 month ago

Currently we traverse the code tree using tree-sitter, however we're not able to make relation or connectivity between multiple nodes such as Method -> Doc or Doc -> Method.

Figure out efficient way to map them both so that it helps to craft queries like

FIND method_declaration WHERE has_acceptable_doc_comments = 'false'

FIND class_declaration WHERE has_version_doc_comment = 'false'