19b256929Sopenharmony_ci<?xml version="1.0" encoding="UTF-8"?>
29b256929Sopenharmony_ci<!-- Copyright (c) 2021 Huawei Device Co., Ltd.
39b256929Sopenharmony_ci
49b256929Sopenharmony_ci     Licensed under the Apache License, Version 2.0 (the "License");
59b256929Sopenharmony_ci     you may not use this file except in compliance with the License.
69b256929Sopenharmony_ci     You may obtain a copy of the License at
79b256929Sopenharmony_ci
89b256929Sopenharmony_ci          http://www.apache.org/licenses/LICENSE-2.0
99b256929Sopenharmony_ci
109b256929Sopenharmony_ci     Unless required by applicable law or agreed to in writing, software
119b256929Sopenharmony_ci     distributed under the License is distributed on an "AS IS" BASIS,
129b256929Sopenharmony_ci     WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
139b256929Sopenharmony_ci     See the License for the specific language governing permissions and
149b256929Sopenharmony_ci     limitations under the License.
159b256929Sopenharmony_ci
169b256929Sopenharmony_ci    This is the configuration file template for OpenHarmony OSS Audit Tool, please copy it to your project root dir and modify it refer to OpenHarmony/tools_oat/README.
179b256929Sopenharmony_ci    All configurations in this file will be merged to OAT-Default.xml, if you have any questions or concerns, please create issue in OpenHarmony/tools_oat and @jalenchen or chenyaxun.
189b256929Sopenharmony_ci
199b256929Sopenharmony_ci    licensefile:
209b256929Sopenharmony_ci    1.If the project don't have "LICENSE" in root dir, please define all the license files in this project in , OAT will check license files according to this rule.
219b256929Sopenharmony_ci
229b256929Sopenharmony_ci    policylist:
239b256929Sopenharmony_ci    1. policy: If the OAT-Default.xml policies do not meet your requirements, please add policies here.
249b256929Sopenharmony_ci    2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilter is optional,the default value is:
259b256929Sopenharmony_ci    <policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/>
269b256929Sopenharmony_ci    3. policyitem type:
279b256929Sopenharmony_ci        "compatibility" is used to check license compatibility in the specified path;
289b256929Sopenharmony_ci        "license" is used to check source license header in the specified path;
299b256929Sopenharmony_ci        "copyright" is used to check source copyright header in the specified path;
309b256929Sopenharmony_ci        "import" is used to check source dependency in the specified path, such as import ... ,include ...
319b256929Sopenharmony_ci        "filetype" is used to check file type in the specified path, supported file types: archive, binary
329b256929Sopenharmony_ci        "filename" is used to check whether the specified file exists in the specified path(projectroot means the root dir of the project), supported file names: LICENSE, README, README.OpenSource
339b256929Sopenharmony_ci    4. policyitem name: This field is used for define the license, copyright, "*" means match all, the "!" prefix means could not match this value. For example, "!GPL" means can not use GPL license.
349b256929Sopenharmony_ci    5. policyitem path: This field is used for define the source file scope to apply this policyitem, the "!" prefix means exclude the files. For example, "!.*/lib/.*" means files in lib dir will be exclude while process this policyitem.
359b256929Sopenharmony_ci    6. policyitem rule and group: These two fields are used together to merge policy results. "may" policyitems in the same group means any one in this group passed, the result will be passed.
369b256929Sopenharmony_ci    7. policyitem filefilter: Used to bind filefilter which define filter rules.
379b256929Sopenharmony_ci    7. policyitem desc: Used to describe the reason of this policy item, committers will check this while merging the code.
389b256929Sopenharmony_ci    8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is used to filter file path.
399b256929Sopenharmony_ci
409b256929Sopenharmony_ci    Note:If the text contains special characters, please escape them according to the following rules:
419b256929Sopenharmony_ci    " == &gt;
429b256929Sopenharmony_ci    & == &gt;
439b256929Sopenharmony_ci    ' == &gt;
449b256929Sopenharmony_ci    < == &gt;
459b256929Sopenharmony_ci    > == &gt;
469b256929Sopenharmony_ci-->
479b256929Sopenharmony_ci
489b256929Sopenharmony_ci<configuration>
499b256929Sopenharmony_ci    <oatconfig>
509b256929Sopenharmony_ci        <policylist>
519b256929Sopenharmony_ci            <policy name="projectPolicy" desc="">
529b256929Sopenharmony_ci                <policyitem type="copyright" name="Copyright 2015 the original author or authors." path="gradlew" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="file generated by development tool"/>
539b256929Sopenharmony_ci                <policyitem type="copyright" name="Copyright 2015 the original author or authors." path="gradlew.bat" rule="may" group="defaultGroup" filefilter="copyrightPolicyFilter" desc="file generated by development tool"/>
549b256929Sopenharmony_ci			</policy>
559b256929Sopenharmony_ci        </policylist>
569b256929Sopenharmony_ci		<filefilterlist>
579b256929Sopenharmony_ci			<filefilter name="binaryFileTypePolicyFilter" desc="Filters for binary file policies">
589b256929Sopenharmony_ci				<filteritem type="filepath" name="entry/src/main/resources/base/media/.*.png" desc="self developed image"/>
599b256929Sopenharmony_ci
609b256929Sopenharmony_ci				<filteritem type="filepath" name="features/batterycomponent/src/main/resources/base/media/.*.png" desc="self developed image"/>
619b256929Sopenharmony_ci
629b256929Sopenharmony_ci				<filteritem type="filepath" name="features/datetimecomponent/src/main/resources/base/media/.*.png" desc="self developed image"/>
639b256929Sopenharmony_ci
649b256929Sopenharmony_ci				<filteritem type="filepath" name="features/shortcutcomponent/src/main/resources/base/media/.*.png" desc="self developed image"/>
659b256929Sopenharmony_ci
669b256929Sopenharmony_ci				<filteritem type="filepath" name="features/wallpapercomponent/src/main/resources/base/media/.*.png" desc="self developed image"/>
679b256929Sopenharmony_ci
689b256929Sopenharmony_ci				<filteritem type="filepath" name="features/noticeitem/src/main/resources/base/media/.*.png" desc="self developed image"/>
699b256929Sopenharmony_ci
709b256929Sopenharmony_ci				<filteritem type="filepath" name="features/screenlock/src/main/resources/base/media/.*.png" desc="self developed image"/>
719b256929Sopenharmony_ci
729b256929Sopenharmony_ci				<filteritem type="filepath" name="product/pc/src/main/resources/base/media/.*.png" desc="self developed image"/>
739b256929Sopenharmony_ci
749b256929Sopenharmony_ci				<filteritem type="filepath" name="product/phone/src/main/resources/base/media/.*.png" desc="self developed image"/>
759b256929Sopenharmony_ci
769b256929Sopenharmony_ci				<filteritem type="filepath" name="figures/.*.png" desc="self developed image"/>
779b256929Sopenharmony_ci
789b256929Sopenharmony_ci				<filteritem type="filepath" name="figures/.*.jpg" desc="self developed image"/>
799b256929Sopenharmony_ci			</filefilter>
809b256929Sopenharmony_ci			<filefilter name="defaultFilter" desc="Files not to check">
819b256929Sopenharmony_ci				<filteritem type="filepath" name=".*.json5" desc="build config file"/>
829b256929Sopenharmony_ci				<filteritem type="filepath" name="**/.*.json5" desc="build config file"/>
839b256929Sopenharmony_ci				<filteritem type="filepath" name="features/.*/.*.json5" desc="build config file"/>
849b256929Sopenharmony_ci				<filteritem type="filepath" name="product/.*/.*.json5" desc="build config file"/>
859b256929Sopenharmony_ci                <filteritem type="filename" name="hvigorfile.js" desc=".js not need check"/>
869b256929Sopenharmony_ci                <filteritem type="filename" name="*.png" desc=".png files"/>
879b256929Sopenharmony_ci			</filefilter>
889b256929Sopenharmony_ci			<filefilter name="copyrightPolicyFilter" desc="Filters for copyright header policies">
899b256929Sopenharmony_ci				<filteritem type="filename" name="README|README_zh|.*.log|.*.json5|.*.json" desc=""/>
909b256929Sopenharmony_ci				<filteritem type="filename" name="hvigorw|hvigorw.bat|hvigor-wrapper.js" desc="Build files"/>
919b256929Sopenharmony_ci			</filefilter>
929b256929Sopenharmony_ci			<filefilter name="defaultPolicyFilter" desc="Filters for LICENSE file policies">
939b256929Sopenharmony_ci				<filteritem type="filename" name="README|README_zh|*.log|*.json5|*.json" desc="json file"/>
949b256929Sopenharmony_ci				<filteritem type="filename" name="hvigorw|hvigorw.bat|hvigor-wrapper.js" desc="Build files"/>
959b256929Sopenharmony_ci			</filefilter>
969b256929Sopenharmony_ci		</filefilterlist>
979b256929Sopenharmony_ci    </oatconfig>
989b256929Sopenharmony_ci</configuration>
99