Skip to content

Commit 84e5235

Browse files
SonarCloud - WrongSecrets - Initial Scan 7.0
1 parent cfd729c commit 84e5235

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

src/main/java/org/owasp/wrongsecrets/AllControllerAdvice.java

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22

33
import jakarta.servlet.http.HttpServletRequest;
44
import java.util.stream.Collectors;
5-
import org.owasp.wrongsecrets.challenges.ChallengeUI;
65
import org.owasp.wrongsecrets.definitions.ChallengeDefinitionsConfiguration;
76
import org.springframework.beans.factory.annotation.Value;
87
import org.springframework.ui.Model;
@@ -38,19 +37,19 @@ public AllControllerAdvice(
3837

3938
@ModelAttribute
4039
public void addChallenges(Model model) {
41-
model.addAttribute(
42-
"challenges",
43-
challengeDefinitionsConfiguration.challenges().stream()
44-
.map(
45-
def ->
46-
ChallengeUI.toUI(
47-
def,
48-
scoreCard,
49-
runtimeEnvironment,
50-
challenges.difficulties(),
51-
challenges.getDefinitions().environments(),
52-
challenges.navigation(def)))
53-
.collect(Collectors.toList()));
40+
// model.addAttribute(
41+
// "challenges",
42+
// challengeDefinitionsConfiguration.challenges().stream()
43+
// .map(
44+
// def ->
45+
// ChallengeUI.toUI(
46+
// def,
47+
// scoreCard,
48+
// runtimeEnvironment,
49+
// challenges.difficulties(),
50+
// challenges.getDefinitions().environments(),
51+
// challenges.navigation(def)))
52+
// .collect(Collectors.toList()));
5453
}
5554

5655
@ModelAttribute

0 commit comments

Comments
 (0)