title: How to make RuboCop inspect a file in a folder that starts with dot
body: <p>I want to run <a href="https://github.com/bbatsov/rubocop" rel="nofollow">RuboCop</a> for <a href="https://github.com/wikimedia/VisualEditor" rel="nofollow">VisualEditor</a> repository. At the moment, the only Ruby file I could find in the repository is <a href="https://github.com/wikimedia/VisualEditor/search?utf8=%E2%9C%93&amp;q=in%3Apath%20rb" rel="nofollow">.docs/CustomTags.rb</a>.</p>
  
  <pre><code>$ find . | grep rb
  ./.docs/CustomTags.rb
  </code></pre>
  
  <p>If I run only <code>rubocop</code>, it does not find any files:</p>
  
  <pre><code>$ rubocop
  Inspecting 0 files
  0 files inspected, no offenses detected
  </code></pre>
  
  <p>I guess it ignores files in folders that start with dot (<code>.docs</code>).</p>
  
  <p>RuboCop documentation on <a href="https://github.com/bbatsov/rubocop#includingexcluding-files" rel="nofollow">including files</a> says:</p>
  
  <blockquote>
    <p>If you'd like it to check other files you'll need to manually pass
    them in, or to add entries for them under AllCops/Include.</p>
  </blockquote>
  
  <p>If I provide path to the file from the command line, RuboCop finds the file:</p>
  
  <pre><code>$ rubocop .docs/CustomTags.rb 
  Inspecting 1 file
  W
  (...)
  1 file inspected, 26 offenses detected
  </code></pre>
  
  <p>Our continuous integration just runs <code>rubocop</code> for the repository, so I can not provide path to the file from the command line. I have to use <code>AllCops/Include</code>, but I can not figure out how to do it.</p>
  
  <p>If I create a <code>.rubocop.yml</code> in the root of the repository:</p>
  
  <pre><code>AllCops:
    Include:
      - '.docs/CustomTags.rb'
  </code></pre>
  
  <p>and run Rubocop, it does not find the file:</p>
  
  <pre><code>$ rubocop
  Inspecting 0 files
  0 files inspected, no offenses detected
  </code></pre>
  
  <p>I have tried several variations of the <code>.rubocop.yml</code> file, including:</p>
  
  <pre><code>AllCops:
    Include:
      - '**/CustomTags.rb'
  </code></pre>
  
  <p>and</p>
  
  <pre><code>AllCops:
    Include:
      - '.docs/**/*'
  </code></pre>
  
  <p>But none of them are finding the file.</p>