Skip to content

Apache DataFusion SQL Query Engine

2.2 KB
Raw Blame
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
# SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements

[header]
# All three SPDX tags are required by the ASF source header policy:
# https://www.apache.org/legal/src-headers.html#is-an-spdx-form-of-the-source-header-acceptable
text = """
SPDX-License-Identifier: Apache-2.0
SPDX-FileCopyrightText: See the NOTICE file distributed with this work for additional information regarding copyright ownership
SPDX-FileContributor: Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements
"""

[files]
includes = [
    "*.rs",
    "*.py",
    "*.ts",
    "*.slt",
    "*.slt.part",
    "*.md",
    "*.rst",
    "*.sh",
    "*.bat",
    "*.toml",
    "*.yaml",
    "*.yml",
    "*.js",
    "*.cjs",
    "*.css",
    "*.proto",
    "*.rdf",
    ".gitignore",
    ".dockerignore",
    ".editorconfig",
    "Dockerfile",
    "Makefile",
]

excludes = [
    # CLAUDE.md is a symlink to AGENTS.md, which is checked directly.
    "/CLAUDE.md",
    # Generated code; the hand-written generated/mod.rs wrappers are checked.
    "datafusion/proto/src/generated/**",
    "datafusion/proto-common/src/generated/pbjson.rs",
    "datafusion/proto-common/src/generated/prost.rs",
    "datafusion/proto-models/src/generated/datafusion_proto_common.rs",
    "datafusion/proto-models/src/generated/pbjson.rs",
    "datafusion/proto-models/src/generated/prost.rs",
    # HawkEye inserts headers before the YAML front matter required by skills.
    ".ai/skills/**",
    # GitHub contribution templates and temporary generated documentation.
    ".github/ISSUE_TEMPLATE/**",
    ".github/pull_request_template.md",
    "**/.examples-docs-check.*/**",
]

[styles.rst]
kind = "line"
prefix = ".. "

[[rules]]
extensions = ["slt", "slt.part"]
filenames = [".gitignore", ".dockerignore"]
style_out = "script"

[[rules]]
extensions = ["md", "rdf"]
style_out = "xml"

[[rules]]
extensions = ["rst"]
style_out = "rst"

[[rules]]
extensions = ["js", "cjs", "proto"]
style_out = "doubleslash"