Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yostyle committed Jul 26, 2024
1 parent 9af1ea7 commit 254d90a
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 11 deletions.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ jobs:
cancel-in-progress: ${{ github.ref != 'refs/head/main' && !startsWith(github.ref, 'refs/tags/tchap_v') }}
steps:
- uses: actions/checkout@v4
# TCHAP stay on current branch
# with:
# https://github.com/actions/checkout/issues/881
# ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.ref }}
Expand Down
4 changes: 2 additions & 2 deletions tools/lint/lint.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<issue id="UnusedResources" severity="error">
<!-- Ignore unused resource in debug build type -->
<ignore path="**/src/debug/**" />
<!-- Tchap: Use custom lint rules -->
<!-- TCHAP Use custom lint rules -->
<ignore path="**/devTchap/res/values/config.xml"/>
<ignore path="**/btchap/res/values/config.xml"/>
<ignore path="**/tchap/res/values/config.xml"/>
Expand Down Expand Up @@ -65,7 +65,7 @@

<!-- Layout -->
<issue id="UnknownIdInLayout" severity="error" />
<issue id="StringFormatCount" severity="error" />
<issue id="StringFormatCount" severity="warning" />
<issue id="HardcodedText" severity="error" />
<issue id="ObsoleteLayoutParam" severity="error" />
<issue id="InefficientWeight" severity="error" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ import android.content.Intent
import androidx.core.view.isVisible
import com.airbnb.mvrx.viewModel
import dagger.hilt.android.AndroidEntryPoint
import im.vector.app.R
import im.vector.app.core.platform.VectorBaseActivity
import im.vector.app.databinding.ActivityTchapExpiredBinding
import im.vector.app.features.MainActivity
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ abstract class RoomSummaryItem : VectorEpoxyModel<RoomSummaryItem.Holder>(R.layo
domainNameView.setTextColor(ContextCompat.getColor(view.context, im.vector.lib.ui.styles.R.color.tchap_room_forum))
}
else -> {
domainNameView.text = ""
domainNameView.text = null
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ import androidx.lifecycle.lifecycleScope
import com.airbnb.mvrx.activityViewModel
import com.airbnb.mvrx.withState
import dagger.hilt.android.AndroidEntryPoint
import im.vector.app.R
import im.vector.app.core.extensions.cleanup
import im.vector.app.core.extensions.configureWith
import im.vector.app.core.extensions.trackItemsVisibilityChange
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ class RoomProfileController @Inject constructor(
host.callback?.openGlobalBlockSettings()
}
}
}
}
// TCHAP don't display option "Never send messages to unverified devices in room"
// else {
// // per room setting is available
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ class SignOutBottomSheetActionButton @JvmOverloads constructor(
context.withStyledAttributes(attrs, R.styleable.SignOutBottomSheetActionButton) {
title = getString(R.styleable.SignOutBottomSheetActionButton_actionTitle) ?: ""
leftIcon = getDrawable(R.styleable.SignOutBottomSheetActionButton_leftIcon)
tint = getColor(R.styleable.SignOutBottomSheetActionButton_iconTint, ThemeUtils.getColor(context, im.vector.lib.ui.styles.R.attr.vctr_content_primary))
textColor = getColor(R.styleable.SignOutBottomSheetActionButton_textColor, ThemeUtils.getColor(context, im.vector.lib.ui.styles.R.attr.vctr_content_primary))
tint = getColor(R.styleable.SignOutBottomSheetActionButton_iconTint, ThemeUtils.getColor(context, R.attr.vctr_content_primary))
textColor = getColor(R.styleable.SignOutBottomSheetActionButton_textColor, ThemeUtils.getColor(context, R.attr.vctr_content_primary))
}

views.signedOutActionClickable.setOnClickListener {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,4 @@ package im.vector.app.test.fakes
import io.mockk.mockk
import org.matrix.android.sdk.api.raw.RawService

class FakeRawService : RawService by mockk() {

}
class FakeRawService : RawService by mockk()

0 comments on commit 254d90a

Please sign in to comment.