mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[local]: Updated commit inspections (IJPL-245000)
GitOrigin-RevId: 4adf0414b3d48d9d0826cf71dd348b9e8ee40907
This commit is contained in:
committed by
intellij-monorepo-bot
parent
ed0a531a26
commit
3bed40366f
@@ -4233,14 +4233,6 @@ pc:com.intellij.vcs.commit.message.BaseCommitMessageInspection$ReformatCommitMes
|
||||
- invoke(com.intellij.openapi.project.Project,com.intellij.openapi.editor.Editor,com.intellij.psi.PsiFile):V
|
||||
- isAvailable(com.intellij.openapi.project.Project,com.intellij.openapi.editor.Editor,com.intellij.psi.PsiFile):Z
|
||||
- startInWriteAction():Z
|
||||
f:com.intellij.vcs.commit.message.BodyLimitInspection
|
||||
- com.intellij.vcs.commit.message.BaseCommitMessageInspection
|
||||
- RIGHT_MARGIN:I
|
||||
- <init>():V
|
||||
- canReformat(com.intellij.openapi.project.Project,com.intellij.openapi.editor.Document):Z
|
||||
- createOptions(com.intellij.ui.dsl.builder.Panel,com.intellij.openapi.project.Project,com.intellij.openapi.Disposable):Z
|
||||
- getDisplayName():java.lang.String
|
||||
- reformat(com.intellij.openapi.project.Project,com.intellij.openapi.editor.Document):V
|
||||
c:com.intellij.vcs.commit.message.CommitMessageInspectionProfile
|
||||
- com.intellij.codeInspection.ex.InspectionProfileImpl
|
||||
- com.intellij.openapi.components.PersistentStateComponent
|
||||
|
||||
@@ -21,7 +21,7 @@ import com.intellij.ui.dsl.builder.bindSelected
|
||||
import com.intellij.util.DocumentUtil
|
||||
import org.jetbrains.annotations.Nls
|
||||
|
||||
class BodyLimitInspection : BaseCommitMessageInspection() {
|
||||
internal class BodyLimitInspection : BaseCommitMessageInspection() {
|
||||
@JvmField
|
||||
var RIGHT_MARGIN: Int = 72
|
||||
|
||||
@@ -47,6 +47,10 @@ class BodyLimitInspection : BaseCommitMessageInspection() {
|
||||
return false
|
||||
}
|
||||
|
||||
// checkFile() inspects lines by absolute number, so an edit on any line can affect the warning on another.
|
||||
// Running for the whole file re-checks all lines on every change, so the warning shows/updates immediately.
|
||||
override fun runForWholeFile(): Boolean = true
|
||||
|
||||
override fun checkFile(file: PsiFile, document: Document, manager: InspectionManager, isOnTheFly: Boolean): Array<ProblemDescriptor>? {
|
||||
val lines = 1 until document.getLineCount()
|
||||
return lines.mapNotNull { line ->
|
||||
|
||||
Reference in New Issue
Block a user