Home > Code Analysis > Code Issues – Redundant namespace reference

Code Issues – Redundant namespace reference

June 30th, 2011


The Redundant namespace reference code issue highlights unused namespace references that can be safely removed in gray (dead code issue), which may improve readability.


CodeRush Code Issues - Redundant namespace references

How to fix:

CodeRush Optimize Namespace References Preview

Options of the refactoring are also used for the Redundant namespace reference code issue. For example, you can specify a list of references that won’t have an influence on the code issue. In other words, if you specify a reference that should be kept (and that is actually unused) and there are no more unused references in the file – a code issue won’t be shown.

Products: CodeRush Pro
Versions: 12.1 and up
VS IDEs: any
Updated: Nov/12/2012
ID: C110

Similar Posts: