Skip to main content

Module comment_lint

Module comment_lint 

Source
Expand description

Finds non-documentation, non-directive comments in source files and unified diffs.

Structs§

Comment

Constants§

DIRECTIVES

Functions§

added_comments
Finds comments on lines added by diff, reading each supported file with read.
added_lines
Maps each new path in a unified diff to the 1-based line numbers of its added lines.
comments_in
Lexes source and returns every comment that counts, in file order.
flag
Formats a review flag for added comments, or None when none were found.
is_supported
True when path has a supported source-file extension.