aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-core
diff options
context:
space:
mode:
authorDuarte Meneses <duarte.meneses@sonarsource.com>2023-01-03 15:00:42 -0600
committersonartech <sonartech@sonarsource.com>2023-01-05 20:02:56 +0000
commita62476dc4ebbb8760d1df58275b12cc9f6124597 (patch)
treeb2dab0d9db28d8270ccbf41a52768966831c5a85 /sonar-core
parentc75f6ec98d2171c232537612e7f1d628e5535e61 (diff)
downloadsonarqube-a62476dc4ebbb8760d1df58275b12cc9f6124597.tar.gz
sonarqube-a62476dc4ebbb8760d1df58275b12cc9f6124597.zip
SONAR-14584 Analysis of the project can fail if path of the file exceeds 400 character limit
Diffstat (limited to 'sonar-core')
-rw-r--r--sonar-core/src/main/java/org/sonar/core/component/ComponentKeys.java3
1 files changed, 3 insertions, 0 deletions
diff --git a/sonar-core/src/main/java/org/sonar/core/component/ComponentKeys.java b/sonar-core/src/main/java/org/sonar/core/component/ComponentKeys.java
index b8003dfc2d6..4128a54f585 100644
--- a/sonar-core/src/main/java/org/sonar/core/component/ComponentKeys.java
+++ b/sonar-core/src/main/java/org/sonar/core/component/ComponentKeys.java
@@ -27,6 +27,9 @@ import static com.google.common.base.Preconditions.checkArgument;
public final class ComponentKeys {
+ /**
+ * Should be in sync with DefaultIndexedFile.MAX_KEY_LENGTH
+ */
public static final int MAX_COMPONENT_KEY_LENGTH = 400;
public static final String ALLOWED_CHARACTERS_MESSAGE = "Allowed characters are alphanumeric, '-', '_', '.' and ':', with at least one non-digit";