Skip to contents

Returns a tibble summarizing all currently registered statistical lint rules (built-in plus any user-registered custom rules).

Usage

list_stat_rules(category = NULL, severity = NULL)

Arguments

category

Optional character vector to filter rules by category.

severity

Optional character vector to filter rules by severity ("error", "warning", "info").

Value

A tibble::tibble with columns id, severity, category, title, description, and recommendation.

Examples

list_stat_rules()
#> # A tibble: 20 × 6
#>    id                         severity category title description recommendation
#>    <chr>                      <chr>    <chr>    <chr> <chr>       <chr>         
#>  1 unseeded_randomness        error    reprodu… Unse… "Random nu… "Call set.see…
#>  2 unsafe_parallel_rng        error    paralle… Unsa… "Parallel … "Use RNGkind(…
#>  3 duplicate_parallel_seed    error    paralle… Cons… "Resetting… "Seed once be…
#>  4 preprocessing_before_split error    data_le… Feat… "Scaling, … "Split the da…
#>  5 in_sample_prediction_eval  warning  data_le… Pred… "Evaluatin… "Evaluate pre…
#>  6 uncentered_mlm_interaction warning  modeling Unce… "Raw uncen… "Apply cluste…
#>  7 silent_listwise_mismatch   warning  modeling Pote… "Comparing… "Filter to co…
#>  8 silent_factor_drop         warning  modeling Sile… "Coercing … "Use as.numer…
#>  9 silent_na_coercion         warning  modeling Unch… "Coercing … "Verify coerc…
#> 10 unverified_merge_cardinal… warning  modeling Unve… "Calling m… "Pass relatio…
#> 11 missing_drop_false_matrix  warning  modeling 2D c… "Subsettin… "Pass drop = …
#> 12 implicit_na_rm_masking     warning  modeling Summ… "Discardin… "Audit or ass…
#> 13 equality_on_float          warning  numerics Exac… "Exact == … "Use isTRUE(a…
#> 14 unadjusted_multiple_testi… warning  inferen… Mult… "Running r… "Collect raw …
#> 15 stepwise_selection_unvali… warning  inferen… Unva… "Automated… "Validate ste…
#> 16 missing_convergence_check  warning  modeling Iter… "Mixed-eff… "Check lme4::…
#> 17 global_seed_override_in_fn warning  reprodu… Glob… "Calling b… "Use withr::l…
#> 18 short_logical_literal      warning  hygiene  Shor… "Unlike re… "Spell out TR…
#> 19 cor_without_use_arg        info     modeling cor(… "Omitting … "Pass use = \…
#> 20 absolute_path_in_script    warning  reprodu… Hard… "Machine-s… "Use project-…
list_stat_rules(severity = "error")
#> # A tibble: 4 × 6
#>   id                         severity category  title description recommendation
#>   <chr>                      <chr>    <chr>     <chr> <chr>       <chr>         
#> 1 unseeded_randomness        error    reproduc… Unse… Random num… "Call set.see…
#> 2 unsafe_parallel_rng        error    parallel… Unsa… Parallel e… "Use RNGkind(…
#> 3 duplicate_parallel_seed    error    parallel… Cons… Resetting … "Seed once be…
#> 4 preprocessing_before_split error    data_lea… Feat… Scaling, P… "Split the da…