Update LongParameterList baseline
parent
eab9660146
commit
61d6b333de
|
@ -10,7 +10,6 @@ import org.mozilla.fenix.home.Tab
|
||||||
/**
|
/**
|
||||||
* Diff callback for comparing tab lists with selected state.
|
* Diff callback for comparing tab lists with selected state.
|
||||||
*/
|
*/
|
||||||
@Suppress("LongParameterList")
|
|
||||||
internal class TabDiffUtil(
|
internal class TabDiffUtil(
|
||||||
private val old: List<Tab>,
|
private val old: List<Tab>,
|
||||||
private val new: List<Tab>,
|
private val new: List<Tab>,
|
||||||
|
|
|
@ -47,6 +47,7 @@ import org.mozilla.fenix.utils.Settings
|
||||||
* background worker.
|
* background worker.
|
||||||
*/
|
*/
|
||||||
@Mockable
|
@Mockable
|
||||||
|
@Suppress("LongParameterList")
|
||||||
class BackgroundServices(
|
class BackgroundServices(
|
||||||
private val context: Context,
|
private val context: Context,
|
||||||
private val push: Push,
|
private val push: Push,
|
||||||
|
|
|
@ -25,6 +25,7 @@ import org.mozilla.fenix.utils.Mockable
|
||||||
* Component group for miscellaneous components.
|
* Component group for miscellaneous components.
|
||||||
*/
|
*/
|
||||||
@Mockable
|
@Mockable
|
||||||
|
@Suppress("LongParameterList")
|
||||||
class IntentProcessors(
|
class IntentProcessors(
|
||||||
private val context: Context,
|
private val context: Context,
|
||||||
private val sessionManager: SessionManager,
|
private val sessionManager: SessionManager,
|
||||||
|
|
|
@ -27,6 +27,7 @@ import org.mozilla.fenix.utils.Mockable
|
||||||
* modules and can be triggered by UI interactions.
|
* modules and can be triggered by UI interactions.
|
||||||
*/
|
*/
|
||||||
@Mockable
|
@Mockable
|
||||||
|
@Suppress("LongParameterList")
|
||||||
class UseCases(
|
class UseCases(
|
||||||
private val context: Context,
|
private val context: Context,
|
||||||
private val engine: Engine,
|
private val engine: Engine,
|
||||||
|
|
|
@ -42,7 +42,7 @@ import org.mozilla.fenix.theme.ThemeManager
|
||||||
* @param lifecycleOwner View lifecycle owner used to determine when to cancel UI jobs.
|
* @param lifecycleOwner View lifecycle owner used to determine when to cancel UI jobs.
|
||||||
* @param bookmarksStorage Used to check if a page is bookmarked.
|
* @param bookmarksStorage Used to check if a page is bookmarked.
|
||||||
*/
|
*/
|
||||||
@Suppress("LargeClass")
|
@Suppress("LargeClass", "LongParameterList")
|
||||||
class DefaultToolbarMenu(
|
class DefaultToolbarMenu(
|
||||||
private val context: Context,
|
private val context: Context,
|
||||||
private val sessionManager: SessionManager,
|
private val sessionManager: SessionManager,
|
||||||
|
|
|
@ -68,7 +68,6 @@ abstract class ToolbarIntegration(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Suppress("LongParameterList")
|
|
||||||
class DefaultToolbarIntegration(
|
class DefaultToolbarIntegration(
|
||||||
context: Context,
|
context: Context,
|
||||||
toolbar: BrowserToolbar,
|
toolbar: BrowserToolbar,
|
||||||
|
|
|
@ -21,8 +21,8 @@ import org.mozilla.fenix.ext.settings
|
||||||
* [DynamicDownloadDialog] is used to show a view in the current tab to the user, triggered when
|
* [DynamicDownloadDialog] is used to show a view in the current tab to the user, triggered when
|
||||||
* downloadFeature.onDownloadStopped gets invoked. It uses [DynamicDownloadDialogBehavior] to
|
* downloadFeature.onDownloadStopped gets invoked. It uses [DynamicDownloadDialogBehavior] to
|
||||||
* hide when the users scrolls through a website as to not impede his activities.
|
* hide when the users scrolls through a website as to not impede his activities.
|
||||||
* */
|
*/
|
||||||
|
@Suppress("LongParameterList")
|
||||||
class DynamicDownloadDialog(
|
class DynamicDownloadDialog(
|
||||||
private val container: ViewGroup,
|
private val container: ViewGroup,
|
||||||
private val downloadState: DownloadState?,
|
private val downloadState: DownloadState?,
|
||||||
|
|
|
@ -43,7 +43,7 @@ import mozilla.components.feature.tab.collections.Tab as ComponentTab
|
||||||
* [HomeFragment] controller. An interface that handles the view manipulation of the Tabs triggered
|
* [HomeFragment] controller. An interface that handles the view manipulation of the Tabs triggered
|
||||||
* by the Interactor.
|
* by the Interactor.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("TooManyFunctions")
|
@Suppress("TooManyFunctions")
|
||||||
interface SessionControlController {
|
interface SessionControlController {
|
||||||
/**
|
/**
|
||||||
* @see [CollectionInteractor.onCollectionAddTabTapped]
|
* @see [CollectionInteractor.onCollectionAddTabTapped]
|
||||||
|
@ -146,7 +146,7 @@ interface SessionControlController {
|
||||||
fun handleCreateCollection()
|
fun handleCreateCollection()
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("TooManyFunctions", "LargeClass", "LongParameterList")
|
@Suppress("TooManyFunctions", "LargeClass")
|
||||||
class DefaultSessionControlController(
|
class DefaultSessionControlController(
|
||||||
private val activity: HomeActivity,
|
private val activity: HomeActivity,
|
||||||
private val engine: Engine,
|
private val engine: Engine,
|
||||||
|
|
|
@ -20,7 +20,7 @@ import org.mozilla.fenix.home.OnboardingState
|
||||||
|
|
||||||
// This method got a little complex with the addition of the tab tray feature flag
|
// This method got a little complex with the addition of the tab tray feature flag
|
||||||
// When we remove the tabs from the home screen this will get much simpler again.
|
// When we remove the tabs from the home screen this will get much simpler again.
|
||||||
@SuppressWarnings("LongParameterList", "ComplexMethod")
|
@Suppress("ComplexMethod")
|
||||||
private fun normalModeAdapterItems(
|
private fun normalModeAdapterItems(
|
||||||
topSites: List<TopSite>,
|
topSites: List<TopSite>,
|
||||||
collections: List<TabCollection>,
|
collections: List<TabCollection>,
|
||||||
|
|
|
@ -28,7 +28,7 @@ import org.mozilla.fenix.ext.nav
|
||||||
* [BookmarkFragment] controller.
|
* [BookmarkFragment] controller.
|
||||||
* Delegated by View Interactors, handles container business logic and operates changes on it.
|
* Delegated by View Interactors, handles container business logic and operates changes on it.
|
||||||
*/
|
*/
|
||||||
@SuppressWarnings("TooManyFunctions")
|
@Suppress("TooManyFunctions")
|
||||||
interface BookmarkController {
|
interface BookmarkController {
|
||||||
fun handleBookmarkChanged(item: BookmarkNode)
|
fun handleBookmarkChanged(item: BookmarkNode)
|
||||||
fun handleBookmarkTapped(item: BookmarkNode)
|
fun handleBookmarkTapped(item: BookmarkNode)
|
||||||
|
@ -47,7 +47,7 @@ interface BookmarkController {
|
||||||
fun handleBackPressed()
|
fun handleBackPressed()
|
||||||
}
|
}
|
||||||
|
|
||||||
@SuppressWarnings("TooManyFunctions", "LongParameterList")
|
@Suppress("TooManyFunctions")
|
||||||
class DefaultBookmarkController(
|
class DefaultBookmarkController(
|
||||||
private val activity: HomeActivity,
|
private val activity: HomeActivity,
|
||||||
private val navController: NavController,
|
private val navController: NavController,
|
||||||
|
|
|
@ -53,7 +53,7 @@ interface TabTrayController {
|
||||||
* @param showChooseCollectionDialog callback allowing saving a list of sessions to an existing collection.
|
* @param showChooseCollectionDialog callback allowing saving a list of sessions to an existing collection.
|
||||||
* @param showAddNewCollectionDialog callback allowing for saving a list of sessions to a new collection.
|
* @param showAddNewCollectionDialog callback allowing for saving a list of sessions to a new collection.
|
||||||
*/
|
*/
|
||||||
@Suppress("TooManyFunctions", "LongParameterList")
|
@Suppress("TooManyFunctions")
|
||||||
class DefaultTabTrayController(
|
class DefaultTabTrayController(
|
||||||
private val activity: HomeActivity,
|
private val activity: HomeActivity,
|
||||||
private val navController: NavController,
|
private val navController: NavController,
|
||||||
|
|
|
@ -147,7 +147,6 @@ detekt {
|
||||||
version = "1.9.1"
|
version = "1.9.1"
|
||||||
input = files("$projectDir/app/src")
|
input = files("$projectDir/app/src")
|
||||||
config = files("$projectDir/config/detekt.yml")
|
config = files("$projectDir/config/detekt.yml")
|
||||||
baseline = file("$projectDir/config/detekt-baseline.xml")
|
|
||||||
|
|
||||||
reports {
|
reports {
|
||||||
html {
|
html {
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -76,9 +76,12 @@ complexity:
|
||||||
# https://github.com/mozilla-mobile/fenix/issues/4861
|
# https://github.com/mozilla-mobile/fenix/issues/4861
|
||||||
threshold: 75
|
threshold: 75
|
||||||
LongParameterList:
|
LongParameterList:
|
||||||
active: true
|
active: trued
|
||||||
threshold: 6
|
excludes: "**/*Controller.kt, **/*Integration.kt"
|
||||||
|
functionThreshold: 6
|
||||||
|
constructorThreshold: 7
|
||||||
ignoreDefaultParameters: false
|
ignoreDefaultParameters: false
|
||||||
|
ignoreDataClasses: true
|
||||||
MethodOverloading:
|
MethodOverloading:
|
||||||
active: false
|
active: false
|
||||||
threshold: 6
|
threshold: 6
|
||||||
|
|
Loading…
Reference in New Issue