c# - Are there any tools which can report on commented-out .NET code? -


has come across tool report on commented-out code in .net app? i'm talking patterns like:

//var foo = "this dead"; 

and

/* var foo = "this dead"; */ 

this won't found tools resharper or fxcop unreferenced code. there obvious implications around distinguishing commented code commented text doesn't seem great task.

is there existing tool out there can pick up? if reporting of occurrences file rather full ide integration.

edit 1: i've logged stylecop feature request. seems fit tool.

edit 2: yes, there's reason why i'd , relates code quality. see comment below.

you can approximate answer using regexp recognizes comments, end ";" or "}".

for more precise scheme, see answer: tool find commented out vhdl code


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -