ispell-check-comments

ispell-check-comments is a variable defined in `ispell.el'.
Its value is
t

  • This variable is safe as a file local variable if its value
    satisfies the predicate which is a byte-compiled expression.

Documentation:
Spelling of comments checked when non-nil.
When set to `exclusive', ONLY comments are checked. (For code comments).
Warning! Not checking comments, when a comment start is embedded in strings,
may produce undesired results.

You can customize this variable.