Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
com.ccwangluo.accelerator
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sheteng
com.ccwangluo.accelerator
Commits
5c3bdb32
Commit
5c3bdb32
authored
Dec 29, 2018
by
Mygod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update detekt rules
parent
8716c202
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
5 deletions
+5
-5
core/src/main/java/com/github/shadowsocks/database/Profile.kt
.../src/main/java/com/github/shadowsocks/database/Profile.kt
+2
-1
detekt.yml
detekt.yml
+3
-4
No files found.
core/src/main/java/com/github/shadowsocks/database/Profile.kt
View file @
5c3bdb32
...
...
@@ -44,7 +44,8 @@ class Profile : Serializable {
companion
object
{
private
const
val
TAG
=
"ShadowParser"
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
legacyPattern
=
"^(.+?):(.*)@(.+?):(\\d+?)$"
.
toRegex
()
...
...
detekt.yml
View file @
5c3bdb32
...
...
@@ -95,13 +95,13 @@ exceptions:
PrintStackTrace
:
active
:
false
RethrowCaughtException
:
active
:
tru
e
active
:
fals
e
ReturnFromFinally
:
active
:
true
SwallowedException
:
active
:
true
ThrowingExceptionFromFinally
:
active
:
tru
e
active
:
fals
e
ThrowingExceptionInMain
:
active
:
true
ThrowingExceptionsWithoutMessageOrCause
:
...
...
@@ -317,8 +317,7 @@ style:
CollapsibleIfStatements
:
active
:
true
DataClassContainsFunctions
:
active
:
true
conversionFunctionPrefix
:
'
to'
active
:
false
EqualsNullCall
:
active
:
true
ExpressionBodySyntax
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment