# Zero-duration clips (/docs/rules/no-zero-duration-clips)

Reports clips whose end is not after their start.



{/* Generated by scripts/generate-docs.ts. Do not edit. */}

| Property         | Value                    |
| :--------------- | :----------------------- |
| Id               | `no-zero-duration-clips` |
| Category         | Static                   |
| Default severity | error                    |
| Scope            | `clip`                   |

## Options [#options]

This rule has no options.

## Customize it [#customize-it]

Turn the rule on or off in the panel's Rules settings. To change its options, severity or wording, open it with its cogwheel in the rule editor and save: your copy replaces the built-in rule until you revert it. You can also copy the file below into your rules folder as `no-zero-duration-clips.rule.json` and edit it. See [Change a built-in rule](/docs/editor/saving#change-a-built-in-rule).

## Rule file [#rule-file]

```json title="no-zero-duration-clips.rule.json"
{
  "formatVersion": 1,
  "id": "no-zero-duration-clips",
  "name": {
    "en_US": "Zero-duration clips",
    "de_DE": "Clips ohne Dauer",
    "es_ES": "Clips de duración cero",
    "fr_FR": "Éléments de durée nulle",
    "it_IT": "Clip di durata zero",
    "ja_JP": "デュレーションが 0 のクリップ",
    "ko_KR": "지속 시간이 0인 클립",
    "pt_BR": "Clipes de duração zero",
    "ru_RU": "Клипы нулевой длительности",
    "zh_CN": "零持续时间剪辑"
  },
  "description": {
    "en_US": "Reports clips whose end is not after their start.",
    "de_DE": "Meldet Clips, deren Ende nicht nach ihrem Anfang liegt.",
    "es_ES": "Detecta clips cuyo final no es posterior a su inicio.",
    "fr_FR": "Signale les éléments dont la fin n'est pas postérieure au début.",
    "it_IT": "Segnala le clip la cui fine non è successiva all'inizio.",
    "ja_JP": "終了が開始より後にないクリップを報告します。",
    "ko_KR": "끝이 시작보다 뒤에 있지 않은 클립을 보고합니다.",
    "pt_BR": "Relata clipes cujo fim não é posterior ao início.",
    "ru_RU": "Сообщает о клипах, конец которых не находится после начала.",
    "zh_CN": "报告结尾不晚于开头的剪辑。"
  },
  "category": "static",
  "scope": "clip",
  "severity": "error",
  "checks": [
    {
      "condition": {
        "field": "clip.duration",
        "operator": "equals",
        "value": 0
      },
      "message": {
        "en_US": "Clip \"{clip.name}\" on {clip.track} has zero duration.",
        "de_DE": "Clip „{clip.name}“ auf {clip.track} hat die Dauer null.",
        "es_ES": "Clip \"{clip.name}\" en {clip.track} tiene duración cero.",
        "fr_FR": "Élément « {clip.name} » sur {clip.track} a une durée nulle.",
        "it_IT": "Clip \"{clip.name}\" su {clip.track} ha durata zero.",
        "ja_JP": "クリップ「{clip.name}」（{clip.track}）のデュレーションが0です。",
        "ko_KR": "{clip.track}의 클립 \"{clip.name}\"의 지속 시간이 0입니다.",
        "pt_BR": "Clipe \"{clip.name}\" em {clip.track} tem duração zero.",
        "ru_RU": "Клип «{clip.name}» на {clip.track} имеет нулевую длительность.",
        "zh_CN": "{clip.track} 上的剪辑“{clip.name}” 的持续时间为零。"
      }
    },
    {
      "condition": {
        "field": "clip.duration",
        "operator": "lessThan",
        "value": 0
      },
      "message": {
        "en_US": "Clip \"{clip.name}\" on {clip.track} ends before it starts.",
        "de_DE": "Clip „{clip.name}“ auf {clip.track} endet, bevor er beginnt.",
        "es_ES": "Clip \"{clip.name}\" en {clip.track} termina antes de empezar.",
        "fr_FR": "Élément « {clip.name} » sur {clip.track} se termine avant de commencer.",
        "it_IT": "Clip \"{clip.name}\" su {clip.track} termina prima di iniziare.",
        "ja_JP": "クリップ「{clip.name}」（{clip.track}）は開始より前に終了しています。",
        "ko_KR": "{clip.track}의 클립 \"{clip.name}\"의 끝이 시작보다 앞에 있습니다.",
        "pt_BR": "Clipe \"{clip.name}\" em {clip.track} termina antes de começar.",
        "ru_RU": "Клип «{clip.name}» на {clip.track} заканчивается раньше, чем начинается.",
        "zh_CN": "{clip.track} 上的剪辑“{clip.name}” 的结尾早于开头。"
      }
    }
  ],
  "data": {
    "durationTicks": "clip.duration"
  }
}
```
