Only enforce multi-line noqa directives for strings (#258)

This commit is contained in:
Charlie Marsh 2022-09-22 13:09:02 -04:00 committed by GitHub
parent 38b19b78b7
commit de9ceb2fe1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 43 additions and 92 deletions

View file

@ -27,7 +27,7 @@ fn check_path(
let lxr: Vec<LexResult> = lexer::make_tokenizer(contents).collect();
// Determine the noqa line for every line in the source.
let noqa_line_for = noqa::extract_line_map(&lxr);
let noqa_line_for = noqa::extract_noqa_line_for(&lxr);
// Run the AST-based checks.
if settings