Skip to content

add missing contract to StandaloneAnalysisAPISessionBuilder.buildKtModuleProvider#5703

Open
BraisGabin wants to merge 1 commit intoJetBrains:masterfrom
BraisGabin:patch-1
Open

add missing contract to StandaloneAnalysisAPISessionBuilder.buildKtModuleProvider#5703
BraisGabin wants to merge 1 commit intoJetBrains:masterfrom
BraisGabin:patch-1

Conversation

@BraisGabin
Copy link

buildStandaloneAnalysisAPISession (The way to get an instance of StandaloneAnalysisAPISessionBuilder) has contract and the function that StandaloneAnalysisAPISessionBuilder.buildKtModuleProvider delegates its job also has the contract so it have sense to add the contract to buildKtModuleProvider too.

Context

I'm working on detekt and this will allow us to change a lateinit var to a val.

…tModuleProvider`

`buildStandaloneAnalysisAPISession` has contract and the function that `StandaloneAnalysisAPISessionBuilder.buildKtModuleProvider` delegates its job also has the contract so it have sense to add the contract to this function too.

## Context
I'm working on detekt and this will allow us to change a `lateinit var` to a `val`.
@kotlin-safe-merge
Copy link

kotlin-safe-merge bot commented Feb 26, 2026

Code Owners

Rule Owners Approval
/​analysis/​ kotlin-analysis-api

Copy link
Contributor

@marcopennekamp marcopennekamp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry for the late review! This totally slipped through the cracks.

Thanks for the contribution!

@marcopennekamp
Copy link
Contributor

/safe-merge

@KotlinBuild
Copy link

Quality gate is triggered at https://buildserver.labs.intellij.net/build/912071791 — use this link to get full insight.

Quality gate was triggered with the following revisions:

kotlin
Branch: refs/merge/GITHUB-5703/safe-merge
Commit: f6757f9

@KotlinBuild
Copy link

Triggered a retry attempt #1 out of 1.

@KotlinBuild
Copy link

Quality gate failed. See https://buildserver.labs.intellij.net/build/912071791 to get full insight.

@marcopennekamp
Copy link
Contributor

@BraisGabin Can you rebase on a fresh master? The current branch has compilation failures in CI. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants