Skip to content

Conversation

@KvanTTT
Copy link
Contributor

@KvanTTT KvanTTT commented Nov 18, 2025

…oCompilerMessageSeverity`

It allows using the function in `BaseDiagnosticsCollector` (for FIR CLI diagnostics)
and refines the code
…brains.kotlin.fir.analysis.diagnostics`

To make it possible to use them in FIR CLI checkers

Also, now they live in a package where regular `FirErrors` live
It required changing of `getEffectiveSeverity` visibility to public

Simplify code of `CompilerConfiguration.reportIfNeeded`
…nfigured using `-Xwarning-level`

^KT-48419 Fixed
@KvanTTT KvanTTT requested review from a team as code owners November 18, 2025 17:41
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@KvanTTT KvanTTT requested a review from Copilot November 18, 2025 18:14
Comment on lines +23 to +27
val CLI_COMPILER_PLUGIN_IS_EXPERIMENTAL: KtSourcelessDiagnosticFactory by warningWithoutSource()
val CLI_OPT_IN_REQUIREMENT_MARKER_IS_UNRESOLVED: KtSourcelessDiagnosticFactory by warningWithoutSource()
val CLI_NOT_AN_OPT_IN_REQUIREMENT_MARKER: KtSourcelessDiagnosticFactory by warningWithoutSource()
val CLI_OPT_IN_REQUIREMENT_MARKER_IS_DEPRECATED: KtSourcelessDiagnosticFactory by warningWithoutSource()
val CLI_OPT_IN_REQUIREMENT_MARKER_IS_DEPRECATED_ERROR: KtSourcelessDiagnosticFactory by errorWithoutSource()
Copy link
Contributor Author

@KvanTTT KvanTTT Nov 18, 2025

Choose a reason for hiding this comment

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

I'm not sure if CLI_ prefixes are needed here. It probably makes sense to remove them.

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@KvanTTT
Copy link
Contributor Author

KvanTTT commented Nov 18, 2025

@copilot why can't you review the pull request? Which error did you encounter?

Copy link

Copilot AI commented Nov 18, 2025

@KvanTTT I've opened a new pull request, #5569, to work on those changes. Once the pull request is ready, I'll request review from you.

@KvanTTT
Copy link
Contributor Author

KvanTTT commented Nov 18, 2025

@copilot I didn't ask you to do what you've done, but answer the question that I asked.

Copy link

Copilot AI commented Nov 18, 2025

@KvanTTT I've opened a new pull request, #5571, to work on those changes. Once the pull request is ready, I'll request review from you.

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.

2 participants