Check SLOC and flag methods over 300 lines long [closed]
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 5 years ago.
Improve this questionIs there a way I can configure Visual Studio to automatically scan my source code for methods that are over (eg) 300 lines long so that they can be flagged for review (with an aim to refactoring to smaller metho开发者_开发技巧ds)
I expect any such technique may be language independant, but ideally I'd like to run this over C# code.
Why dont you use some code counter tools which you can search in google for. http://www.google.com/search?hl=en&source=hp&q=code+counter+tools&aq=f&aqi=&aql=&oq=&gs_rfai=
Is there anything specific you are looking for. Why stopping with 300. Are you developing some contest where you would like to restrict people from writing more than 300 lines of code. Anyway be more clear so that we can help you.
I use this one and i find it very useful.
http://www.codeproject.com/KB/applications/codecounter.aspx
精彩评论