<table role="table">
<thead>
<tr>
<th>Q</th>
<th>A</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bug report?</td>
<td>no</td>
</tr>
<tr>
<td>Feature request?</td>
<td>yes</td>
</tr>
<tr>
<td>BC Break report?</td>
<td>no</td>
</tr>
<tr>
<td>RFC?</td>
<td>yes</td>
</tr>
<tr>
<td>Symfony version</td>
<td>4.1</td>
</tr>
</tbody>
</table>
<p dir="auto"><code class="notranslate">Finder::ignoreVCS()</code> is great at ignoring file patterns for the files created by popular VCS systems.</p>
<p dir="auto">However, it would be great to be able to instruct <code class="notranslate">Finder</code> to actually exclude the paths excluded by <code class="notranslate">.gitignore</code>.</p>
<p dir="auto">So if we have <code class="notranslate">.gitignore</code>:</p>
<div class="highlight highlight-source-ini notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="vendor/
cache/"><pre class="notranslate">vendor/
cache/</pre></div>
<div class="highlight highlight-text-html-php notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="Finder::create()
	-&gt;files()
    -&gt;ignoreVCS(true) // &lt;--- Ignores `.git`
	-&gt;ignoreVCSIgnored(true); // &lt;--- Ignores vendor/ and cache/"><pre class="notranslate"><span class="pl-v">Finder</span>::<span class="pl-en">create</span>()
	-&gt;<span class="pl-en">files</span>()
    -&gt;<span class="pl-en">ignoreVCS</span>(<span class="pl-c1">true</span>) <span class="pl-c">// &lt;--- Ignores `.git`</span>
	-&gt;<span class="pl-en">ignoreVCSIgnored</span>(<span class="pl-c1">true</span>); <span class="pl-c">// &lt;--- Ignores vendor/ and cache/</span></pre></div>
<p dir="auto">I think this would simplify a lot of Finder configurations which currently manually exclude the git-ignored paths or manually include everything else.</p>
<p dir="auto">should be mapped to number input type with step="any"...yes, number supports float.</p>