@readystack/gitlab-ci-break-lint 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/cli.js +1 -1
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -16,7 +16,7 @@ function isText(p) { try { const b = fs.readFileSync(p); if (b.length > 2 * 1024
16
16
  function walk(dir, exts, out) {
17
17
  let ents = []; try { ents = fs.readdirSync(dir, { withFileTypes: true }); } catch (e) { return out; }
18
18
  for (const e of ents) {
19
- if (e.name === 'node_modules' || e.name === '.git' || e.name.startsWith('.')) continue;
19
+ if (['node_modules', '.git', '.hg', '.svn', '.venv', 'venv', '.tox', '.cache', '.next', '.nuxt', '.terraform', '__pycache__'].includes(e.name)) continue; // s158 — .github · .gitlab-ci.yml · .env · .well-known 은 본다 (옛 줄은 점으로 시작하는 것을 전부 건너뛰어 워크플로 검사기가 .github/workflows 를 못 봤다)
20
20
  const p = path.join(dir, e.name);
21
21
  if (e.isDirectory()) walk(p, exts, out);
22
22
  else if ((!exts.length || exts.includes(path.extname(e.name).toLowerCase())) && isText(p)) out.push(p);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@readystack/gitlab-ci-break-lint",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "Names the .gitlab-ci.yml lines your runner will reject after the next GitLab major upgrade",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "publishConfig": {