1 /* 2 * Copyright 2023 The Android Open Source Project 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 17 package androidx.build 18 19 /** 20 * These lint checks are normally a warning (or lower), but in AndroidX we ignore warnings in Lint. 21 * We want these errors to be reported, so they'll be promoted from a warning to an error in modules 22 * that use the [AndroidXComposeImplPlugin]. 23 */ 24 internal val ComposeLintWarningIdsToTreatAsErrors = 25 listOf( 26 "ComposableNaming", 27 "ComposableLambdaParameterNaming", 28 "ComposableLambdaParameterPosition", 29 "CompositionLocalNaming", 30 "ComposableModifierFactory", 31 "AutoboxingStateCreation", 32 "AutoboxingStateValueProperty", 33 "InvalidColorHexValue", 34 "MissingColorAlphaChannel", 35 "ModifierFactoryReturnType", 36 "ModifierFactoryExtensionFunction", 37 "ModifierNodeInspectableProperties", 38 "ModifierParameter", 39 "MutableCollectionMutableState", 40 "OpaqueUnitKey", 41 "UnnecessaryComposedModifier", 42 "FrequentlyChangedStateReadInComposition", 43 "FrequentlyChangingValue", 44 "ReturnFromAwaitPointerEventScope", 45 "UseOfNonLambdaOffsetOverload", 46 "MultipleAwaitPointerEventScopes", 47 "LocalContextResourcesRead", 48 "ConfigurationScreenWidthHeight" 49 ) 50