title: How to use the exclude_files regex in cpplint?
body: <p>I am using cpplint to check my sourcode agains the google style guide.</p>
  
  <p><strong>Cpplint's help says:</strong></p>
  
  <pre><code>cpplint.py supports per-directory configurations specified in CPPLINT.cfg
      files. CPPLINT.cfg file can contain a number of key=value pairs.
      Currently the following options are supported:
  
      "exclude_files" allows to specify a regular expression to be matched against
      a file name. If the expression matches, the file is skipped and not run
      through liner.
  
  Example file:
          filter=-build/include_order,+build/include_alpha
          exclude_files=.*\.cc
  
      The above example disables build/include_order warning and enables
      build/include_alpha as well as excludes all .cc from being
      processed by linter, in the current directory (where the .cfg
      file is located) and all sub-directories.
  </code></pre>
  
  <p><strong>How I use cpplint:</strong></p>
  
  <p>I use <code>cpplint</code> by this command to check all files in my source folder:
  <code>cpplint src/*.c</code> </p>
  
  <p>Well there is one special file <code>foo.cc</code> which must not be checked. So I tried to create a <code>CPPLIN.cfg</code> to use the <code>exclude_files</code> property. My file looks like this:</p>
  
  <pre><code>set noparent
  filter=-build/include_dir
  exclude_files=foo.cc
  </code></pre>
  
  <p>Nevertheless <code>foo.cc</code> is still checked.</p>
  
  <p><strong>What I have already tried to do:</strong></p>
  
  <p>I tried  <code>exclude_files=/.*\.cc/</code>. This should exclude all files ending with *.cc. Nevertheless all files are still checked.</p>
  
  <p>I tried to remove my <code>filter</code> from the file. This caused more errors than before. So I am now sure that my <code>CPPLINT.cfg</code> file is found by cpplint.</p>
  
  <p><strong>Question:</strong></p>
  
  <p>How to use the exclude_files regex in cpplint correctly?</p>