c++ - How to set a limit on the number of lines for methods and functions? -


i check if (git) commit respects method length limit or not.

ideally should check if of methods touched commit exceeds threshold.

i guess tool integrates line counts in c++ code , git diffs may not readily avaialble, i'll glad find out contrary true.

given such tool not exist, convenient way have list of method length, start , end line in file?

i exclude using regular expression or simple parser work in cases c, c++, c++11 , possibly future versions of language solution using real parser preferrable.

you use google style guide checker on this:

cpplint.py --filter=readability/fn_size 

that restrict checking function size rule.


Comments

Popular posts from this blog

toolbar - How to add link to user registration inside toobar in admin joomla 3 custom component -

linux - disk space limitation when creating war file -

How to provide Authorization & Authentication using Asp.net, C#? -