Enable detekt rules VariableNaming and cleanup the code.
This commit is contained in:
parent
bd2826da3a
commit
2bd1c75937
2 changed files with 4 additions and 5 deletions
|
|
@ -103,7 +103,7 @@ class DefaultBugReporter @Inject constructor(
|
||||||
.adapter<JsonDict>(Types.newParameterizedType(Map::class.java, String::class.java, Any::class.java))
|
.adapter<JsonDict>(Types.newParameterizedType(Map::class.java, String::class.java, Any::class.java))
|
||||||
*/
|
*/
|
||||||
|
|
||||||
private val LOGCAT_CMD_ERROR = arrayOf(
|
private val logcatCommandError = arrayOf(
|
||||||
"logcat", // /< Run 'logcat' command
|
"logcat", // /< Run 'logcat' command
|
||||||
"-d", // /< Dump the log rather than continue outputting it
|
"-d", // /< Dump the log rather than continue outputting it
|
||||||
"-v", // formatting
|
"-v", // formatting
|
||||||
|
|
@ -114,7 +114,7 @@ class DefaultBugReporter @Inject constructor(
|
||||||
"*:S" // /< Everything else silent, so don't pick it..
|
"*:S" // /< Everything else silent, so don't pick it..
|
||||||
)
|
)
|
||||||
|
|
||||||
private val LOGCAT_CMD_DEBUG = arrayOf("logcat", "-d", "-v", "threadtime", "*:*")
|
private val logcatCommandDebug = arrayOf("logcat", "-d", "-v", "threadtime", "*:*")
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Send a bug report.
|
* Send a bug report.
|
||||||
|
|
@ -500,7 +500,7 @@ class DefaultBugReporter @Inject constructor(
|
||||||
val logcatProc: Process
|
val logcatProc: Process
|
||||||
|
|
||||||
try {
|
try {
|
||||||
logcatProc = Runtime.getRuntime().exec(if (isErrorLogCat) LOGCAT_CMD_ERROR else LOGCAT_CMD_DEBUG)
|
logcatProc = Runtime.getRuntime().exec(if (isErrorLogCat) logcatCommandError else logcatCommandDebug)
|
||||||
} catch (e1: IOException) {
|
} catch (e1: IOException) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -69,8 +69,7 @@ complexity:
|
||||||
|
|
||||||
naming:
|
naming:
|
||||||
VariableNaming:
|
VariableNaming:
|
||||||
# TODO Enable it
|
active: true
|
||||||
active: false
|
|
||||||
TopLevelPropertyNaming:
|
TopLevelPropertyNaming:
|
||||||
# TODO Enable it
|
# TODO Enable it
|
||||||
active: false
|
active: false
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue