The Unused Code Ruleset contains a collection of rules that find unused code. Detects when a private field is declared and/or assigned a value, but not used. 3 Detects when a local variable is declared and/or assigned, but not used. 3 Unused Private Method detects when a private method is declared but is unused. 3 Avoid passing parameters to methods or constructors and then not using those parameters. 3