remove-unused-usings
What it does
Section titled “What it does”Reports a using directive that nothing in the file needs. It is not reported in a file that has compiler errors or #if regions, because unresolved or inactive code could be the one using it. The fix removes the directive.
Why it matters
Section titled “Why it matters”An unused using adds noise at the top of the file, suggests a dependency that does not exist, and slows the compiler a little. Removing them keeps the list of what the file uses true.
Configuration
Section titled “Configuration”csharp: lint: rules: remove-unused-usings: warn # off (default), warn, errorSuppress one line with sudsy-disable-next-line remove-unused-usings in a comment of the file’s language.