Skip to content

skipped-file ​

Warning · The editor leaves out a file with this name.

git8n check reports this rule as a warning. It fails only past --max-warnings.

Why it matters ​

The name of a file is the namespace of its keys. The editor reads only names of letters, digits, - and _, so it does not show this file.

Invalid ​

locales/en/common.json

json
{
  "title": "Hello"
}

locales/fr/common.json

json
{
  "title": "Bonjour"
}

locales/en/common.v2.json

json
{
  "save": "Save"
}

locales/fr/common.v2.json

json
{
  "save": "Enregistrer"
}
text
$ git8n check --source en
locales/en/common.v2.json
  warning  common.v2.json: a file name has only letters, digits, - and _.  skipped-file

locales/fr/common.v2.json
  warning  common.v2.json: a file name has only letters, digits, - and _.  skipped-file

Read more:
  skipped-file  https://git8n.sakuga.dev/docs/reference/rules/skipped-file.html

0 errors, 2 warnings in 2 files (en → fr, 1 key).

Valid ​

locales/en/common.json

json
{
  "title": "Hello"
}

locales/fr/common.json

json
{
  "title": "Bonjour"
}

locales/en/common-v2.json

json
{
  "save": "Save"
}

locales/fr/common-v2.json

json
{
  "save": "Enregistrer"
}
text
$ git8n check --source en
0 errors, 0 warnings in 4 files (en → fr, 2 keys).

What to do ​

Rename the file in each language, for example common.v2.json to common-v2.json.

All the rules · The command check