From 90c48c5a17c287d8d6c6b298e6017decaedecf77 Mon Sep 17 00:00:00 2001 From: Gabriel Luong Date: Fri, 11 Aug 2023 23:45:01 -0400 Subject: [PATCH] Bug 1795140 - Enable AbsentOrWrongFileLicense detekt rule --- .../mozilla/fenix/onboarding/view/JunoOnboardingMapperTest.kt | 4 ++++ .../java/org/mozilla/fenix/ui/AddToHomeScreenTest.kt | 4 ++++ .../java/org/mozilla/fenix/ui/AddressAutofillTest.kt | 4 ++++ .../java/org/mozilla/fenix/ui/ComposeMediaNotificationTest.kt | 4 ++++ .../java/org/mozilla/fenix/ui/CookieBannerReductionTest.kt | 4 ++++ .../java/org/mozilla/fenix/ui/CrashReportingTest.kt | 4 ++++ .../java/org/mozilla/fenix/ui/CreditCardAutofillTest.kt | 4 ++++ .../androidTest/java/org/mozilla/fenix/ui/CustomTabsTest.kt | 4 ++++ app/src/androidTest/java/org/mozilla/fenix/ui/MainMenuTest.kt | 4 ++++ .../androidTest/java/org/mozilla/fenix/ui/OnboardingTest.kt | 4 ++++ app/src/androidTest/java/org/mozilla/fenix/ui/PwaTest.kt | 4 ++++ .../java/org/mozilla/fenix/ui/SettingsCustomizeTest.kt | 4 ++++ .../java/org/mozilla/fenix/ui/SettingsSearchTest.kt | 4 ++++ .../java/org/mozilla/fenix/ui/TextSelectionTest.kt | 4 ++++ .../fenix/ui/robots/SettingsSubMenuExperimentsRobot.kt | 4 ++++ .../org/mozilla/fenix/components/metrics/GrowthDataWorker.kt | 4 ++++ app/src/main/java/org/mozilla/fenix/ext/Bitmap.kt | 4 ++++ .../fenix/shopping/middleware/ProductAnalysisMapper.kt | 4 ++++ .../org/mozilla/fenix/home/blocklist/BlocklistHandlerTest.kt | 4 ++++ .../fenix/home/intent/HomeDeepLinkIntentProcessorTest.kt | 4 ++-- .../fenix/intent/ExternalDeepLinkIntentProcessorTest.kt | 4 ++++ .../library/history/state/HistoryNavigationMiddlewareTest.kt | 4 ++++ .../library/history/state/HistoryStorageMiddlewareTest.kt | 4 ++++ .../library/history/state/HistoryTelemetryMiddlewareTest.kt | 4 ++++ .../mozilla/fenix/search/toolbar/SearchSelectorMenuTest.kt | 4 ++++ .../org/mozilla/fenix/shopping/ProductAnalysisTestData.kt | 4 ++++ .../fenix/shopping/middleware/ProductAnalysisMapperTest.kt | 4 ++++ .../mozilla/fenix/wallpapers/LegacyWallpaperMigrationTest.kt | 4 ++++ .../org/mozilla/fenix/wallpapers/WallpaperDownloaderTest.kt | 4 ++++ .../org/mozilla/fenix/wallpapers/WallpaperFileManagerTest.kt | 4 ++++ .../mozilla/fenix/wallpapers/WallpaperMetadataFetcherTest.kt | 4 ++++ .../test/java/org/mozilla/fenix/wallpapers/WallpaperTest.kt | 4 ++++ .../org/mozilla/fenix/wallpapers/WallpapersUseCasesTest.kt | 4 ++++ config/detekt.yml | 2 +- 34 files changed, 131 insertions(+), 3 deletions(-) diff --git a/app/src/androidTest/java/org/mozilla/fenix/onboarding/view/JunoOnboardingMapperTest.kt b/app/src/androidTest/java/org/mozilla/fenix/onboarding/view/JunoOnboardingMapperTest.kt index 58ebddf20..18b39fb92 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/onboarding/view/JunoOnboardingMapperTest.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/onboarding/view/JunoOnboardingMapperTest.kt @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package org.mozilla.fenix.onboarding.view import androidx.compose.ui.layout.ContentScale diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/AddToHomeScreenTest.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/AddToHomeScreenTest.kt index e1af975be..f1fa8d9b6 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/AddToHomeScreenTest.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/AddToHomeScreenTest.kt @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package org.mozilla.fenix.ui import androidx.core.net.toUri diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/AddressAutofillTest.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/AddressAutofillTest.kt index c8f3543d5..f326b1abb 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/AddressAutofillTest.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/AddressAutofillTest.kt @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package org.mozilla.fenix.ui import okhttp3.mockwebserver.MockWebServer diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/ComposeMediaNotificationTest.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/ComposeMediaNotificationTest.kt index c1279f94d..63e067f1e 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/ComposeMediaNotificationTest.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/ComposeMediaNotificationTest.kt @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package org.mozilla.fenix.ui import androidx.compose.ui.test.junit4.AndroidComposeTestRule diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/CookieBannerReductionTest.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/CookieBannerReductionTest.kt index 49de05b1b..2f8f8f453 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/CookieBannerReductionTest.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/CookieBannerReductionTest.kt @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package org.mozilla.fenix.ui import androidx.core.net.toUri diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/CrashReportingTest.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/CrashReportingTest.kt index 00c51519f..c6680f3e9 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/CrashReportingTest.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/CrashReportingTest.kt @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package org.mozilla.fenix.ui import androidx.compose.ui.test.junit4.AndroidComposeTestRule diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/CreditCardAutofillTest.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/CreditCardAutofillTest.kt index af8055baa..46c8557eb 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/CreditCardAutofillTest.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/CreditCardAutofillTest.kt @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package org.mozilla.fenix.ui import okhttp3.mockwebserver.MockWebServer diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/CustomTabsTest.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/CustomTabsTest.kt index f10d0c806..1a6c62bfe 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/CustomTabsTest.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/CustomTabsTest.kt @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + @file:Suppress("DEPRECATION") package org.mozilla.fenix.ui diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/MainMenuTest.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/MainMenuTest.kt index 576e11a5c..b2d5faf61 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/MainMenuTest.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/MainMenuTest.kt @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package org.mozilla.fenix.ui import androidx.test.platform.app.InstrumentationRegistry diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/OnboardingTest.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/OnboardingTest.kt index 68e044c31..2efc8ef26 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/OnboardingTest.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/OnboardingTest.kt @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package org.mozilla.fenix.ui import android.content.res.Configuration diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/PwaTest.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/PwaTest.kt index ecb1a6454..ded4b5102 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/PwaTest.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/PwaTest.kt @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package org.mozilla.fenix.ui import androidx.core.net.toUri diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/SettingsCustomizeTest.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/SettingsCustomizeTest.kt index ebd8af34a..72619bea9 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/SettingsCustomizeTest.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/SettingsCustomizeTest.kt @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package org.mozilla.fenix.ui import android.content.res.Configuration diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/SettingsSearchTest.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/SettingsSearchTest.kt index 1c9bfbf24..c1df13e1f 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/SettingsSearchTest.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/SettingsSearchTest.kt @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package org.mozilla.fenix.ui import androidx.compose.ui.test.junit4.AndroidComposeTestRule diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/TextSelectionTest.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/TextSelectionTest.kt index 4c3d5f516..adc7881d6 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/TextSelectionTest.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/TextSelectionTest.kt @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package org.mozilla.fenix.ui import androidx.test.platform.app.InstrumentationRegistry diff --git a/app/src/androidTest/java/org/mozilla/fenix/ui/robots/SettingsSubMenuExperimentsRobot.kt b/app/src/androidTest/java/org/mozilla/fenix/ui/robots/SettingsSubMenuExperimentsRobot.kt index 376b820e3..4469db007 100644 --- a/app/src/androidTest/java/org/mozilla/fenix/ui/robots/SettingsSubMenuExperimentsRobot.kt +++ b/app/src/androidTest/java/org/mozilla/fenix/ui/robots/SettingsSubMenuExperimentsRobot.kt @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package org.mozilla.fenix.ui.robots import androidx.test.espresso.Espresso.onView diff --git a/app/src/main/java/org/mozilla/fenix/components/metrics/GrowthDataWorker.kt b/app/src/main/java/org/mozilla/fenix/components/metrics/GrowthDataWorker.kt index 728752395..b95c5c024 100644 --- a/app/src/main/java/org/mozilla/fenix/components/metrics/GrowthDataWorker.kt +++ b/app/src/main/java/org/mozilla/fenix/components/metrics/GrowthDataWorker.kt @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package org.mozilla.fenix.components.metrics import android.content.Context diff --git a/app/src/main/java/org/mozilla/fenix/ext/Bitmap.kt b/app/src/main/java/org/mozilla/fenix/ext/Bitmap.kt index e5a901f50..02f63839f 100644 --- a/app/src/main/java/org/mozilla/fenix/ext/Bitmap.kt +++ b/app/src/main/java/org/mozilla/fenix/ext/Bitmap.kt @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package org.mozilla.fenix.ext import android.graphics.Bitmap diff --git a/app/src/main/java/org/mozilla/fenix/shopping/middleware/ProductAnalysisMapper.kt b/app/src/main/java/org/mozilla/fenix/shopping/middleware/ProductAnalysisMapper.kt index ebc120d8f..22c05afa5 100644 --- a/app/src/main/java/org/mozilla/fenix/shopping/middleware/ProductAnalysisMapper.kt +++ b/app/src/main/java/org/mozilla/fenix/shopping/middleware/ProductAnalysisMapper.kt @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package org.mozilla.fenix.shopping.middleware import mozilla.components.browser.engine.gecko.shopping.GeckoProductAnalysis diff --git a/app/src/test/java/org/mozilla/fenix/home/blocklist/BlocklistHandlerTest.kt b/app/src/test/java/org/mozilla/fenix/home/blocklist/BlocklistHandlerTest.kt index e021a9c80..c41002088 100644 --- a/app/src/test/java/org/mozilla/fenix/home/blocklist/BlocklistHandlerTest.kt +++ b/app/src/test/java/org/mozilla/fenix/home/blocklist/BlocklistHandlerTest.kt @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package org.mozilla.fenix.home.blocklist import io.mockk.every diff --git a/app/src/test/java/org/mozilla/fenix/home/intent/HomeDeepLinkIntentProcessorTest.kt b/app/src/test/java/org/mozilla/fenix/home/intent/HomeDeepLinkIntentProcessorTest.kt index 5584a9b79..d3be5f12d 100644 --- a/app/src/test/java/org/mozilla/fenix/home/intent/HomeDeepLinkIntentProcessorTest.kt +++ b/app/src/test/java/org/mozilla/fenix/home/intent/HomeDeepLinkIntentProcessorTest.kt @@ -1,6 +1,6 @@ /* This Source Code Form is subject to the terms of the Mozilla Public -* License, v. 2.0. If a copy of the MPL was not distributed with this -* file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ package org.mozilla.fenix.home.intent diff --git a/app/src/test/java/org/mozilla/fenix/intent/ExternalDeepLinkIntentProcessorTest.kt b/app/src/test/java/org/mozilla/fenix/intent/ExternalDeepLinkIntentProcessorTest.kt index a4c4e08a8..dccbef1cb 100644 --- a/app/src/test/java/org/mozilla/fenix/intent/ExternalDeepLinkIntentProcessorTest.kt +++ b/app/src/test/java/org/mozilla/fenix/intent/ExternalDeepLinkIntentProcessorTest.kt @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package org.mozilla.fenix.intent import android.content.Intent diff --git a/app/src/test/java/org/mozilla/fenix/library/history/state/HistoryNavigationMiddlewareTest.kt b/app/src/test/java/org/mozilla/fenix/library/history/state/HistoryNavigationMiddlewareTest.kt index a5bec8b49..d2d5c38f1 100644 --- a/app/src/test/java/org/mozilla/fenix/library/history/state/HistoryNavigationMiddlewareTest.kt +++ b/app/src/test/java/org/mozilla/fenix/library/history/state/HistoryNavigationMiddlewareTest.kt @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package org.mozilla.fenix.library.history.state import androidx.navigation.NavController diff --git a/app/src/test/java/org/mozilla/fenix/library/history/state/HistoryStorageMiddlewareTest.kt b/app/src/test/java/org/mozilla/fenix/library/history/state/HistoryStorageMiddlewareTest.kt index 378b80e40..2b0d6e620 100644 --- a/app/src/test/java/org/mozilla/fenix/library/history/state/HistoryStorageMiddlewareTest.kt +++ b/app/src/test/java/org/mozilla/fenix/library/history/state/HistoryStorageMiddlewareTest.kt @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package org.mozilla.fenix.library.history.state import kotlinx.coroutines.runBlocking diff --git a/app/src/test/java/org/mozilla/fenix/library/history/state/HistoryTelemetryMiddlewareTest.kt b/app/src/test/java/org/mozilla/fenix/library/history/state/HistoryTelemetryMiddlewareTest.kt index b6146e3df..4872d471c 100644 --- a/app/src/test/java/org/mozilla/fenix/library/history/state/HistoryTelemetryMiddlewareTest.kt +++ b/app/src/test/java/org/mozilla/fenix/library/history/state/HistoryTelemetryMiddlewareTest.kt @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package org.mozilla.fenix.library.history.state import mozilla.components.service.glean.testing.GleanTestRule diff --git a/app/src/test/java/org/mozilla/fenix/search/toolbar/SearchSelectorMenuTest.kt b/app/src/test/java/org/mozilla/fenix/search/toolbar/SearchSelectorMenuTest.kt index 7dafa6545..213a57e8f 100644 --- a/app/src/test/java/org/mozilla/fenix/search/toolbar/SearchSelectorMenuTest.kt +++ b/app/src/test/java/org/mozilla/fenix/search/toolbar/SearchSelectorMenuTest.kt @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package org.mozilla.fenix.search.toolbar import io.mockk.Runs diff --git a/app/src/test/java/org/mozilla/fenix/shopping/ProductAnalysisTestData.kt b/app/src/test/java/org/mozilla/fenix/shopping/ProductAnalysisTestData.kt index db1af1ca1..aa3f69a7e 100644 --- a/app/src/test/java/org/mozilla/fenix/shopping/ProductAnalysisTestData.kt +++ b/app/src/test/java/org/mozilla/fenix/shopping/ProductAnalysisTestData.kt @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package org.mozilla.fenix.shopping import mozilla.components.browser.engine.gecko.shopping.GeckoProductAnalysis diff --git a/app/src/test/java/org/mozilla/fenix/shopping/middleware/ProductAnalysisMapperTest.kt b/app/src/test/java/org/mozilla/fenix/shopping/middleware/ProductAnalysisMapperTest.kt index 0cd2ee92b..5fcae3634 100644 --- a/app/src/test/java/org/mozilla/fenix/shopping/middleware/ProductAnalysisMapperTest.kt +++ b/app/src/test/java/org/mozilla/fenix/shopping/middleware/ProductAnalysisMapperTest.kt @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package org.mozilla.fenix.shopping.middleware import mozilla.components.browser.engine.gecko.shopping.Highlight diff --git a/app/src/test/java/org/mozilla/fenix/wallpapers/LegacyWallpaperMigrationTest.kt b/app/src/test/java/org/mozilla/fenix/wallpapers/LegacyWallpaperMigrationTest.kt index d326798bf..72e1851e0 100644 --- a/app/src/test/java/org/mozilla/fenix/wallpapers/LegacyWallpaperMigrationTest.kt +++ b/app/src/test/java/org/mozilla/fenix/wallpapers/LegacyWallpaperMigrationTest.kt @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package org.mozilla.fenix.wallpapers import io.mockk.mockk diff --git a/app/src/test/java/org/mozilla/fenix/wallpapers/WallpaperDownloaderTest.kt b/app/src/test/java/org/mozilla/fenix/wallpapers/WallpaperDownloaderTest.kt index e43faf60d..821f523b8 100644 --- a/app/src/test/java/org/mozilla/fenix/wallpapers/WallpaperDownloaderTest.kt +++ b/app/src/test/java/org/mozilla/fenix/wallpapers/WallpaperDownloaderTest.kt @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package org.mozilla.fenix.wallpapers import io.mockk.every diff --git a/app/src/test/java/org/mozilla/fenix/wallpapers/WallpaperFileManagerTest.kt b/app/src/test/java/org/mozilla/fenix/wallpapers/WallpaperFileManagerTest.kt index 2f31e91b4..1fbbf2b98 100644 --- a/app/src/test/java/org/mozilla/fenix/wallpapers/WallpaperFileManagerTest.kt +++ b/app/src/test/java/org/mozilla/fenix/wallpapers/WallpaperFileManagerTest.kt @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package org.mozilla.fenix.wallpapers import io.mockk.every diff --git a/app/src/test/java/org/mozilla/fenix/wallpapers/WallpaperMetadataFetcherTest.kt b/app/src/test/java/org/mozilla/fenix/wallpapers/WallpaperMetadataFetcherTest.kt index 341ce38fe..ff1ad66ff 100644 --- a/app/src/test/java/org/mozilla/fenix/wallpapers/WallpaperMetadataFetcherTest.kt +++ b/app/src/test/java/org/mozilla/fenix/wallpapers/WallpaperMetadataFetcherTest.kt @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package org.mozilla.fenix.wallpapers import androidx.test.ext.junit.runners.AndroidJUnit4 diff --git a/app/src/test/java/org/mozilla/fenix/wallpapers/WallpaperTest.kt b/app/src/test/java/org/mozilla/fenix/wallpapers/WallpaperTest.kt index 2dc046487..351567352 100644 --- a/app/src/test/java/org/mozilla/fenix/wallpapers/WallpaperTest.kt +++ b/app/src/test/java/org/mozilla/fenix/wallpapers/WallpaperTest.kt @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package org.mozilla.fenix.wallpapers import org.junit.Assert.assertFalse diff --git a/app/src/test/java/org/mozilla/fenix/wallpapers/WallpapersUseCasesTest.kt b/app/src/test/java/org/mozilla/fenix/wallpapers/WallpapersUseCasesTest.kt index d11d1f170..29b9b38f2 100644 --- a/app/src/test/java/org/mozilla/fenix/wallpapers/WallpapersUseCasesTest.kt +++ b/app/src/test/java/org/mozilla/fenix/wallpapers/WallpapersUseCasesTest.kt @@ -1,3 +1,7 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ + package org.mozilla.fenix.wallpapers import io.mockk.Runs diff --git a/config/detekt.yml b/config/detekt.yml index cd4ccec39..8b54ed88c 100644 --- a/config/detekt.yml +++ b/config/detekt.yml @@ -56,7 +56,7 @@ output-reports: comments: active: true AbsentOrWrongFileLicense: - active: false + active: true licenseTemplateFile: 'license.template' licenseTemplateIsRegex: false CommentOverPrivateFunction: