Expand description
Finds non-documentation, non-directive comments in source files and unified diffs.
Structs§
Constants§
Functions§
- added_
comments - Finds comments on lines added by
diff, reading each supported file withread. - added_
lines - Maps each new path in a unified diff to the 1-based line numbers of its added lines.
- comments_
in - Lexes
sourceand returns every comment that counts, in file order. - flag
- Formats a review flag for added comments, or
Nonewhen none were found. - is_
supported - True when
pathhas a supported source-file extension.