diff options
author | Duarte Meneses <duarte.meneses@sonarsource.com> | 2023-01-03 15:00:42 -0600 |
---|---|---|
committer | sonartech <sonartech@sonarsource.com> | 2023-01-05 20:02:56 +0000 |
commit | a62476dc4ebbb8760d1df58275b12cc9f6124597 (patch) | |
tree | b2dab0d9db28d8270ccbf41a52768966831c5a85 /sonar-core | |
parent | c75f6ec98d2171c232537612e7f1d628e5535e61 (diff) | |
download | sonarqube-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.java | 3 |
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"; |