Skip to contents

Create a linter configuration based on all available linters

Usage

all_linters(packages = "lintr", ...)

Arguments

packages

A character vector of packages to search for linters.

...

Arguments of elements to change. If unnamed, the argument is automatically named. If the named argument already exists in the list of linters, it is replaced by the new element. If it does not exist, it is added. If the value is NULL, the linter is removed.

See also

Examples

names(all_linters())
#>  [1] "absolute_path_linter"             "any_duplicated_linter"           
#>  [3] "any_is_na_linter"                 "assignment_linter"               
#>  [5] "backport_linter"                  "boolean_arithmetic_linter"       
#>  [7] "brace_linter"                     "class_equals_linter"             
#>  [9] "commas_linter"                    "commented_code_linter"           
#> [11] "condition_message_linter"         "conjunct_test_linter"            
#> [13] "consecutive_assertion_linter"     "cyclocomp_linter"                
#> [15] "duplicate_argument_linter"        "empty_assignment_linter"         
#> [17] "equals_na_linter"                 "expect_comparison_linter"        
#> [19] "expect_identical_linter"          "expect_length_linter"            
#> [21] "expect_named_linter"              "expect_not_linter"               
#> [23] "expect_null_linter"               "expect_s3_class_linter"          
#> [25] "expect_s4_class_linter"           "expect_true_false_linter"        
#> [27] "expect_type_linter"               "extraction_operator_linter"      
#> [29] "fixed_regex_linter"               "for_loop_index_linter"           
#> [31] "function_argument_linter"         "function_left_parentheses_linter"
#> [33] "function_return_linter"           "if_not_else_linter"              
#> [35] "ifelse_censor_linter"             "implicit_assignment_linter"      
#> [37] "implicit_integer_linter"          "indentation_linter"              
#> [39] "infix_spaces_linter"              "inner_combine_linter"            
#> [41] "is_numeric_linter"                "keyword_quote_linter"            
#> [43] "length_levels_linter"             "length_test_linter"              
#> [45] "lengths_linter"                   "library_call_linter"             
#> [47] "line_length_linter"               "literal_coercion_linter"         
#> [49] "matrix_apply_linter"              "missing_argument_linter"         
#> [51] "missing_package_linter"           "namespace_linter"                
#> [53] "nested_ifelse_linter"             "nonportable_path_linter"         
#> [55] "numeric_leading_zero_linter"      "object_length_linter"            
#> [57] "object_name_linter"               "object_usage_linter"             
#> [59] "outer_negation_linter"            "package_hooks_linter"            
#> [61] "paren_body_linter"                "paste_linter"                    
#> [63] "pipe_call_linter"                 "pipe_consistency_linter"         
#> [65] "pipe_continuation_linter"         "quotes_linter"                   
#> [67] "redundant_equals_linter"          "redundant_ifelse_linter"         
#> [69] "regex_subset_linter"              "repeat_linter"                   
#> [71] "routine_registration_linter"      "scalar_in_linter"                
#> [73] "semicolon_linter"                 "seq_linter"                      
#> [75] "sort_linter"                      "spaces_inside_linter"            
#> [77] "spaces_left_parentheses_linter"   "sprintf_linter"                  
#> [79] "string_boundary_linter"           "strings_as_factors_linter"       
#> [81] "system_file_linter"               "T_and_F_symbol_linter"           
#> [83] "todo_comment_linter"              "trailing_blank_lines_linter"     
#> [85] "trailing_whitespace_linter"       "undesirable_function_linter"     
#> [87] "undesirable_operator_linter"      "unnecessary_concatenation_linter"
#> [89] "unnecessary_lambda_linter"        "unnecessary_nested_if_linter"    
#> [91] "unnecessary_placeholder_linter"   "unreachable_code_linter"         
#> [93] "unused_import_linter"             "vector_logic_linter"             
#> [95] "whitespace_linter"                "yoda_test_linter"