Skip to contents

Opinionated set of linters. Built from lintr::linters_with_defaults() with lots of customizations. See the relevant source code for details.

Usage

default_linters

Format

A named list of lintr::linters.

Examples

names(pkgpurl::default_linters)
#>  [1] "absolute_path_linter"             "any_duplicated_linter"            "any_is_na_linter"                 "assignment_linter"               
#>  [5] "boolean_arithmetic_linter"        "brace_linter"                     "class_equals_linter"              "commas_linter"                   
#>  [9] "commented_code_linter"            "condition_message_linter"         "conjunct_test_linter"             "consecutive_assertion_linter"    
#> [13] "empty_assignment_linter"          "equals_na_linter"                 "expect_comparison_linter"         "expect_length_linter"            
#> [17] "expect_named_linter"              "expect_not_linter"                "expect_null_linter"               "expect_s3_class_linter"          
#> [21] "expect_s4_class_linter"           "expect_true_false_linter"         "expect_type_linter"               "fixed_regex_linter"              
#> [25] "for_loop_index_linter"            "function_argument_linter"         "function_left_parentheses_linter" "if_not_else_linter"              
#> [29] "ifelse_censor_linter"             "implicit_assignment_linter"       "implicit_integer_linter"          "infix_spaces_linter"             
#> [33] "inner_combine_linter"             "is_numeric_linter"                "keyword_quote_linter"             "length_levels_linter"            
#> [37] "length_test_linter"               "lengths_linter"                   "line_length_linter"               "literal_coercion_linter"         
#> [41] "missing_argument_linter"          "nested_ifelse_linter"             "numeric_leading_zero_linter"      "object_length_linter"            
#> [45] "object_name_linter"               "outer_negation_linter"            "paren_body_linter"                "paste_linter"                    
#> [49] "pipe_call_linter"                 "pipe_continuation_linter"         "redundant_equals_linter"          "redundant_ifelse_linter"         
#> [53] "regex_subset_linter"              "repeat_linter"                    "return_linter"                    "scalar_in_linter"                
#> [57] "semicolon_linter"                 "seq_linter"                       "sort_linter"                      "spaces_inside_linter"            
#> [61] "spaces_left_parentheses_linter"   "sprintf_linter"                   "string_boundary_linter"           "system_file_linter"              
#> [65] "T_and_F_symbol_linter"            "todo_comment_linter"              "trailing_blank_lines_linter"      "undesirable_function_linter"     
#> [69] "undesirable_operator_linter"      "unnecessary_concatenation_linter" "unnecessary_nesting_linter"       "unnecessary_placeholder_linter"  
#> [73] "unreachable_code_linter"          "vector_logic_linter"              "whitespace_linter"                "yoda_test_linter"