Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9b33986e authored by Chih-Hung Hsieh's avatar Chih-Hung Hsieh Committed by android-build-merger
Browse files

Merge "Fix severity of analyzer warnings; add new warnings." am: c6df895a

am: 8c688ae0

Change-Id: Ic088a565c30d3dcffb5520d8f321965759401aa9
parents 8670bf58 8c688ae0
Loading
Loading
Loading
Loading
+8 −3
Original line number Original line Diff line number Diff line
@@ -1749,7 +1749,9 @@ warn_patterns = [
    analyzer_warn_check('clang-analyzer-security.insecureAPI.strcpy'),
    analyzer_warn_check('clang-analyzer-security.insecureAPI.strcpy'),
    analyzer_group_high('clang-analyzer-security.insecureAPI'),
    analyzer_group_high('clang-analyzer-security.insecureAPI'),
    analyzer_group_high('clang-analyzer-security'),
    analyzer_group_high('clang-analyzer-security'),
    analyzer_group_check('clang-analyzer-unix.Malloc'),
    analyzer_high_check('clang-analyzer-unix.Malloc'),
    analyzer_high_check('clang-analyzer-cplusplus.NewDeleteLeaks'),
    analyzer_high_check('clang-analyzer-cplusplus.NewDelete'),
    analyzer_group_check('clang-analyzer-unix'),
    analyzer_group_check('clang-analyzer-unix'),
    analyzer_group_check('clang-analyzer'),  # catch al
    analyzer_group_check('clang-analyzer'),  # catch al


@@ -1767,11 +1769,14 @@ warn_patterns = [
    {'category': 'Protoc', 'severity': Severity.MEDIUM,
    {'category': 'Protoc', 'severity': Severity.MEDIUM,
     'description': 'Proto: Enum name colision after strip',
     'description': 'Proto: Enum name colision after strip',
     'patterns': [r".*: warning: Enum .* has the same name .* ignore case and strip"]},
     'patterns': [r".*: warning: Enum .* has the same name .* ignore case and strip"]},
    {'category': 'Protoc', 'severity': Severity.MEDIUM,
     'description': 'Proto: Import not used',
     'patterns': [r".*: warning: Import .*/.*\.proto but not used.$"]},


    # Kotlin warnings
    # Kotlin warnings
    {'category': 'Kotlin', 'severity': Severity.MEDIUM,
    {'category': 'Kotlin', 'severity': Severity.MEDIUM,
     'description': 'Kotlin: never used parameter',
     'description': 'Kotlin: never used parameter or variable',
     'patterns': [r".*: warning: parameter '.*' is never used"]},
     'patterns': [r".*: warning: (parameter|variable) '.*' is never used$"]},
    {'category': 'Kotlin', 'severity': Severity.MEDIUM,
    {'category': 'Kotlin', 'severity': Severity.MEDIUM,
     'description': 'Kotlin: Deprecated in Java',
     'description': 'Kotlin: Deprecated in Java',
     'patterns': [r".*: warning: '.*' is deprecated. Deprecated in Java"]},
     'patterns': [r".*: warning: '.*' is deprecated. Deprecated in Java"]},