|
| 1 | +<?xml version="1.0" encoding="UTF-8"?> |
| 2 | +<issues format="6" by="lint 8.8.0" type="baseline" client="gradle" dependencies="false" name="AGP (8.8.0)" variant="all" version="8.8.0"> |
| 3 | + |
| 4 | + <issue |
| 5 | + id="DoNotMockDataClass" |
| 6 | + message="'com.woocommerce.commons.WearOrderedProduct' is a data class, so mocking it should not be necessary" |
| 7 | + errorLine1=" val expectedProducts = listOf<WearOrderedProduct>(mock())" |
| 8 | + errorLine2=" ~~~~~~"> |
| 9 | + <location |
| 10 | + file="src/test/java/com/woocommerce/android/wear/ui/orders/details/FetchOrderProductsTest.kt" |
| 11 | + line="56" |
| 12 | + column="59"/> |
| 13 | + </issue> |
| 14 | + |
| 15 | + <issue |
| 16 | + id="DoNotMockDataClass" |
| 17 | + message="'com.woocommerce.commons.WearOrder' is a data class, so mocking it should not be necessary" |
| 18 | + errorLine1=" val expectedOrders = listOf<WearOrder>(mock())" |
| 19 | + errorLine2=" ~~~~~~"> |
| 20 | + <location |
| 21 | + file="src/test/java/com/woocommerce/android/wear/ui/orders/list/FetchOrdersTest.kt" |
| 22 | + line="87" |
| 23 | + column="48"/> |
| 24 | + </issue> |
| 25 | + |
| 26 | + <issue |
| 27 | + id="DoNotMockDataClass" |
| 28 | + message="'org.wordpress.android.fluxc.model.WCRevenueStatsModel' is a data class, so mocking it should not be necessary" |
| 29 | + errorLine1=" val revenueStats = mock<WCRevenueStatsModel> {" |
| 30 | + errorLine2=" ^"> |
| 31 | + <location |
| 32 | + file="src/test/java/com/woocommerce/android/wear/complications/FetchStatsForComplicationsTest.kt" |
| 33 | + line="39" |
| 34 | + column="28"/> |
| 35 | + </issue> |
| 36 | + |
| 37 | + <issue |
| 38 | + id="DoNotMockDataClass" |
| 39 | + message="'org.wordpress.android.fluxc.model.WCRevenueStatsModel' is a data class, so mocking it should not be necessary" |
| 40 | + errorLine1=" val revenueStats = mock<WCRevenueStatsModel> {" |
| 41 | + errorLine2=" ^"> |
| 42 | + <location |
| 43 | + file="src/test/java/com/woocommerce/android/wear/complications/FetchStatsForComplicationsTest.kt" |
| 44 | + line="68" |
| 45 | + column="28"/> |
| 46 | + </issue> |
| 47 | + |
| 48 | + <issue |
| 49 | + id="DoNotMockDataClass" |
| 50 | + message="'org.wordpress.android.fluxc.model.WCRevenueStatsModel' is a data class, so mocking it should not be necessary" |
| 51 | + errorLine1=" val revenueResponse = mock<WCRevenueStatsModel> {" |
| 52 | + errorLine2=" ^"> |
| 53 | + <location |
| 54 | + file="src/test/java/com/woocommerce/android/wear/ui/stats/datasource/FetchStatsTest.kt" |
| 55 | + line="110" |
| 56 | + column="31"/> |
| 57 | + </issue> |
| 58 | + |
| 59 | + <issue |
| 60 | + id="DoNotMockDataClass" |
| 61 | + message="'org.wordpress.android.fluxc.persistence.entity.OrderEntity' is a data class, so mocking it should not be necessary" |
| 62 | + errorLine1=" val order1 = mock<OrderEntity> { on { dateCreated } doReturn "1000" }" |
| 63 | + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| 64 | + <location |
| 65 | + file="src/test/java/com/woocommerce/android/wear/ui/orders/OrdersRepositoryTest.kt" |
| 66 | + line="37" |
| 67 | + column="22"/> |
| 68 | + </issue> |
| 69 | + |
| 70 | + <issue |
| 71 | + id="DoNotMockDataClass" |
| 72 | + message="'org.wordpress.android.fluxc.persistence.entity.OrderEntity' is a data class, so mocking it should not be necessary" |
| 73 | + errorLine1=" val order2 = mock<OrderEntity> { on { dateCreated } doReturn "2000" }" |
| 74 | + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| 75 | + <location |
| 76 | + file="src/test/java/com/woocommerce/android/wear/ui/orders/OrdersRepositoryTest.kt" |
| 77 | + line="38" |
| 78 | + column="22"/> |
| 79 | + </issue> |
| 80 | + |
| 81 | + <issue |
| 82 | + id="DoNotMockDataClass" |
| 83 | + message="'org.wordpress.android.fluxc.persistence.entity.OrderEntity' is a data class, so mocking it should not be necessary" |
| 84 | + errorLine1=" val order3 = mock<OrderEntity> { on { dateCreated } doReturn "1500" }" |
| 85 | + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| 86 | + <location |
| 87 | + file="src/test/java/com/woocommerce/android/wear/ui/orders/OrdersRepositoryTest.kt" |
| 88 | + line="39" |
| 89 | + column="22"/> |
| 90 | + </issue> |
| 91 | + |
| 92 | + <issue |
| 93 | + id="DoNotMockDataClass" |
| 94 | + message="'com.woocommerce.android.wear.settings.AppSettings.CrashReportEnabledSettings' is a data class, so mocking it should not be necessary" |
| 95 | + errorLine1=" val settingsMock = mock<CrashReportEnabledSettings>()" |
| 96 | + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| 97 | + <location |
| 98 | + file="src/test/java/com/woocommerce/android/wear/crashlogging/WCWearCrashLoggingDataProviderTest.kt" |
| 99 | + line="63" |
| 100 | + column="28"/> |
| 101 | + </issue> |
| 102 | + |
| 103 | + <issue |
| 104 | + id="DoNotMockDataClass" |
| 105 | + message="'com.woocommerce.android.wear.settings.AppSettings.CrashReportEnabledSettings' is a data class, so mocking it should not be necessary" |
| 106 | + errorLine1=" val settingsMock = mock<CrashReportEnabledSettings>()" |
| 107 | + errorLine2=" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"> |
| 108 | + <location |
| 109 | + file="src/test/java/com/woocommerce/android/wear/crashlogging/WCWearCrashLoggingDataProviderTest.kt" |
| 110 | + line="74" |
| 111 | + column="28"/> |
| 112 | + </issue> |
| 113 | + |
| 114 | +</issues> |
0 commit comments