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
4e239600
Commit
4e239600
authored
Oct 17, 2019
by
Mygod
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refine code style
parent
53ef74d7
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
34 additions
and
19 deletions
+34
-19
detekt.yml
detekt.yml
+17
-4
mobile/src/main/res/layout/layout_profile_config.xml
mobile/src/main/res/layout/layout_profile_config.xml
+6
-5
mobile/src/main/res/layout/layout_scanner.xml
mobile/src/main/res/layout/layout_scanner.xml
+1
-1
tv/src/main/res/layout/activity_main.xml
tv/src/main/res/layout/activity_main.xml
+10
-9
No files found.
detekt.yml
View file @
4e239600
# https://github.com/arturbosch/detekt/blob/1.
0.1
/detekt-cli/src/main/resources/default-detekt-config.yml
# https://github.com/arturbosch/detekt/blob/1.
1.0
/detekt-cli/src/main/resources/default-detekt-config.yml
comments
:
active
:
false
...
...
@@ -93,8 +93,7 @@ exceptions:
active
:
true
methodNames
:
'
toString,hashCode,equals,finalize'
InstanceOfCheckForException
:
active
:
true
excludes
:
"
**/test/**,**/androidTest/**,**/*.Test.kt,**/*.Spec.kt,**/*.Spek.kt"
active
:
false
NotImplementedDeclaration
:
active
:
true
PrintStackTrace
:
...
...
@@ -103,6 +102,7 @@ exceptions:
active
:
false
ReturnFromFinally
:
active
:
true
ignoreLabeled
:
true
SwallowedException
:
active
:
true
ignoredExceptionTypes
:
'
InterruptedException,NumberFormatException,ParseException,MalformedURLException'
...
...
@@ -325,6 +325,8 @@ performance:
potential-bugs
:
active
:
true
Deprecation
:
active
:
true
DuplicateCaseInWhenExpression
:
active
:
true
EqualsAlwaysReturnsTrueOrFalse
:
...
...
@@ -333,6 +335,8 @@ potential-bugs:
active
:
true
ExplicitGarbageCollectionCall
:
active
:
true
HasPlatformType
:
active
:
true
InvalidRange
:
active
:
true
IteratorHasNextCallsNextMethod
:
...
...
@@ -378,9 +382,11 @@ style:
ForbiddenComment
:
active
:
true
values
:
'
TODO:,FIXME:,STOPSHIP:'
allowedPatterns
:
"
"
ForbiddenImport
:
active
:
true
imports
:
'
'
forbiddenPatterns
:
"
"
ForbiddenVoid
:
active
:
true
ignoreOverridden
:
true
...
...
@@ -389,6 +395,7 @@ style:
active
:
true
ignoreOverridableFunction
:
true
excludedFunctions
:
'
describeContents'
excludeAnnotatedFunction
:
"
dagger.Provides"
LibraryCodeMustSpecifyReturnType
:
active
:
true
LoopWithTooManyJumpStatements
:
...
...
@@ -419,11 +426,13 @@ style:
OptionalUnit
:
active
:
true
OptionalWhenBraces
:
active
:
tru
e
active
:
fals
e
PreferToOverPairSyntax
:
active
:
false
ProtectedMemberInFinalClass
:
active
:
true
RedundantExplicitType
:
active
:
true
RedundantVisibilityModifierRule
:
active
:
true
ReturnCount
:
...
...
@@ -461,10 +470,14 @@ style:
UnusedPrivateMember
:
active
:
true
allowedNames
:
"
(_|ignored|expected|serialVersionUID)"
UseArrayLiteralsInAnnotations
:
active
:
true
UseCheckOrError
:
active
:
true
UseDataClass
:
active
:
false
UseIfInsteadOfWhen
:
active
:
false
UseRequire
:
active
:
true
UselessCallOnNotNull
:
...
...
mobile/src/main/res/layout/layout_profile_config.xml
View file @
4e239600
...
...
@@ -4,8 +4,9 @@
android:layout_width=
"match_parent"
android:layout_height=
"match_parent"
>
<include
layout=
"@layout/toolbar_light_dark"
/>
<fragment
android:id=
"@+id/content"
class=
"com.github.shadowsocks.ProfileConfigFragment"
<androidx.fragment.app.FragmentContainerView
android:id=
"@+id/content"
android:name=
"com.github.shadowsocks.ProfileConfigFragment"
android:layout_width=
"match_parent"
android:layout_height=
"0dp"
android:layout_weight=
"1"
/>
...
...
mobile/src/main/res/layout/layout_scanner.xml
View file @
4e239600
...
...
@@ -6,7 +6,7 @@
android:layout_height=
"match_parent"
android:orientation=
"vertical"
>
<include
layout=
"@layout/toolbar_light_dark"
/>
<
fragment
<
androidx.fragment.app.FragmentContainerView
android:id=
"@+id/barcode"
android:name=
"com.google.android.gms.samples.vision.barcodereader.BarcodeCapture"
android:layout_width=
"fill_parent"
...
...
tv/src/main/res/layout/activity_main.xml
View file @
4e239600
<?xml version="1.0" encoding="utf-8"?>
<fragment
xmlns:android=
"http://schemas.android.com/apk/res/android"
<androidx.fragment.app.FragmentContainerView
xmlns:android=
"http://schemas.android.com/apk/res/android"
xmlns:tools=
"http://schemas.android.com/tools"
android:id=
"@+id/main_browse_fragment"
android:name=
"com.github.shadowsocks.tv.MainFragment"
...
...
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