scripts/dtc/dt-style-selftest/bad/yaml-indent-strict.yaml

Source file repositories/reference/linux-study-clean/scripts/dtc/dt-style-selftest/bad/yaml-indent-strict.yaml

File Facts

System
Linux kernel
Corpus path
scripts/dtc/dt-style-selftest/bad/yaml-indent-strict.yaml
Extension
.yaml
Size
574 bytes
Lines
30
Domain
Support Tooling And Documentation
Bucket
scripts
Inferred role
Support Tooling And Documentation: configuration, schema, or hardware description
Status
atlas-only

Why This File Exists

Repository support layer: documentation, build tooling, samples, user-space helper tools, generated initramfs support, licenses, and validation utilities.

Dependency Surface

Detected Declarations

Annotated Snippet

# SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause
%YAML 1.2
---
$id: http://devicetree.org/schemas/test-bad-indent-strict.yaml#
$schema: http://devicetree.org/meta-schemas/core.yaml#

title: Test fixture using 2-space indent (rejected by strict mode)

maintainers:
  - Test User <test@example.com>

properties:
  compatible:
    const: example,test-indent-strict
  reg:
    maxItems: 1

required:
  - compatible
  - reg

additionalProperties: false

examples:
  - |
    device@1000 {
      compatible = "example,test-indent-strict";
      reg = <0x1000 0x100>;
    };

Annotation

Implementation Notes