11767c5feSopenharmony_ci<?xml version="1.0" encoding="UTF-8"?> 21767c5feSopenharmony_ci<!-- Copyright (c) 2021 Huawei Device Co., Ltd. 31767c5feSopenharmony_ci 41767c5feSopenharmony_ci Licensed under the Apache License, Version 2.0 (the "License"); 51767c5feSopenharmony_ci you may not use this file except in compliance with the License. 61767c5feSopenharmony_ci You may obtain a copy of the License at 71767c5feSopenharmony_ci 81767c5feSopenharmony_ci http://www.apache.org/licenses/LICENSE-2.0 91767c5feSopenharmony_ci 101767c5feSopenharmony_ci Unless required by applicable law or agreed to in writing, software 111767c5feSopenharmony_ci distributed under the License is distributed on an "AS IS" BASIS, 121767c5feSopenharmony_ci WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 131767c5feSopenharmony_ci See the License for the specific language governing permissions and 141767c5feSopenharmony_ci limitations under the License. 151767c5feSopenharmony_ci 161767c5feSopenharmony_ci Notes: 171767c5feSopenharmony_ci This is project config file for OpenHarmony OSS Audit Tool, if you have any questions or concerns, please email chenyaxun. 181767c5feSopenharmony_ci--> 191767c5feSopenharmony_ci<!-- OAT(OSS Audit Tool) configuration guide: 201767c5feSopenharmony_cibasedir: Root dir, the basedir + project path is the real source file location. 211767c5feSopenharmony_cilicensefile: 221767c5feSopenharmony_ci1.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. 231767c5feSopenharmony_ci 241767c5feSopenharmony_citasklist(only for batch mode): 251767c5feSopenharmony_ci1. task: Define oat check thread, each task will start a new thread. 261767c5feSopenharmony_ci2. task name: Only an name, no practical effect. 271767c5feSopenharmony_ci3. task policy: Default policy for projects under this task, this field is required and the specified policy must defined in policylist. 281767c5feSopenharmony_ci4. task filter: Default filefilter for projects under this task, this field is required and the specified filefilter must defined in filefilterlist. 291767c5feSopenharmony_ci5. task project: Projects to be checked, the path field define the source root dir of the project. 301767c5feSopenharmony_ci 311767c5feSopenharmony_ci 321767c5feSopenharmony_cipolicyList: 331767c5feSopenharmony_ci1. policy: All policyitems will be merged to default OAT.xml rules, the name of policy doesn't affect OAT check process. 341767c5feSopenharmony_ci2. policyitem: The fields type, name, path, desc is required, and the fields rule, group, filefilter is optional,the default value is: 351767c5feSopenharmony_ci<policyitem type="" name="" path="" desc="" rule="may" group="defaultGroup" filefilter="defaultPolicyFilter"/> 361767c5feSopenharmony_ci3. policyitem type: 371767c5feSopenharmony_ci "compatibility" is used to check license compatibility in the specified path; 381767c5feSopenharmony_ci "license" is used to check source license header in the specified path; 391767c5feSopenharmony_ci "copyright" is used to check source copyright header in the specified path; 401767c5feSopenharmony_ci "import" is used to check source dependency in the specified path, such as import ... ,include ... 411767c5feSopenharmony_ci "filetype" is used to check file type in the specified path, supported file types: archive, binary 421767c5feSopenharmony_ci "filename" is used to check whether the specified file exists in the specified path(support projectroot in default OAT.xml), supported file names: LICENSE, README, README.OpenSource 431767c5feSopenharmony_ci 441767c5feSopenharmony_ci4. 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. 451767c5feSopenharmony_ci5. 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. 461767c5feSopenharmony_ci6. 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. 471767c5feSopenharmony_ci7. policyitem filefilter: Used to bind filefilter which define filter rules. 481767c5feSopenharmony_ci8. filefilter: Filter rules, the type filename is used to filter file name, the type filepath is used to filter file path. 491767c5feSopenharmony_ci 501767c5feSopenharmony_ciNote:If the text contains special characters, please escape them according to the following rules: 511767c5feSopenharmony_ci" == > 521767c5feSopenharmony_ci& == > 531767c5feSopenharmony_ci' == > 541767c5feSopenharmony_ci< == > 551767c5feSopenharmony_ci> == > 561767c5feSopenharmony_ci--> 571767c5feSopenharmony_ci<configuration> 581767c5feSopenharmony_ci <oatconfig> 591767c5feSopenharmony_ci <filefilterlist> 601767c5feSopenharmony_ci <filefilter name="binaryFileTypePolicyFilter" desc="binary file filter policy"> 611767c5feSopenharmony_ci <filteritem type="filepath" name="java/.*" desc="phonenumbers java binary file"/> 621767c5feSopenharmony_ci <filteritem type="filepath" name="migrator/src/.*" desc="phonenumbers java binary file"/> 631767c5feSopenharmony_ci <filteritem type="filepath" name="tools/java/.*" desc="phonenumbers java binary file"/> 641767c5feSopenharmony_ci <filteritem type="filepath" name="metadata/.*" desc="phonenumbers java binary file"/> 651767c5feSopenharmony_ci </filefilter> 661767c5feSopenharmony_ci <filefilter name="defaultPolicyFilter" desc="compatibility, license"> 671767c5feSopenharmony_ci <filteritem type="filepath" name="java/.*" desc="open source orgin file, confirmed"/> 681767c5feSopenharmony_ci <filteritem type="filepath" name="debian/.*" desc="open source orgin file, confirmed"/> 691767c5feSopenharmony_ci <filteritem type="filepath" name="tools/.*" desc="open source orgin file, confirmed"/> 701767c5feSopenharmony_ci <filteritem type="filepath" name="cpp/.*" desc="open source orgin file, confirmed"/> 711767c5feSopenharmony_ci <filteritem type="filepath" name="javascript/.*" desc="open source orgin file, confirmed"/> 721767c5feSopenharmony_ci <filteritem type="filepath" name="migrator/.*" desc="open source orgin file, confirmed"/> 731767c5feSopenharmony_ci <filteritem type="filepath" name="metadata/.*" desc="open source orgin file, confirmed"/> 741767c5feSopenharmony_ci <filteritem type="filepath" name="resources/.*" desc="open source orgin file, confirmed"/> 751767c5feSopenharmony_ci <filteritem type="filename" name="AUTHORS" desc="open source orgin file, confirmed"/> 761767c5feSopenharmony_ci <filteritem type="filename" name="CONTRIBUTORS" desc="open source orgin file, confirmed"/> 771767c5feSopenharmony_ci <filteritem type="filename" name="LICENSE.Chromium" desc="open source orgin file, confirmed"/> 781767c5feSopenharmony_ci <filteritem type="filename" name="codereview.settings" desc="open source orgin file, confirmed"/> 791767c5feSopenharmony_ci <filteritem type="filename" name="pom.xml" desc="open source orgin file, confirmed"/> 801767c5feSopenharmony_ci </filefilter> 811767c5feSopenharmony_ci <filefilter name="copyrightPolicyFilter" desc="compatibility, license"> 821767c5feSopenharmony_ci <filteritem type="filepath" name="java/.*" desc="open source orgin file, confirmed"/> 831767c5feSopenharmony_ci <filteritem type="filepath" name="debian/.*" desc="open source orgin file, confirmed"/> 841767c5feSopenharmony_ci <filteritem type="filepath" name="tools/.*" desc="open source orgin file, confirmed"/> 851767c5feSopenharmony_ci <filteritem type="filepath" name="cpp/.*" desc="open source orgin file, confirmed"/> 861767c5feSopenharmony_ci <filteritem type="filepath" name="javascript/.*" desc="open source orgin file, confirmed"/> 871767c5feSopenharmony_ci <filteritem type="filepath" name="metadata/src/.*" desc="open source orgin file, confirmed"/> 881767c5feSopenharmony_ci <filteritem type="filepath" name="migrator/src/.*" desc="open source orgin file, confirmed"/> 891767c5feSopenharmony_ci <filteritem type="filepath" name="migrator/migrator-servlet/.*" desc="open source orgin file, confirmed"/> 901767c5feSopenharmony_ci <filteritem type="filepath" name="resources/.*" desc="open source orgin file, confirmed"/> 911767c5feSopenharmony_ci <filteritem type="filename" name="CONTRIBUTORS" desc="open source orgin file, confirmed"/> 921767c5feSopenharmony_ci <filteritem type="filename" name="LICENSE.Chromium" desc="open source orgin file, confirmed"/> 931767c5feSopenharmony_ci <filteritem type="filename" name="codereview.settings" desc="open source orgin file, confirmed"/> 941767c5feSopenharmony_ci <filteritem type="filename" name="pom.xml" desc="open source orgin file, confirmed"/> 951767c5feSopenharmony_ci </filefilter> 961767c5feSopenharmony_ci </filefilterlist> 971767c5feSopenharmony_ci </oatconfig> 981767c5feSopenharmony_ci</configuration>