Skip to content

Commit 691bb4e

Browse files
authored
Merge pull request #45 from tnorbye/snapshot3
Add better suppress info and update a few issue examples
2 parents e91ef15 + 3340438 commit 691bb4e

File tree

120 files changed

+382
-434
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

120 files changed

+382
-434
lines changed

docs/checks/AddJavascriptInterface.md.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@
124124
// Kotlin
125125
@Suppress("AddJavascriptInterface")
126126
fun method() {
127-
problematicStatement()
127+
addJavascriptInterface(...)
128128
}
129129
```
130130

@@ -134,7 +134,7 @@
134134
// Java
135135
@SuppressWarnings("AddJavascriptInterface")
136136
void method() {
137-
problematicStatement();
137+
addJavascriptInterface(...);
138138
}
139139
```
140140

docs/checks/AllowAllHostnameVerifier.md.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@
112112
// Kotlin
113113
@Suppress("AllowAllHostnameVerifier")
114114
fun method() {
115-
problematicStatement()
115+
setHostnameVerifier(...)
116116
}
117117
```
118118

@@ -122,7 +122,7 @@
122122
// Java
123123
@SuppressWarnings("AllowAllHostnameVerifier")
124124
void method() {
125-
problematicStatement();
125+
setHostnameVerifier(...);
126126
}
127127
```
128128

docs/checks/AnimatorKeep.md.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@
177177
// Kotlin
178178
@Suppress("AnimatorKeep")
179179
fun method() {
180-
problematicStatement()
180+
ofInt(...)
181181
}
182182
```
183183

@@ -187,7 +187,7 @@
187187
// Java
188188
@SuppressWarnings("AnimatorKeep")
189189
void method() {
190-
problematicStatement();
190+
ofInt(...);
191191
}
192192
```
193193

docs/checks/AnnotateVersionCheck.md.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@
261261
// Kotlin
262262
@Suppress("AnnotateVersionCheck")
263263
fun method() {
264-
problematicStatement()
264+
getBuildSdkInt(...)
265265
}
266266
```
267267

@@ -271,7 +271,7 @@
271271
// Java
272272
@SuppressWarnings("AnnotateVersionCheck")
273273
void method() {
274-
problematicStatement();
274+
getBuildSdkInt(...);
275275
}
276276
```
277277

docs/checks/AppCompatMethod.md.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
// Kotlin
139139
@Suppress("AppCompatMethod")
140140
fun method() {
141-
problematicStatement()
141+
getActionBar(...)
142142
}
143143
```
144144

@@ -148,7 +148,7 @@
148148
// Java
149149
@SuppressWarnings("AppCompatMethod")
150150
void method() {
151-
problematicStatement();
151+
getActionBar(...);
152152
}
153153
```
154154

docs/checks/ApplySharedPref.md.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@
152152
// Kotlin
153153
@Suppress("ApplySharedPref")
154154
fun method() {
155-
problematicStatement()
155+
beginTransaction(...)
156156
}
157157
```
158158

@@ -162,7 +162,7 @@
162162
// Java
163163
@SuppressWarnings("ApplySharedPref")
164164
void method() {
165-
problematicStatement();
165+
beginTransaction(...);
166166
}
167167
```
168168

docs/checks/BadPeriodicWorkRequestEnqueue.md.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
// Kotlin
4747
@Suppress("BadPeriodicWorkRequestEnqueue")
4848
fun method() {
49-
problematicStatement()
49+
enqueue(...)
5050
}
5151
```
5252

@@ -56,7 +56,7 @@
5656
// Java
5757
@SuppressWarnings("BadPeriodicWorkRequestEnqueue")
5858
void method() {
59-
problematicStatement();
59+
enqueue(...);
6060
}
6161
```
6262

docs/checks/BlockedPrivateApi.md.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
// Kotlin
9999
@Suppress("BlockedPrivateApi")
100100
fun method() {
101-
problematicStatement()
101+
forName(...)
102102
}
103103
```
104104

@@ -108,7 +108,7 @@
108108
// Java
109109
@SuppressWarnings("BlockedPrivateApi")
110110
void method() {
111-
problematicStatement();
111+
forName(...);
112112
}
113113
```
114114

docs/checks/BrokenIterator.md.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@
174174
// Kotlin
175175
@Suppress("BrokenIterator")
176176
fun method() {
177-
problematicStatement()
177+
add(...)
178178
}
179179
```
180180

@@ -184,7 +184,7 @@
184184
// Java
185185
@SuppressWarnings("BrokenIterator")
186186
void method() {
187-
problematicStatement();
187+
add(...);
188188
}
189189
```
190190

docs/checks/ClickableViewAccessibility.md.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
// Kotlin
9595
@Suppress("ClickableViewAccessibility")
9696
fun method() {
97-
problematicStatement()
97+
setOnTouchListener(...)
9898
}
9999
```
100100

@@ -104,7 +104,7 @@
104104
// Java
105105
@SuppressWarnings("ClickableViewAccessibility")
106106
void method() {
107-
problematicStatement();
107+
setOnTouchListener(...);
108108
}
109109
```
110110

0 commit comments

Comments
 (0)