blob: ac3c508ad9cce0dd986c0b90cbd0b3c4ea5ab35f [file] [log] [blame]
Chih-Hung Hsieh888d1432019-12-09 19:32:03 -08001#
2# Copyright (C) 2019 The Android Open Source Project
3#
4# Licensed under the Apache License, Version 2.0 (the "License");
5# you may not use this file except in compliance with the License.
6# You may obtain a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS,
12# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13# See the License for the specific language governing permissions and
14# limitations under the License.
15
16"""Warning patterns for build make tools."""
17
18from severity import Severity
19
20patterns = [
21 # pylint:disable=line-too-long,g-inconsistent-quotes
22 {'category': 'make', 'severity': Severity.MEDIUM,
23 'description': 'make: overriding commands/ignoring old commands',
24 'patterns': [r".*: warning: overriding commands for target .+",
25 r".*: warning: ignoring old commands for target .+"]},
26 {'category': 'make', 'severity': Severity.HIGH,
27 'description': 'make: LOCAL_CLANG is false',
28 'patterns': [r".*: warning: LOCAL_CLANG is set to false"]},
29 {'category': 'make', 'severity': Severity.HIGH,
30 'description': 'SDK App using platform shared library',
31 'patterns': [r".*: warning: .+ \(.*app:sdk.*\) should not link to .+ \(native:platform\)"]},
32 {'category': 'make', 'severity': Severity.HIGH,
33 'description': 'System module linking to a vendor module',
34 'patterns': [r".*: warning: .+ \(.+\) should not link to .+ \(partition:.+\)"]},
35 {'category': 'make', 'severity': Severity.MEDIUM,
36 'description': 'Invalid SDK/NDK linking',
37 'patterns': [r".*: warning: .+ \(.+\) should not link to .+ \(.+\)"]},
38 {'category': 'make', 'severity': Severity.MEDIUM,
39 'description': 'Duplicate header copy',
40 'patterns': [r".*: warning: Duplicate header copy: .+"]},
41 {'category': 'FindEmulator', 'severity': Severity.HARMLESS,
42 'description': 'FindEmulator: No such file or directory',
43 'patterns': [r".*: warning: FindEmulator: .* No such file or directory"]},
44 {'category': 'make', 'severity': Severity.HARMLESS,
45 'description': 'make: unknown installed file',
46 'patterns': [r".*: warning: .*_tests: Unknown installed file for module"]},
47 {'category': 'make', 'severity': Severity.HARMLESS,
48 'description': 'unusual tags debug eng',
49 'patterns': [r".*: warning: .*: unusual tags debug eng"]},
50 {'category': 'make', 'severity': Severity.MEDIUM,
51 'description': 'make: please convert to soong',
52 'patterns': [r".*: warning: .* has been deprecated. Please convert to Soong."]},
53]