Skip to content

Commit

Permalink
Update baselines
Browse files Browse the repository at this point in the history
  • Loading branch information
ZacSweers committed Oct 31, 2024
1 parent a8bf682 commit 852112b
Show file tree
Hide file tree
Showing 5 changed files with 434 additions and 15 deletions.
181 changes: 173 additions & 8 deletions platforms/gradle/foundry-gradle-plugin/lint-baseline.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,148 @@
<?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 8.8.0-alpha01" type="baseline" client="gradle" dependencies="false" name="AGP (8.6.1)" variant="all" version="8.8.0-alpha01">
<issues format="6" by="lint 8.8.0-alpha01" type="baseline" client="gradle" dependencies="false" name="AGP (8.7.1)" variant="all" version="8.8.0-alpha01">

<issue
id="AvoidUsingNotNullOperator"
message="Avoid using the `!!` operator"
errorLine1=" val segmentName = this::class.simpleName!!"
errorLine2=" ~~">
<location
file="src/main/kotlin/foundry/gradle/dependencies/DependencyCollection.kt"
line="111"
column="43"/>
</issue>

<issue
id="AvoidUsingNotNullOperator"
message="Avoid using the `!!` operator"
errorLine1=" gradleProperty ?: this::class.simpleName!!.lowercase(Locale.US)"
errorLine2=" ~~">
<location
file="src/main/kotlin/foundry/gradle/dependencies/DependencyGroup.kt"
line="43"
column="45"/>
</issue>

<issue
id="AvoidUsingNotNullOperator"
message="Avoid using the `!!` operator"
errorLine1=" var newConfiguration = advice.toConfiguration!!"
errorLine2=" ~~">
<location
file="src/main/kotlin/foundry/gradle/dependencyrake/DependencyRake.kt"
line="231"
column="66"/>
</issue>

<issue
id="AvoidUsingNotNullOperator"
message="Avoid using the `!!` operator"
errorLine1=" val oldConfiguration = abiDep.fromConfiguration!!"
errorLine2=" ~~">
<location
file="src/main/kotlin/foundry/gradle/dependencyrake/DependencyRake.kt"
line="300"
column="62"/>
</issue>

<issue
id="AvoidUsingNotNullOperator"
message="Avoid using the `!!` operator"
errorLine1=" var newConfiguration = abiDep.toConfiguration!!"
errorLine2=" ~~">
<location
file="src/main/kotlin/foundry/gradle/dependencyrake/DependencyRake.kt"
line="301"
column="60"/>
</issue>

<issue
id="AvoidUsingNotNullOperator"
message="Avoid using the `!!` operator"
errorLine1=" androidExtension!!.testOptions.unitTests.isIncludeAndroidResources = true"
errorLine2=" ~~">
<location
file="src/main/kotlin/foundry/gradle/FoundryExtension.kt"
line="1142"
column="21"/>
</issue>

<issue
id="AvoidUsingNotNullOperator"
message="Avoid using the `!!` operator"
errorLine1=" optionalStringProperty(key, defaultValue)!!"
errorLine2=" ~~">
<location
file="src/main/kotlin/foundry/gradle/FoundryProperties.kt"
line="59"
column="46"/>
</issue>

<issue
id="AvoidUsingNotNullOperator"
message="Avoid using the `!!` operator"
errorLine1=" statsFiles.map { it.source().buffer().use(adapter::fromJson)!! }.sortedBy { it.modulePath }"
errorLine2=" ~~">
<location
file="src/main/kotlin/foundry/gradle/stats/ModuleStats.kt"
line="314"
column="67"/>
</issue>

<issue
id="AvoidUsingNotNullOperator"
message="Avoid using the `!!` operator"
errorLine1=" JsonTools.MOSHI.adapter&lt;LocTask.LocData>().fromJson(it)!!"
errorLine2=" ~~">
<location
file="src/main/kotlin/foundry/gradle/stats/ModuleStats.kt"
line="411"
column="66"/>
</issue>

<issue
id="AvoidUsingNotNullOperator"
message="Avoid using the `!!` operator"
errorLine1=" }!!"
errorLine2=" ~~">
<location
file="src/main/kotlin/foundry/gradle/topography/ModuleTopographyTask.kt"
line="232"
column="8"/>
</issue>

<issue
id="AvoidUsingNotNullOperator"
message="Avoid using the `!!` operator"
errorLine1=" path.source().buffer().use { JsonTools.MOSHI.adapter&lt;VersionsOutput>().fromJson(it)!! }"
errorLine2=" ~~">
<location
file="src/main/kotlin/foundry/gradle/Platforms.kt"
line="173"
column="92"/>
</issue>

<issue
id="AvoidUsingNotNullOperator"
message="Avoid using the `!!` operator"
errorLine1=" Publisher.interProjectPublisher(project, artifact.objectInstance!!)"
errorLine2=" ~~">
<location
file="src/main/kotlin/foundry/gradle/StandardProjectConfigurations.kt"
line="127"
column="71"/>
</issue>

<issue
id="MoshiUsageNonMoshiClassPlatform"
message="Platform type &apos;Regex&apos; is not natively supported by Moshi."
errorLine1=" val removalPatterns: Set&lt;Regex>?,"
errorLine2=" ~~~~~~~~~~~">
<location
file="src/main/kotlin/foundry/gradle/topography/models.kt"
line="34"
column="24"/>
</issue>

<issue
id="GradleProjectIsolation"
Expand Down Expand Up @@ -85,7 +228,7 @@
errorLine2=" ~~~~~~~~~~~">
<location
file="src/main/kotlin/foundry/gradle/FoundryProperties.kt"
line="175"
line="184"
column="17"/>
</issue>

Expand All @@ -96,7 +239,7 @@
errorLine2=" ~~~~~~~~~~~">
<location
file="src/main/kotlin/foundry/gradle/FoundryRootPlugin.kt"
line="69"
line="67"
column="32"/>
</issue>

Expand All @@ -107,7 +250,7 @@
errorLine2=" ~~~~~~~~~~~">
<location
file="src/main/kotlin/foundry/gradle/FoundryRootPlugin.kt"
line="489"
line="441"
column="14"/>
</issue>

Expand All @@ -118,7 +261,7 @@
errorLine2=" ~~~~~~~~~~~">
<location
file="src/main/kotlin/foundry/gradle/GlobalConfig.kt"
line="32"
line="33"
column="32"/>
</issue>

Expand Down Expand Up @@ -287,6 +430,17 @@
column="1"/>
</issue>

<issue
id="InternalAgpApiUsage"
message="Avoid using internal Android Gradle Plugin APIs"
errorLine1="import com.android.build.gradle.internal.tasks.databinding.DataBindingGenBaseClassesTask"
errorLine2="~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/kotlin/foundry/gradle/topography/ModuleTopographyTask.kt"
line="18"
column="1"/>
</issue>

<issue
id="InternalAgpApiUsage"
message="Avoid using internal Android Gradle Plugin APIs"
Expand Down Expand Up @@ -353,14 +507,25 @@
column="1"/>
</issue>

<issue
id="InternalGradleApiUsage"
message="Avoid using internal Gradle APIs"
errorLine1="import org.gradle.api.internal.plugins.PluginRegistry"
errorLine2="~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/kotlin/foundry/gradle/topography/ModuleTopographyTask.kt"
line="47"
column="1"/>
</issue>

<issue
id="InternalGradleApiUsage"
message="Avoid using internal Gradle APIs"
errorLine1="import org.gradle.api.internal.provider.MissingValueException"
errorLine2="~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~">
<location
file="src/main/kotlin/foundry/gradle/Platforms.kt"
line="33"
line="32"
column="1"/>
</issue>

Expand Down Expand Up @@ -404,7 +569,7 @@
errorLine2=" ~~~~~~~~">
<location
file="src/main/kotlin/foundry/gradle/FoundryGradleUtil.kt"
line="270"
line="257"
column="9"/>
</issue>

Expand All @@ -415,7 +580,7 @@
errorLine2=" ~~~~~~~">
<location
file="src/main/kotlin/foundry/gradle/Platforms.kt"
line="269"
line="187"
column="53"/>
</issue>

Expand Down
15 changes: 15 additions & 0 deletions platforms/intellij/compose/lint-baseline.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 8.8.0-alpha01" type="baseline" client="gradle" dependencies="false" name="AGP (8.7.1)" variant="all" version="8.8.0-alpha01">

<issue
id="AvoidUsingNotNullOperator"
message="Avoid using the `!!` operator"
errorLine1=" markdown!!,"
errorLine2=" ~~">
<location
file="src/jvmMain/kotlin/foundry/intellij/compose/markdown/ui/MarkdownPanel.kt"
line="100"
column="21"/>
</issue>

</issues>
114 changes: 114 additions & 0 deletions platforms/intellij/skate/lint-baseline.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
<?xml version="1.0" encoding="UTF-8"?>
<issues format="6" by="lint 8.8.0-alpha01" type="baseline" client="gradle" dependencies="false" name="AGP (8.7.1)" variant="all" version="8.8.0-alpha01">

<issue
id="AvoidUsingNotNullOperator"
message="Avoid using the `!!` operator"
errorLine1=" .map { codeOwnershipMap[it]!! }"
errorLine2=" ~~">
<location
file="src/main/kotlin/foundry/intellij/skate/codeowners/CodeOwnerRepository.kt"
line="77"
column="34"/>
</issue>

<issue
id="AvoidUsingNotNullOperator"
message="Avoid using the `!!` operator"
errorLine1=" assertThat(translatorWarning!!.description).isEqualTo(warningDescription)"
errorLine2=" ~~">
<location
file="src/test/kotlin/foundry/intellij/skate/modeltranslator/TranslatorAnnotatorTest.kt"
line="168"
column="33"/>
</issue>

<issue
id="AvoidUsingNotNullOperator"
message="Avoid using the `!!` operator"
errorLine1=" assertThat(body!!.text)"
errorLine2=" ~~">
<location
file="src/test/kotlin/foundry/intellij/skate/modeltranslator/TranslatorHelperTest.kt"
line="42"
column="20"/>
</issue>

<issue
id="AvoidUsingNotNullOperator"
message="Avoid using the `!!` operator"
errorLine1=" assertThat(body!!.text)"
errorLine2=" ~~">
<location
file="src/test/kotlin/foundry/intellij/skate/modeltranslator/TranslatorHelperTest.kt"
line="64"
column="20"/>
</issue>

<issue
id="AvoidUsingNotNullOperator"
message="Avoid using the `!!` operator"
errorLine1=" assertThat(body!!.text)"
errorLine2=" ~~">
<location
file="src/test/kotlin/foundry/intellij/skate/modeltranslator/TranslatorHelperTest.kt"
line="86"
column="20"/>
</issue>

<issue
id="AvoidUsingNotNullOperator"
message="Avoid using the `!!` operator"
errorLine1=" assertThat(body!!.text)"
errorLine2=" ~~">
<location
file="src/test/kotlin/foundry/intellij/skate/modeltranslator/TranslatorHelperTest.kt"
line="108"
column="20"/>
</issue>

<issue
id="AvoidUsingNotNullOperator"
message="Avoid using the `!!` operator"
errorLine1=" assertThat(body!!.text)"
errorLine2=" ~~">
<location
file="src/test/kotlin/foundry/intellij/skate/modeltranslator/TranslatorHelperTest.kt"
line="125"
column="20"/>
</issue>

<issue
id="AvoidUsingNotNullOperator"
message="Avoid using the `!!` operator"
errorLine1=" assertThat(body!!.text)"
errorLine2=" ~~">
<location
file="src/test/kotlin/foundry/intellij/skate/modeltranslator/TranslatorHelperTest.kt"
line="142"
column="20"/>
</issue>

<issue
id="AvoidUsingNotNullOperator"
message="Avoid using the `!!` operator"
errorLine1=" private fun getNamedFunction() = file.findDescendantOfType&lt;KtNamedFunction>()!!"
errorLine2=" ~~">
<location
file="src/test/kotlin/foundry/intellij/skate/modeltranslator/TranslatorHelperTest.kt"
line="153"
column="80"/>
</issue>

<issue
id="AvoidUsingNotNullOperator"
message="Avoid using the `!!` operator"
errorLine1=" return TranslatorHelper.generateBody(TranslatorHelper.extractBundle(getNamedFunction())!!)"
errorLine2=" ~~">
<location
file="src/test/kotlin/foundry/intellij/skate/modeltranslator/TranslatorHelperTest.kt"
line="156"
column="92"/>
</issue>

</issues>
Loading

0 comments on commit 852112b

Please sign in to comment.