Enable reformat for the whole file for the reformat inspection

This commit is contained in:
Nikolay Krasko
2018-08-07 14:05:13 +03:00
parent 563b2f13a3
commit 9071b5cfa8
@@ -34,7 +34,10 @@ import javax.swing.JComponent
import javax.xml.bind.annotation.XmlAttribute
class ReformatInspection : LocalInspectionTool() {
@XmlAttribute var processChangedFilesOnly: Boolean = false
@XmlAttribute
var processChangedFilesOnly: Boolean = false
override fun runForWholeFile(): Boolean = true
override fun checkFile(file: PsiFile, manager: InspectionManager, isOnTheFly: Boolean): Array<out ProblemDescriptor>? {
if (file !is KtFile || !ProjectRootsUtil.isInProjectSource(file)) {