title: StyleCop/Code Analysis Error - How to suppress
body: <p>I am getting an in SA0102 ('A syntax error has been discovered in the file') error being thrown when I run Code Analysis upon check-in (another strange issue as I thought SA was a StyleCop issue?!). Through a process of adding/removing code, I have deduced that the following method is causing this error to be thrown. As far as I am aware, this method is valid and based on comments from other - there appear to be some bugs in StyleCop surrounding this rule.</p>
  
  <p>Anyway, my question is how can I suppress this warning? I have tried changing the filename to .designer.cs, however this appears to have no effect (I have made sure ignore designer files is checked). I am a little lost as to how I can resolve this issue as I can't check-in the code without passing the StyleCop check-in policy!  Also, this</p>
  
  <p>For reference, this is the method causing the issue - I suspect the use of nullables in the declaration may be the problem.</p>
  
  <p>Edit: I am using StyleCop v4.4.1.2</p>
  
  <p>Edit: If I remove the IEnumerable<code>&lt;int?</code>> selected, int? page = null from the parameters, the rule passes.</p>
  
  <pre><code>[HttpPost]
  public ActionResult Search(string searchCriteria, IEnumerable`&lt;int?`&gt; selected, int? page = null)
  {
      if (page.HasValue)
      {
          const int PageSize = 6;
          IEnumerable&lt;MyClass&gt; src = this.sectors.Where(o =&gt; (selected == null || !selected.Contains(o.Id)) &amp;&amp; o.Name.Contains(searchCriteria));
          string rows = this.RenderView(@"Awesome\LookupList", src.Skip((page.Value - 1) * PageSize).Take(PageSize));
          return this.Json(new { rows, more = src.Count() &gt; page * PageSize });
      }
  
      return this.View(@"Awesome\LookupList", this.sectors.Where(o =&gt; (selected == null || !selected.Contains(o.Id)) &amp;&amp; o.Name.Contains(searchCriteria)));
  }
  </code></pre>