HTML Tables Contract

ID 3
UUID fe61f4d8-328f-4179-9da7-e6fbcfa7de34
Version 2.0
Status active
Scope
Erstellt 2025-12-20 10:59:58 von migration
Aktualisiert 2025-12-22 09:43:02

YAML-Inhalt

contract:
  name: html-tables-standards
  version: "2.0"
  status: active
  description: |
    Standards für HTML-Tabellen mit Fokus auf Navigation und Usability.
    Migriert auf Meta-Schema v1.0 am 22.12.2025.

  created: "2025-12-20"
  author: migration

  scope:
    paths:
      - "/src/View/**/*.php"
      - "/public/js/**/*.js"

  rules:
    - id: no-actions-column
      check_type: forbidden_pattern
      patterns:
        - "<th>Aktionen</th>"
        - ">Aktionen<"
      in_files: "View/**/*.php"
      severity: critical
      description: "Keine Aktionen-Spalte - ID oder Titel als Link verwenden"

    - id: no-modal-details
      check_type: forbidden_pattern
      patterns:
        - "openModal("
        - "showModal("
        - 'id="modal"'
      in_files: "View/**/*.php"
      severity: critical
      description: "Keine Modals für Detail-Ansichten - echte URLs verwenden"

    - id: no-inline-onclick
      check_type: forbidden_pattern
      patterns:
        - 'onclick="'
        - "onclick='"
      in_files: "View/**/*.php"
      severity: major
      description: "Event Delegation statt inline onclick"

    - id: sortable-tables
      check_type: required_pattern
      patterns:
        - "data-sortable"
      in_files: "View/**/index.php"
      severity: major
      description: "Tabellen müssen sortierbar sein"

    - id: table-search
      check_type: required_pattern
      patterns:
        - 'type="search"'
        - "table-search"
      in_files: "View/**/index.php"
      severity: major
      description: "Tabellen müssen Suchfeld haben"

  enforcement:
    on_violation: warn

  pass_threshold:
    critical_max: 0
    major_max: 2
    minor_max: 5

Aktionen

Bearbeiten

Versionshistorie

Version Geändert am Von Beschreibung
2.0 (aktuell) 2025-12-22 09:43:02 - -
1.0 2025-12-22 09:43:02 claude Migration auf Meta-Schema v1.0: scope.paths als Array, rules als flache Liste

Letzte Validierungen

Datum Ergebnis Critical Major Minor Dauer
2025-12-20 16:45:39 passed 0 0 0 6ms
2025-12-20 16:45:39 passed 0 0 0 5ms
2025-12-20 16:43:49 passed 0 0 0 3ms
2025-12-20 16:43:49 passed 0 0 0 3ms
2025-12-20 16:43:49 passed 0 0 0 4ms
2025-12-20 16:41:59 passed 0 0 0 3ms
2025-12-20 16:39:38 passed 0 0 0 5ms
2025-12-20 16:35:57 passed 0 0 0 4ms
2025-12-20 15:00:20 passed 0 0 0 3ms
2025-12-20 14:50:27 passed 0 0 0 7ms

← Zurück zur Übersicht