@@ -26,67 +26,67 @@ pub fn code_to_rule(linter: Linter, code: &str) -> Option<Rule> {
2626 Some ( match ( linter, code) {
2727 // pycodestyle errors
2828 ( Pycodestyle , "E101" ) => Rule :: MixedSpacesAndTabs ,
29- #[ cfg( debug_assertions ) ]
29+ #[ cfg( feature = "logical_lines" ) ]
3030 ( Pycodestyle , "E111" ) => Rule :: IndentationWithInvalidMultiple ,
31- #[ cfg( debug_assertions ) ]
31+ #[ cfg( feature = "logical_lines" ) ]
3232 ( Pycodestyle , "E112" ) => Rule :: NoIndentedBlock ,
33- #[ cfg( debug_assertions ) ]
33+ #[ cfg( feature = "logical_lines" ) ]
3434 ( Pycodestyle , "E113" ) => Rule :: UnexpectedIndentation ,
35- #[ cfg( debug_assertions ) ]
35+ #[ cfg( feature = "logical_lines" ) ]
3636 ( Pycodestyle , "E114" ) => Rule :: IndentationWithInvalidMultipleComment ,
37- #[ cfg( debug_assertions ) ]
37+ #[ cfg( feature = "logical_lines" ) ]
3838 ( Pycodestyle , "E115" ) => Rule :: NoIndentedBlockComment ,
39- #[ cfg( debug_assertions ) ]
39+ #[ cfg( feature = "logical_lines" ) ]
4040 ( Pycodestyle , "E116" ) => Rule :: UnexpectedIndentationComment ,
41- #[ cfg( debug_assertions ) ]
41+ #[ cfg( feature = "logical_lines" ) ]
4242 ( Pycodestyle , "E117" ) => Rule :: OverIndented ,
43- #[ cfg( debug_assertions ) ]
43+ #[ cfg( feature = "logical_lines" ) ]
4444 ( Pycodestyle , "E201" ) => Rule :: WhitespaceAfterOpenBracket ,
45- #[ cfg( debug_assertions ) ]
45+ #[ cfg( feature = "logical_lines" ) ]
4646 ( Pycodestyle , "E202" ) => Rule :: WhitespaceBeforeCloseBracket ,
47- #[ cfg( debug_assertions ) ]
47+ #[ cfg( feature = "logical_lines" ) ]
4848 ( Pycodestyle , "E203" ) => Rule :: WhitespaceBeforePunctuation ,
49- #[ cfg( debug_assertions ) ]
49+ #[ cfg( feature = "logical_lines" ) ]
5050 ( Pycodestyle , "E211" ) => Rule :: WhitespaceBeforeParameters ,
51- #[ cfg( debug_assertions ) ]
51+ #[ cfg( feature = "logical_lines" ) ]
5252 ( Pycodestyle , "E221" ) => Rule :: MultipleSpacesBeforeOperator ,
53- #[ cfg( debug_assertions ) ]
53+ #[ cfg( feature = "logical_lines" ) ]
5454 ( Pycodestyle , "E222" ) => Rule :: MultipleSpacesAfterOperator ,
55- #[ cfg( debug_assertions ) ]
55+ #[ cfg( feature = "logical_lines" ) ]
5656 ( Pycodestyle , "E223" ) => Rule :: TabBeforeOperator ,
57- #[ cfg( debug_assertions ) ]
57+ #[ cfg( feature = "logical_lines" ) ]
5858 ( Pycodestyle , "E224" ) => Rule :: TabAfterOperator ,
59- #[ cfg( debug_assertions ) ]
59+ #[ cfg( feature = "logical_lines" ) ]
6060 ( Pycodestyle , "E225" ) => Rule :: MissingWhitespaceAroundOperator ,
61- #[ cfg( debug_assertions ) ]
61+ #[ cfg( feature = "logical_lines" ) ]
6262 ( Pycodestyle , "E226" ) => Rule :: MissingWhitespaceAroundArithmeticOperator ,
63- #[ cfg( debug_assertions ) ]
63+ #[ cfg( feature = "logical_lines" ) ]
6464 ( Pycodestyle , "E227" ) => Rule :: MissingWhitespaceAroundBitwiseOrShiftOperator ,
65- #[ cfg( debug_assertions ) ]
65+ #[ cfg( feature = "logical_lines" ) ]
6666 ( Pycodestyle , "E228" ) => Rule :: MissingWhitespaceAroundModuloOperator ,
67- #[ cfg( debug_assertions ) ]
67+ #[ cfg( feature = "logical_lines" ) ]
6868 ( Pycodestyle , "E231" ) => Rule :: MissingWhitespace ,
69- #[ cfg( debug_assertions ) ]
69+ #[ cfg( feature = "logical_lines" ) ]
7070 ( Pycodestyle , "E251" ) => Rule :: UnexpectedSpacesAroundKeywordParameterEquals ,
71- #[ cfg( debug_assertions ) ]
71+ #[ cfg( feature = "logical_lines" ) ]
7272 ( Pycodestyle , "E252" ) => Rule :: MissingWhitespaceAroundParameterEquals ,
73- #[ cfg( debug_assertions ) ]
73+ #[ cfg( feature = "logical_lines" ) ]
7474 ( Pycodestyle , "E261" ) => Rule :: TooFewSpacesBeforeInlineComment ,
75- #[ cfg( debug_assertions ) ]
75+ #[ cfg( feature = "logical_lines" ) ]
7676 ( Pycodestyle , "E262" ) => Rule :: NoSpaceAfterInlineComment ,
77- #[ cfg( debug_assertions ) ]
77+ #[ cfg( feature = "logical_lines" ) ]
7878 ( Pycodestyle , "E265" ) => Rule :: NoSpaceAfterBlockComment ,
79- #[ cfg( debug_assertions ) ]
79+ #[ cfg( feature = "logical_lines" ) ]
8080 ( Pycodestyle , "E266" ) => Rule :: MultipleLeadingHashesForBlockComment ,
81- #[ cfg( debug_assertions ) ]
81+ #[ cfg( feature = "logical_lines" ) ]
8282 ( Pycodestyle , "E271" ) => Rule :: MultipleSpacesAfterKeyword ,
83- #[ cfg( debug_assertions ) ]
83+ #[ cfg( feature = "logical_lines" ) ]
8484 ( Pycodestyle , "E272" ) => Rule :: MultipleSpacesBeforeKeyword ,
85- #[ cfg( debug_assertions ) ]
85+ #[ cfg( feature = "logical_lines" ) ]
8686 ( Pycodestyle , "E273" ) => Rule :: TabAfterKeyword ,
87- #[ cfg( debug_assertions ) ]
87+ #[ cfg( feature = "logical_lines" ) ]
8888 ( Pycodestyle , "E274" ) => Rule :: TabBeforeKeyword ,
89- #[ cfg( debug_assertions ) ]
89+ #[ cfg( feature = "logical_lines" ) ]
9090 ( Pycodestyle , "E275" ) => Rule :: MissingWhitespaceAfterKeyword ,
9191 ( Pycodestyle , "E401" ) => Rule :: MultipleImportsOnOneLine ,
9292 ( Pycodestyle , "E402" ) => Rule :: ModuleImportNotAtTopOfFile ,
0 commit comments