@@ -941,6 +941,10 @@ impl Analyzer {
941941 // Original language analyzers
942942 // ============================================================
943943
944+ /// Accumulate Rust statistics and append heuristic findings for `file_path`.
945+ /// Dangerous-pattern checks exclude string contents, comments, `cfg`-selected
946+ /// test bodies and `should_panic` bodies. Panic counts and findings also exclude
947+ /// test paths and build scripts.
944948 fn analyze_rust (
945949 & self ,
946950 content : & str ,
@@ -1767,6 +1771,9 @@ impl Analyzer {
17671771 false
17681772 }
17691773
1774+ /// Accumulate C/C++ statistics and append heuristic findings for `file_path`.
1775+ /// Unchecked malloc findings include one-based line numbers for suppression
1776+ /// and omit allocations with a recognised nearby null check.
17701777 fn analyze_c_cpp (
17711778 & self ,
17721779 content : & str ,
@@ -2012,6 +2019,8 @@ impl Analyzer {
20122019 Ok ( ( ) )
20132020 }
20142021
2022+ /// Accumulate Go statistics and append heuristic concurrency, unsafe pointer,
2023+ /// command execution and cryptography findings located at `file_path`.
20152024 fn analyze_go (
20162025 & self ,
20172026 content : & str ,
@@ -2141,6 +2150,8 @@ impl Analyzer {
21412150 Ok ( ( ) )
21422151 }
21432152
2153+ /// Accumulate Python I/O and threading counts and append heuristic loop,
2154+ /// code execution, deserialisation, command and cryptography findings for `file_path`.
21442155 fn analyze_python (
21452156 & self ,
21462157 content : & str ,
@@ -3168,6 +3179,9 @@ impl Analyzer {
31683179 }
31693180 }
31703181
3182+ /// Accumulate OCaml statistics and append heuristic findings for `file_path`.
3183+ /// Classify `Obj.magic` as proof drift when Coq extraction markers are present,
3184+ /// or as unsafe type coercion otherwise.
31713185 fn analyze_ocaml (
31723186 & self ,
31733187 content : & str ,
@@ -4320,6 +4334,8 @@ impl Analyzer {
43204334 Ok ( ( ) )
43214335 }
43224336
4337+ /// Accumulate Odin operation counts and append a Medium unsafe-code finding
4338+ /// at `file_path` when `rawptr` occurs in the content.
43234339 fn analyze_odin (
43244340 & self ,
43254341 content : & str ,
@@ -4498,6 +4514,9 @@ impl Analyzer {
44984514 // Config languages (Nickel, Nix)
44994515 // ============================================================
45004516
4517+ /// Accumulate Nix/Nickel I/O counts and append Nix command and unpinned-flake findings.
4518+ /// Uses `file_path` for file-type checks, finding locations and the sibling
4519+ /// `flake.lock` lookup on disk.
45014520 fn analyze_config (
45024521 & self ,
45034522 content : & str ,
@@ -4602,6 +4621,9 @@ impl Analyzer {
46024621 // Shell scripting
46034622 // ============================================================
46044623
4624+ /// Accumulate shell I/O counts and append heuristic command, permission and
4625+ /// temporary-path findings for `file_path`. Unquoted expansion findings require
4626+ /// more than 20 `$VAR` matches after quoted string contents are removed.
46054627 fn analyze_shell (
46064628 & self ,
46074629 content : & str ,
@@ -5035,6 +5057,8 @@ impl Analyzer {
50355057 // Cross-language security checks (run on ALL files)
50365058 // ============================================================
50375059
5060+ /// Append heuristic protocol, hardcoded secret and excessive comment-marker
5061+ /// findings located at `file_path`, independently of the detected language.
50385062 fn analyze_cross_language (
50395063 & self ,
50405064 content : & str ,
0 commit comments