Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
小 白蛋
Intellij Community
Commits
b88e4989
Commit
b88e4989
authored
8 years ago
by
Konstantin Kolosovsky
Browse files
Options
Download
Email Patches
Plain Diff
Always init "CommitMessageInspectionProfile" inspection tools in tests
parent
c50504ef
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
platform/analysis-impl/src/com/intellij/codeInspection/ex/InspectionProfile.kt
+3
-1
...l/src/com/intellij/codeInspection/ex/InspectionProfile.kt
platform/vcs-impl/src/com/intellij/vcs/commit/CommitMessageInspectionProfile.java
+5
-0
...m/intellij/vcs/commit/CommitMessageInspectionProfile.java
with
8 additions
and
1 deletion
+8
-1
platform/analysis-impl/src/com/intellij/codeInspection/ex/InspectionProfile.kt
+
3
-
1
View file @
b88e4989
...
...
@@ -109,7 +109,7 @@ abstract class NewInspectionProfile(name: String, private var profileManager: Ba
@JvmOverloads
fun
initInspectionTools
(
project
:
Project
?
=
(
profileManager
as
?
ProjectInspectionProfileManager
)
?.
project
)
{
if
(
initialized
||
ApplicationManager
.
getApplication
().
isUnitTestMode
&&
!
INIT_INSPECTIONS
)
{
if
(
initialized
||
!
forceInitInspectionTools
()
)
{
return
}
...
...
@@ -120,6 +120,8 @@ abstract class NewInspectionProfile(name: String, private var profileManager: Ba
}
}
protected
open
fun
forceInitInspectionTools
()
=
!
ApplicationManager
.
getApplication
().
isUnitTestMode
||
INIT_INSPECTIONS
protected
abstract
fun
initialize
(
project
:
Project
?)
fun
copyFrom
(
profile
:
InspectionProfileImpl
)
{
...
...
This diff is collapsed.
Click to expand it.
platform/vcs-impl/src/com/intellij/vcs/commit/CommitMessageInspectionProfile.java
+
5
-
0
View file @
b88e4989
...
...
@@ -72,6 +72,11 @@ public class CommitMessageInspectionProfile extends InspectionProfileImpl
return
((
BodyLimitInspection
)
notNull
(
toolWrapper
).
getTool
()).
RIGHT_MARGIN
;
}
@Override
protected
boolean
forceInitInspectionTools
()
{
return
true
;
}
@NotNull
@Override
@Transient
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment