Commit 5c3bdb32 authored by Mygod's avatar Mygod

Update detekt rules

parent 8716c202
...@@ -44,7 +44,8 @@ class Profile : Serializable { ...@@ -44,7 +44,8 @@ class Profile : Serializable {
companion object { companion object {
private const val TAG = "ShadowParser" private const val TAG = "ShadowParser"
private const val serialVersionUID = 0L private const val serialVersionUID = 0L
private val pattern = """(?i)ss://[-a-zA-Z0-9+&@#/%?=.~*'()|!:,.;\[\]]*[-a-zA-Z0-9+&@#/%=.~*'()|\[\]]""".toRegex() private val pattern =
"""(?i)ss://[-a-zA-Z0-9+&@#/%?=.~*'()|!:,;\[\]]*[-a-zA-Z0-9+&@#/%=.~*'()|\[\]]""".toRegex()
private val userInfoPattern = "^(.+?):(.*)$".toRegex() private val userInfoPattern = "^(.+?):(.*)$".toRegex()
private val legacyPattern = "^(.+?):(.*)@(.+?):(\\d+?)$".toRegex() private val legacyPattern = "^(.+?):(.*)@(.+?):(\\d+?)$".toRegex()
......
...@@ -95,13 +95,13 @@ exceptions: ...@@ -95,13 +95,13 @@ exceptions:
PrintStackTrace: PrintStackTrace:
active: false active: false
RethrowCaughtException: RethrowCaughtException:
active: true active: false
ReturnFromFinally: ReturnFromFinally:
active: true active: true
SwallowedException: SwallowedException:
active: true active: true
ThrowingExceptionFromFinally: ThrowingExceptionFromFinally:
active: true active: false
ThrowingExceptionInMain: ThrowingExceptionInMain:
active: true active: true
ThrowingExceptionsWithoutMessageOrCause: ThrowingExceptionsWithoutMessageOrCause:
...@@ -317,8 +317,7 @@ style: ...@@ -317,8 +317,7 @@ style:
CollapsibleIfStatements: CollapsibleIfStatements:
active: true active: true
DataClassContainsFunctions: DataClassContainsFunctions:
active: true active: false
conversionFunctionPrefix: 'to'
EqualsNullCall: EqualsNullCall:
active: true active: true
ExpressionBodySyntax: ExpressionBodySyntax:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment