-
Notifications
You must be signed in to change notification settings - Fork 6.1k
Support -Xwarning-level for Opt-in CLI diagnostics
#5568
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Support -Xwarning-level for Opt-in CLI diagnostics
#5568
Conversation
…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
There was a problem hiding this 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.
| 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() |
There was a problem hiding this comment.
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.
There was a problem hiding this 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.
|
@copilot why can't you review the pull request? Which error did you encounter? |
|
@copilot I didn't ask you to do what you've done, but answer the question that I asked. |
https://youtrack.jetbrains.com/issue/KT-48419/Using-a-RequiresOptIn-API-that-does-not-exist-should-have-an-option-to-not-output-a-warning
I've prepared the PR on GitHub to test GitHub Copilot code review.