1

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... :-)

Dosihris
  • 145
  • 9

1 Answers1

0

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

Patrick from NDepend team
  • 13,237
  • 6
  • 61
  • 92
  • Hey Patrick, thanks for your answer, but i was talking about documentation above methods, not about comments in the methods. so i actually want all private methods, that have a xml summary documentation missing... – Dosihris Jan 07 '21 at 11:05
  • 1
    Indeed, as explained by email we'll support documentation within an upcoming version – Patrick from NDepend team Jan 11 '21 at 08:36