1 // Copyright 2024 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 ignore: &[ 19 "**/android/build/**", 20 "**/target/**", 21 "**/.idea/**", 22 "**/cmake-build/**", 23 "**/java/build/**", 24 "**/java/*/build/**", 25 "**/*.toml", 26 "**/*.md", 27 "**/*.lock", 28 "**/*.json", 29 "**/*.rsp", 30 "**/*.patch", 31 "**/*.dockerignore", 32 "**/*.apk", 33 "**/gradle/*", 34 "**/.gradle/*", 35 "**/.git*", 36 "**/*test*vectors.txt", 37 "**/auth_token.txt", 38 "**/*.mdb", 39 "**/.DS_Store", 40 "**/fuzz/corpus/**", 41 "**/.*.swp", 42 "**/*.vim", 43 "**/*.properties", 44 "**/third_party/**", 45 "**/*.png", 46 "**/*.ico", 47 "**/node_modules/**", 48 "**/.angular/**", 49 "**/.editorconfig", 50 "**/*.class", 51 "**/fuzz/artifacts/**", 52 "**/cmake-build-debug/**", 53 "**/tags", 54 ], 55 }; 56 57 #[cfg(test)] 58 mod tests { 59 use super::LICENSE_CHECKER; 60 61 #[test] new_ignore_is_likely_buggy()62 fn new_ignore_is_likely_buggy() { 63 LICENSE_CHECKER.check_new_ignore_is_likely_buggy(); 64 } 65 } 66