NDepend find private methods without documentation

58 Views Asked by At

i'm new to ndepend and i want a cqlinq rule to find all not documented methods. Thats my current query, but there is no documented-Property.

from m in Application.Methods 
.Where(m => !m.IsGeneratedByCompiler && m.Visibility == Visibility.Private && m.??Documentation?? == false)

select new { m, m.Visibility }

any ideas? Happy new year... :-)

1

There are 1 best solutions below

2
Patrick from NDepend team On

What about this code query?

from m in JustMyCode.Methods
where m.IsPrivate
&& m.NbLinesOfCode > 5 // Adjust to your needs
&& m.NbLinesOfComment == 0
select new { m, m.NbLinesOfCode }

Match non commented private methods with ndepend