run-local-checks should ignore vendor and node_modules
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3508450. --> Reported by: [jonathan1055](https://www.drupal.org/user/92645) Related to !333 >>> <h3 id="summary-problem-motivation">Problem/Motivation</h3> <p>The call to <code>eslint</code> within <code>run-local-checks.sh</code> appears to read all files in the /vendor and /node_modules directories. I discovered this when working on adding a 'debug' argument to the script, which will add the various --debug, -v, command line options to each call</p> <h4 id="summary-steps-reproduce">Steps to reproduce</h4> <p>In gitlab_templates top folder run the following<br> <code>npx eslint --no-error-on-unmatched-pattern --debug&nbsp; --ext=.yml .</code><br> You can see that every file in vendor and node_modules is being checked</p> <h3 id="summary-proposed-resolution">Proposed resolution</h3> <ul> <li>Add a script option <strong>debug</strong> which will add the necessary command options</li> <li>Add --ignore-pattern=vendor,node_modules</li> </ul>
issue