Skip to content

Commit b352e7d

Browse files
committed
Added NonSerializableField check
1 parent 35c4ebe commit b352e7d

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

src/main/resources/org/sonar/l10n/androidlint/rules/Android_lint_profile.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,7 @@
321321
"TimberArgCount",
322322
"TimberArgTypes",
323323
"TimberTagLength",
324-
"TimberExceptionLogging"
324+
"TimberExceptionLogging",
325+
"NonSerializableField"
325326
]
326327
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<p>
2+
Checks that all fields in serializable class is serializable too
3+
</p>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"sqKey": "NonSerializableField",
3+
"title": "Find non-serializable field in serializable class",
4+
"type": "BUG",
5+
"tags": [
6+
"android",
7+
"correctness"
8+
],
9+
"defaultSeverity": "CRITICAL",
10+
"remediation": {
11+
"func": "Constant\\/Issue",
12+
"constantCost": "5min"
13+
},
14+
"status": "ready",
15+
"scope": "All"
16+
}

0 commit comments

Comments
 (0)