1 // Copyright 2023 Google LLC 2 // 3 // Licensed under the Apache License, Version 2.0 (the "License"); 4 // you may not use this file except in compliance with the License. 5 // You may obtain a copy of the License at 6 // 7 // http://www.apache.org/licenses/LICENSE-2.0 8 // 9 // Unless required by applicable law or agreed to in writing, software 10 // distributed under the License is distributed on an "AS IS" BASIS, 11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12 // See the License for the specific language governing permissions and 13 // limitations under the License. 14 15 use cmd_runner::license_checker::LicenseChecker; 16 17 pub const LICENSE_CHECKER: LicenseChecker = LicenseChecker { 18 // These will be checked against the absolute path of each file. 19 ignore: &[ 20 "**/android/build/**", 21 "**/target/**", 22 "**/.idea/**", 23 "**/cmake-build/**", 24 "**/java/build/**", 25 "**/java/*/build/**", 26 "**/ukey2_c_ffi/cpp/build/**", 27 "**/np_java_ffi/build/**", 28 "**/*.toml", 29 "**/*.md", 30 "**/*.lock", 31 "**/*.json", 32 "**/*.rsp", 33 "**/*.patch", 34 "**/*.dockerignore", 35 "**/*.apk", 36 "**/gradle/*", 37 "**/.gradle/*", 38 "**/.git*", 39 "**/*test*vectors.txt", 40 "**/auth_token.txt", 41 "**/*.mdb", 42 "**/.DS_Store", 43 "**/fuzz/corpus/**", 44 "**/.*.swp", 45 "**/*.vim", 46 "**/*.properties", 47 "**/third_party/**", 48 "**/*.png", 49 "**/*.ico", 50 "**/node_modules/**", 51 "**/.angular/**", 52 "**/.editorconfig", 53 "**/*.class", 54 "**/fuzz/artifacts/**", 55 "**/cmake-build-debug/**", 56 "**/tags", 57 "**/MODULE.bazel", 58 "**/WORKSPACE", 59 "**/.bazelrc", 60 ], 61 }; 62 63 #[cfg(test)] 64 mod tests { 65 use super::LICENSE_CHECKER; 66 67 #[test] new_ignore_is_likely_buggy()68 fn new_ignore_is_likely_buggy() { 69 LICENSE_CHECKER.check_new_ignore_is_likely_buggy() 70 } 71 } 72