Skip to content

Commit

Permalink
change lintsource to imports
Browse files Browse the repository at this point in the history
  • Loading branch information
diceroll123 committed Oct 19, 2023
1 parent 5c53f4b commit 1b23b98
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion crates/ruff_linter/src/registry.rs
Original file line number Diff line number Diff line change
Expand Up @@ -297,7 +297,9 @@ impl Rule {
| Rule::UselessSemicolon
| Rule::UTF8EncodingDeclaration => LintSource::Tokens,
Rule::IOError => LintSource::Io,
Rule::UnsortedImports | Rule::MissingRequiredImport => LintSource::Imports,
Rule::UnsortedImports | Rule::MissingRequiredImport | Rule::NonAsciiImportName => {
LintSource::Imports
}
Rule::ImplicitNamespacePackage | Rule::InvalidModuleName => LintSource::Filesystem,
Rule::IndentationWithInvalidMultiple
| Rule::IndentationWithInvalidMultipleComment
Expand Down

0 comments on commit 1b23b98

Please sign in to comment.