Skip to main content

code

Function code 

Source
pub fn code(path: &Path, ours: &dyn Fn(&Path) -> bool) -> Result<(), Refusal>
Expand description

Whether cuno may rewrite path, a file of the package’s code (cuno fmt, cuno lint --fix): one ours accepts, that is a file and not a link (docs/en/specs/dev-tools.md, “Target files”).