forked from unshare/hybris-integration-intellij-idea-plugin
-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#1294 | Enum values must be all uppercase (ignore
_
)
- Loading branch information
Showing
3 changed files
with
11 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# | ||
# This file is part of "SAP Commerce Developers Toolset" plugin for IntelliJ IDEA. | ||
# Copyright (C) 2019-2024 EPAM Systems <[email protected]> and contributors | ||
# Copyright (C) 2019-2025 EPAM Systems <[email protected]> and contributors | ||
# | ||
# This program is free software: you can redistribute it and/or modify | ||
# it under the terms of the GNU Lesser General Public License as | ||
|
@@ -45,7 +45,7 @@ intellij.update.since.until.build=true | |
|
||
intellij.plugin.id=com.intellij.idea.plugin.sap.commerce | ||
intellij.plugin.name=SAP-Commerce-Developers-Toolset | ||
intellij.plugin.version=2024.3.3 | ||
intellij.plugin.version=2024.3.4 | ||
intellij.plugin.since.build=243.21565.193 | ||
intellij.plugin.until.build=243.* | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
/* | ||
* This file is part of "SAP Commerce Developers Toolset" plugin for IntelliJ IDEA. | ||
* Copyright (C) 2019-2024 EPAM Systems <[email protected]> and contributors | ||
* Copyright (C) 2019-2025 EPAM Systems <[email protected]> and contributors | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as | ||
|
@@ -53,7 +53,9 @@ class TSEnumValueMustBeUppercase : AbstractTSInspection() { | |
severity: HighlightSeverity | ||
) { | ||
val enumName = enumType.code.stringValue ?: return | ||
val code = enumValue.code.stringValue ?: return | ||
val code = enumValue.code.stringValue | ||
?.replace("_", "") | ||
?: return | ||
if (StringUtil.isUpperCase(code)) return | ||
|
||
holder.createProblem( | ||
|