You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+64-3Lines changed: 64 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -423,15 +423,74 @@ A configuration file allows one to tailor Necessist's behavior with respect to a
423
423
424
424
-`ignored_functions`, `ignored_methods`, `ignored_macros`: A list of strings interpreted as [patterns]. A function, method, or macro (respectively) whose [path] matches a pattern in the list is ignored. Note that `ignored_macros` is used only by the Rust backend currently.
-`ignored_path_disambiguation`: One of the strings `Either`, `Function`, or `Method`. For a [path] that could refer to a function or method ([see below](#paths)), this option influences whether the function or method is ignored.
427
-
-`Either` (default): Ignore if the path matches either an `ignored_functions` or `ignored_methods` pattern.
428
-
-`Function`: Ignore only if the path matches an `ignored_functions` pattern.
429
-
-`Method`: Ignore only if the path matches an `ignored_methods` pattern.
472
+
-`ignored_path_disambiguation = "None"` (default): Ignore if the path matches either an `ignored_functions` or `ignored_methods` pattern.
473
+
-`ignored_path_disambiguation = "Function"`: Ignore only if the path matches an `ignored_functions` pattern.
474
+
-`ignored_path_disambiguation = "Method"`: Ignore only if the path matches an `ignored_methods` pattern.
430
475
431
476
-`ignored_tests`: A list of strings. A test whose name exactly matches a string in the list is ignored. For Mocha-based frameworks (e.g., Anchor and Hardhat), a test name is considered to be a message passed to `it`.
432
477
433
478
-`visit_ignored_arguments`: A boolean indicating whether Necessist should visit the arguments of ignored functions, methods, and macros. The default is `false`.
434
479
480
+
<details>
481
+
482
+
<summary>Rust example</summary>
483
+
484
+
In the [`valid_pattern` fixture]'s [`necessist.toml` file], disabling the use of `visit_ignored_arguments` would make the following no longer a candidate for removal:
-`walkable_functions`: A list of strings interpreted as [patterns]. If a test calls a function that matches the pattern, and the function is declared in the same file as the test, then statements and method calls are removed from the function as though it were a test.
436
495
437
496
### Patterns
@@ -514,6 +573,7 @@ Necessist is licensed and distributed under the AGPLv3 license. [Contact us](mai
0 commit comments