suppress sonarqube false positive

This commit is contained in:
Sebastian Sdorra
2018-11-30 11:40:52 +01:00
parent f74a89c9d8
commit 07364f4638

View File

@@ -32,6 +32,7 @@ public class InitialRepositoryLocationResolver {
*
* @return initial path of repository
*/
@SuppressWarnings("squid:S2083") // path traversal is prevented with ID_MATCHER
public Path getPath(String repositoryId) {
// avoid path traversal attacks
checkArgument(ID_MATCHER.matchesNoneOf(repositoryId), "repository id contains invalid characters");