Skip to content

Commit

Permalink
refactor: more generic quick-fix name
Browse files Browse the repository at this point in the history
  • Loading branch information
lppedd committed Apr 5, 2020
1 parent 41eafc0 commit 11f7f57
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import com.github.lppedd.cc.*
import com.github.lppedd.cc.configuration.CCConfigService
import com.github.lppedd.cc.inspection.quickfix.AddWsQuickFix
import com.github.lppedd.cc.inspection.quickfix.RemoveRangeQuickFix
import com.github.lppedd.cc.inspection.quickfix.ReplaceWsQuickFix
import com.github.lppedd.cc.inspection.quickfix.ReplaceRangeQuickFix
import com.github.lppedd.cc.parser.CCParser
import com.github.lppedd.cc.parser.ValidToken
import com.intellij.codeInspection.InspectionManager
Expand Down Expand Up @@ -130,7 +130,7 @@ internal class CommitFormatInspection : CommitBaseInspection() {
RemoveRangeQuickFix()
} else {
val config = CCConfigService.getInstance(manager.project)
ReplaceWsQuickFix(config.scopeReplaceChar)
ReplaceRangeQuickFix(config.scopeReplaceChar)
}

manager.createProblemDescriptor(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import com.intellij.openapi.project.Project
/**
* @author Edoardo Luppi
*/
internal class ReplaceWsQuickFix(
internal class ReplaceRangeQuickFix(
private val replaceChar: String,
override val canReformat: Boolean = true,
) : CommitBaseQuickFix(CCBundle["cc.inspection.nonStdMessage.replaceWs", replaceChar]) {
Expand Down

0 comments on commit 11f7f57

Please sign in to comment.