Skip to content

duplicate_underscore_args ​

Default: Enabled

Source Code

What it does ​

Checks for functions that have the same argument name but prefix with _.

Example ​

This code will raise a warning because it can be difficult to differentiate between test and _test.

cairo
fn foo(test: u32, _test: u32) {}