title: How to restrict NDepend methods query on type attribute
body: <p>I'm trying to get NDepend to identify long methods using a modified version of the standard "Methods too big" query. </p>
  
  <p>I don't want to report long methods that the developers have little control over, so I filter out generated code using the <code>DebuggerNonUserCode</code> attribute and <code>InitializeComponent()</code>. </p>
  
  <p>Unfortunately, I still get a few false positives as methods in generated types are reported as well. The problem is that while the type itself has the <code>DebuggerNonUserCode</code> attribute, the methods do not, so they are included in the output despite the fact that they are generated. </p>
  
  <p>I am looking for something like a join between types and methods: Give me all types that do not have the <code>DebuggerNonUserCode</code> attribute and run the query on those, but I can't figure out how to express this in CQL. </p>
  
  <p>For some of the assemblies, I can simply filter on the full name, but unfortunately some of our assemblies mix developer made and generated types. Unfortunately the <code>IsGeneratedByCompiler</code> can't be used either in this case. </p>
  
  <p>My query</p>
  
  <pre><code>WARN IF Count &gt; 0 IN SELECT METHODS WHERE 
     NbLinesOfCode &gt; 30 AND
     !HasAttribute "System.Diagnostics.DebuggerNonUserCodeAttribute" AND
     !NameIs "InitializeComponent()"
     ORDER BY NbLinesOfCode DESC
  </code></pre>