Lint Configuration

Version 0.2.7 Updated Jul 22, 2026

Configure lint behaviour in dylint.toml at the workspace root:

# Diagnostic language (default: en-GB)
locale = "cy"

# Module size threshold (default: 400)
[module_max_lines]
max_lines = 500

# Conditional branch limit (default: 2)
[conditional_max_n_branches]
max_branches = 3

# Custom test attributes
[no_expect_outside_tests]
additional_test_attributes = ["my_framework::test", "wasm_bindgen_test"]

# Additional test markers for `test_must_not_have_example`
[test_must_not_have_example]
additional_test_attributes = ["actix_rt::test", "my_framework::test"]

# Allow panics in main
[no_unwrap_or_else_panic]
allow_in_main = true

# Experimental rstest fixture extraction lint
[rstest_helper_should_be_fixture]
min_calls = 2
min_distinct_tests = 2
require_identical_fixture_arg_names = false
provider_param_attributes = ["case", "values", "files", "future", "context"]
use_source_callee_fallback = false