mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-01-05 01:50:56 +07:00
remove key rename quickfixes for now
GitOrigin-RevId: 48ace46eb1e448d3b75c1c56930a007bed4bfd8c
This commit is contained in:
committed by
intellij-monorepo-bot
parent
a328b88c34
commit
5fe337771b
@@ -44,7 +44,7 @@ public class IncorrectDelimiterInspection extends LocalInspectionTool {
|
||||
|
||||
PsiTreeUtil.findChildrenOfType(file, DotEnvKeyImpl.class).forEach(key -> {
|
||||
if (key.getText().contains("-")) {
|
||||
problemsHolder.registerProblem(key, "Expected: '_' Found: '-'", new ReplaceDelimiterQuickFix());
|
||||
problemsHolder.registerProblem(key, "Expected: '_' Found: '-'"/*, new ReplaceDelimiterQuickFix()*/);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
@@ -10,7 +10,9 @@ import com.intellij.util.IncorrectOperationException;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.annotations.Nullable;
|
||||
import ru.adelf.idea.dotenv.DotEnvFactory;
|
||||
import ru.adelf.idea.dotenv.psi.*;
|
||||
import ru.adelf.idea.dotenv.psi.DotEnvFile;
|
||||
import ru.adelf.idea.dotenv.psi.DotEnvKey;
|
||||
import ru.adelf.idea.dotenv.psi.DotEnvTypes;
|
||||
|
||||
public class LowercaseKeyInspection extends LocalInspectionTool {
|
||||
// Change the display name within the plugin.xml
|
||||
@@ -38,8 +40,8 @@ public class LowercaseKeyInspection extends LocalInspectionTool {
|
||||
PsiTreeUtil.findChildrenOfType(file, DotEnvKey.class).forEach(dotEnvKey -> {
|
||||
if (dotEnvKey.getText().matches(".*[a-z].*")) {
|
||||
problemsHolder.registerProblem(dotEnvKey,
|
||||
"Key uses lowercase chars. Only keys with uppercase chars are allowed.",
|
||||
new ForceUppercaseQuickFix()
|
||||
"Key uses lowercase chars. Only keys with uppercase chars are allowed."/*,
|
||||
new ForceUppercaseQuickFix()*/
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
@@ -8,7 +8,7 @@ SPACE_INSIDE_SINGLE_QUOTED='space inside single quotes'
|
||||
|
||||
# extra blank lines test END
|
||||
|
||||
INCORRECT_DELIMITER=test-test
|
||||
INCORRECT-DELIMITER=test-test
|
||||
|
||||
*LEADING_CHARACTER=test
|
||||
|
||||
@@ -18,7 +18,7 @@ TRAILING_WHITESPACE_QUOTE="quote"
|
||||
TRAILING_WHITESPACE_MULTI_LINE="multi
|
||||
line"
|
||||
|
||||
LOWER_CASE_KEY=test
|
||||
lower_case_KEY=test
|
||||
|
||||
SPACE_AROUND_SEPERATOR=test
|
||||
SPACE_AROUND_SEPERATOR_QUOTED="test"
|
||||
|
||||
Reference in New Issue
Block a user