summaryrefslogtreecommitdiff
path: root/tools/warn/other_warn_patterns.py
diff options
context:
space:
mode:
author Chih-hung Hsieh <chh@google.com> 2020-02-04 18:41:57 +0000
committer Gerrit Code Review <noreply-gerritcodereview@google.com> 2020-02-04 18:41:57 +0000
commit9f7a42025d3f5a45a72133f0da44fbc4d6b6bfe1 (patch)
tree91176e6f1d182c7de8afe37e4c01c806e2b4a624 /tools/warn/other_warn_patterns.py
parent644ed279ebd437c33ccda46ac2524c9c79e6ee4d (diff)
parenta7f5f3fcbbc4840090be27dd2dc9be9c13851c4c (diff)
Merge "Add new Java/Kotlin/Make warning patterns"
Diffstat (limited to 'tools/warn/other_warn_patterns.py')
-rw-r--r--tools/warn/other_warn_patterns.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/warn/other_warn_patterns.py b/tools/warn/other_warn_patterns.py
index 19a4e38625..845e2db7f6 100644
--- a/tools/warn/other_warn_patterns.py
+++ b/tools/warn/other_warn_patterns.py
@@ -112,8 +112,16 @@ warn_patterns = [
kotlin('never used parameter or variable',
[r".*\.kt:.*: warning: (parameter|variable) '.*' is never used$",
r".*\.kt:.*: warning: (parameter|variable) '.*' is never used, could be renamed to _$"]),
+ kotlin('initializer is redundant',
+ [r".*\.kt:.*: warning: .* initializer is redundant$"]),
+ kotlin('elvis operator always returns ...',
+ [r".*\.kt:.*: warning: elvis operator \(\?:\) always returns .+"]),
+ kotlin('shadowed name',
+ [r".*\.kt:.*: warning: name shadowed: .+"]),
kotlin('unchecked cast',
[r".*\.kt:.*: warning: unchecked cast: .* to .*$"]),
+ kotlin('unnecessary safe call on a non-null receiver',
+ [r".*\.kt:.*: warning: unnecessary safe call on a non-null receiver"]),
kotlin('Deprecated in Java',
[r".*\.kt:.*: warning: '.*' is deprecated. Deprecated in Java"]),
kotlin('library has Kotlin runtime',