Passa al contenuto principale

Z501-placeholder — PLACEHOLDER

Z-Code: Z501 PLACEHOLDER · Engine: standalone · Exit: 0

zenzic check all
standalone - 1 file (1 docs, 0 assets) - 0.0s - 64 files/s
docs/index.md:4:9
[Z501]Found placeholder text matching pattern:
'(?i)placeholder'
2│ <!-- SPDX-License-Identifier: Apache-2.0 -->
3
4# Z501 — Placeholder Content Gallery Example
^^^^^^^^^^^
5
6│ This page demonstrates **Z501 PLACEHOLDER** detection.
docs/index.md:6:30
[Z501]Found placeholder text matching pattern:
'(?i)placeholder'
4│ # Z501 — Placeholder Content Gallery Example
5
6This page demonstrates **Z501 PLACEHOLDER** detection.
^^^^^^^^^^^
7
8│ ## Installation
docs/index.md:10
[Z501]Found placeholder text matching pattern: '(?i)todo'
8│ ## Installation
9
10TODO: content goes here
^^^^
11
12│ ## Advanced Usage
docs/index.md:14
[Z501]Found placeholder text matching pattern: '(?i)todo'
12│ ## Advanced Usage
13
14TODO: Add advanced usage examples once the feature is complete.
^^^^
15
16│ Coming soon!
docs/index.md:16
[Z501]Found placeholder text matching pattern:
'(?i)coming\ soon'
14│ TODO: Add advanced usage examples once the feature is complete.
15
16Coming soon!
^^^^^^^^^^^
17
18│ ## What Zenzic Reports
docs/index.md:21:59
[Z501]Found placeholder text matching pattern:
'(?i)todo'
19
20│ ```text
21docs/index.md:10: Z501 PLACEHOLDER placeholder pattern 'TODO:'
matched
^^^^
22│ docs/index.md:16: Z501 PLACEHOLDER placeholder pattern 'Coming
soon!' matched
23│ ```
docs/index.md:21:25
[Z501]Found placeholder text matching pattern:
'(?i)placeholder'
19
20│ ```text
21docs/index.md:10: Z501 PLACEHOLDER placeholder pattern 'TODO:'
matched
^^^^^^^^^^^
22│ docs/index.md:16: Z501 PLACEHOLDER placeholder pattern 'Coming
soon!' matched
23│ ```
docs/index.md:22:59
[Z501]Found placeholder text matching pattern:
'(?i)coming\ soon'
20│ ```text
21│ docs/index.md:10: Z501 PLACEHOLDER placeholder pattern 'TODO:'
matched
22docs/index.md:16: Z501 PLACEHOLDER placeholder pattern 'Coming
soon!' matched
^^^^^^^^^^^
23│ ```
24
docs/index.md:22:25
[Z501]Found placeholder text matching pattern:
'(?i)placeholder'
20│ ```text
21│ docs/index.md:10: Z501 PLACEHOLDER placeholder pattern 'TODO:'
matched
22docs/index.md:16: Z501 PLACEHOLDER placeholder pattern 'Coming
soon!' matched
^^^^^^^^^^^
23│ ```
24
────────────────────────────────────────────────────────────────────────────────
Summary:✘ 0 errors⚠ 9 warningsℹ 0 info- 1 file with findings
* Analysis complete: All statically-detectable links, credentials, and
references verified.
Refer to https://zenzic.dev/docs/reference/finding-codes for remediation · Try
'zenzic check --help' for options.
[ Suppression Audit: 0/30 (inline: 0, per-file: 0)
exit 0

Il Fixture

Il fixture si trova in examples/z501-placeholder/ nel repository Zenzic. Contiene documenti che dimostrano la violazione Z501.

Eseguire l'Esempio

# Clona il repository Zenzic — nessuna installazione aggiuntiva richiesta
cd examples/z501-placeholder
uvx zenzic check all

Expected output:

standalone - 1 file (1 docs, 0 assets) - 0.0s - 64 files/s

docs/index.md:4:9 ! [Z501] Found placeholder text matching pattern:
'(?i)placeholder'

2 │ <!-- SPDX-License-Identifier: Apache-2.0 -->
3 │
4 ❱ # Z501 — Placeholder Content Gallery Example
│ ^^^^^^^^^^^
5 │
6 │ This page demonstrates **Z501 PLACEHOLDER** detection.

docs/index.md:6:30 ! [Z501] Found placeholder text matching pattern:
'(?i)placeholder'

4 │ # Z501 — Placeholder Content Gallery Example
5 │
6 ❱ This page demonstrates **Z501 PLACEHOLDER** detection.
│ ^^^^^^^^^^^
7 │
8 │ ## Installation

docs/index.md:10 ! [Z501] Found placeholder text matching pattern: '(?i)todo'

8 │ ## Installation
9 │
10 ❱ TODO: content goes here
│ ^^^^
11 │
12 │ ## Advanced Usage

docs/index.md:14 ! [Z501] Found placeholder text matching pattern: '(?i)todo'

12 │ ## Advanced Usage
13 │
14 ❱ TODO: Add advanced usage examples once the feature is complete.
│ ^^^^
15 │
16 │ Coming soon!

docs/index.md:16 ! [Z501] Found placeholder text matching pattern:
'(?i)coming\ soon'

14 │ TODO: Add advanced usage examples once the feature is complete.
15 │
16 ❱ Coming soon!
│ ^^^^^^^^^^^
17 │
18 │ ## What Zenzic Reports

docs/index.md:21:59 ! [Z501] Found placeholder text matching pattern:
'(?i)todo'

19 │
20 │ ```text
21 ❱ docs/index.md:10: Z501 PLACEHOLDER placeholder pattern 'TODO:'
matched
│ ^^^^
22 │ docs/index.md:16: Z501 PLACEHOLDER placeholder pattern 'Coming
soon!' matched
23 │ ```

docs/index.md:21:25 ! [Z501] Found placeholder text matching pattern:
'(?i)placeholder'

19 │
20 │ ```text
21 ❱ docs/index.md:10: Z501 PLACEHOLDER placeholder pattern 'TODO:'
matched
│ ^^^^^^^^^^^
22 │ docs/index.md:16: Z501 PLACEHOLDER placeholder pattern 'Coming
soon!' matched
23 │ ```

docs/index.md:22:59 ! [Z501] Found placeholder text matching pattern:
'(?i)coming\ soon'

20 │ ```text
21 │ docs/index.md:10: Z501 PLACEHOLDER placeholder pattern 'TODO:'
matched
22 ❱ docs/index.md:16: Z501 PLACEHOLDER placeholder pattern 'Coming
soon!' matched

^^^^^^^^^^^
23 │ ```
24 │

docs/index.md:22:25 ! [Z501] Found placeholder text matching pattern:
'(?i)placeholder'

20 │ ```text
21 │ docs/index.md:10: Z501 PLACEHOLDER placeholder pattern 'TODO:'
matched
22 ❱ docs/index.md:16: Z501 PLACEHOLDER placeholder pattern 'Coming
soon!' matched
│ ^^^^^^^^^^^
23 │ ```
24 │

────────────────────────────────────────────────────────────────────────────────

Summary: x 0 errors ! 9 warnings i 0 info - 1 file with findings

* Analysis complete: All statically-detectable links, credentials, and
references verified.
Refer to https://zenzic.dev/docs/reference/finding-codes for remediation · Try
'zenzic check --help' for options.
[ Suppression Audit: 0/30 (inline: 0, per-file: 0)

Exit code: 0

Interpretare l'Output

Il codice di errore Z501 indica un problema di tipo PLACEHOLDER.

Questo errore o avviso viene generato da Zenzic quando il documento contiene pattern di testo segnaposto come 'TODO', 'FIXME', 'LOREM IPSUM' o stringhe boilerplate generiche. Questo verifica che bozze non vengano pubblicate per errore. In questo esempio specifico:

  • Tipo di Scansione: Content Guard
  • Severità: Warning
  • Impatto: Il testo segnaposto indica una documentazione incompleta e comporta una detrazione DQS di 2.0 punti.

Correggere la Violazione

Risolvi il problema come riportato da Zenzic.

Vedi Anche