<?xml version="1.0" encoding="UTF-8"?>
<!--
    Copyright (c) 2025-2026 IB-Robot Group & openEuler Embedded SIG & openharmony-robot sig_RoboFrame.
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
    You may obtain a copy of the License at

        http://www.apache.org/licenses/LICENSE-2.0

    Unless required by applicable law or agreed to in writing, software
    distributed under the License is distributed on an "AS IS" BASIS,
    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    See the License for the specific language governing permissions and
    limitations under the License.
-->
<!--
    OAT (OSS Audit Tool) configuration of the IBMW repository.

    Every source, script and configuration file carries the Apache-2.0 header
    with the project copyright below. The filters list the files that cannot or
    need not carry a header, each with the reason.
-->
<configuration>
    <oatconfig>
        <licensefile>LICENSE</licensefile>
        <policylist>
            <policy name="projectPolicy" desc="IBMW project policy">
                <policyitem type="license" name="Apache-2.0" path=".*" rule="may" group="defaultGroup"
                            filefilter="defaultPolicyFilter" desc="All IBMW files are under Apache-2.0"/>
                <policyitem type="copyright"
                            name="IB-Robot Group &amp; openEuler Embedded SIG &amp; openharmony-robot sig_RoboFrame."
                            path=".*" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter"
                            desc="IBMW project copyright holders"/>
            </policy>
        </policylist>
        <filefilterlist>
            <filefilter name="defaultFilter" desc="Files not checked at all">
                <filteritem type="filepath" name="build/.*" desc="Build output, not part of the source tree"/>
                <filteritem type="filepath" name="build-.*/.*" desc="Build output, not part of the source tree"/>
            </filefilter>
            <filefilter name="defaultPolicyFilter" desc="Files without a license header">
                <filteritem type="filename" name="LICENSE" desc="The license text itself"/>
                <filteritem type="filename" name="NOTICE" desc="Third-party notices; quotes the licenses of dependencies"/>
                <filteritem type="filename" name="VERSION" desc="One-line version number read by the build"/>
                <filteritem type="filename" name="*.md" desc="Documentation"/>
                <filteritem type="filename" name="*.html" desc="Documentation pages"/>
                <filteritem type="filename" name="*.json" desc="JSON does not allow comments"/>
                <filteritem type="filename" name="*.jsonl" desc="JSON lines test data, no comments allowed"/>
                <filteritem type="filename" name="*.info" desc="JSON packaging descriptor, no comments allowed"/>
                <filteritem type="filename" name="*.golden" desc="Expected generator output fragments compared byte for byte by tests"/>
                <filteritem type="filename" name="*.patch" desc="Patch applied to a dependency; content must stay a valid patch"/>
                <filteritem type="filename" name="*.diff" desc="Patch applied to a dependency; content must stay a valid patch"/>
                <filteritem type="filename" name=".gitignore" desc="Git metadata"/>
                <filteritem type="filename" name=".gitattributes" desc="Git metadata"/>
                <filteritem type="filename" name=".editorconfig" desc="Editor settings"/>
                <filteritem type="filepath" name="src/tools/ibmw_cli/MANIFEST.in" desc="Python packaging manifest"/>
                <filteritem type="filepath" name="scripts/baseline_red_lines.txt" desc="Recorded checker report compared line by line"/>
                <filteritem type="filepath" name="selfdev/coro/test/dso/dso_module.map" desc="Linker version script test fixture"/>
                <filteritem type="filepath" name=".*/bags/.*" desc="Recorded rosbag test data"/>
            </filefilter>
            <filefilter name="copyrightPolicyFilter" desc="Files without a copyright header">
                <filteritem type="filename" name="LICENSE" desc="The license text itself"/>
                <filteritem type="filename" name="NOTICE" desc="Third-party notices"/>
                <filteritem type="filename" name="VERSION" desc="One-line version number read by the build"/>
                <filteritem type="filename" name="*.md" desc="Documentation"/>
                <filteritem type="filename" name="*.html" desc="Documentation pages"/>
                <filteritem type="filename" name="*.json" desc="JSON does not allow comments"/>
                <filteritem type="filename" name="*.jsonl" desc="JSON lines test data, no comments allowed"/>
                <filteritem type="filename" name="*.info" desc="JSON packaging descriptor, no comments allowed"/>
                <filteritem type="filename" name="*.golden" desc="Expected generator output fragments compared byte for byte by tests"/>
                <filteritem type="filename" name="*.patch" desc="Patch applied to a dependency; content must stay a valid patch"/>
                <filteritem type="filename" name="*.diff" desc="Patch applied to a dependency; content must stay a valid patch"/>
                <filteritem type="filename" name=".gitignore" desc="Git metadata"/>
                <filteritem type="filename" name=".gitattributes" desc="Git metadata"/>
                <filteritem type="filename" name=".editorconfig" desc="Editor settings"/>
                <filteritem type="filepath" name="src/tools/ibmw_cli/MANIFEST.in" desc="Python packaging manifest"/>
                <filteritem type="filepath" name="scripts/baseline_red_lines.txt" desc="Recorded checker report compared line by line"/>
                <filteritem type="filepath" name="selfdev/coro/test/dso/dso_module.map" desc="Linker version script test fixture"/>
                <filteritem type="filepath" name=".*/bags/.*" desc="Recorded rosbag test data"/>
            </filefilter>
            <filefilter name="binaryFileTypePolicyFilter" desc="Binary files allowed in the repository">
                <filteritem type="filepath" name="src/samples/cpp/.*/bags/.*\.mcap" desc="Recorded MCAP rosbag used by the playback, info and convert tests"/>
                <filteritem type="filepath" name="src/samples/cpp/.*/bags/.*\.mcap\.lz4" desc="LZ4-compressed MCAP rosbag used by the info test"/>
                <filteritem type="filepath" name="src/samples/cpp/.*/bags/.*\.db3" desc="Recorded SQLite rosbag used by the playback and info tests"/>
            </filefilter>
        </filefilterlist>
    </oatconfig>
</configuration>