Skip to content

Commit a57fc54

Browse files
authored
SONARPY-1318 Rule S6545: Built-in generic types should be preferred over the typing module in type hints (#1432)
1 parent 6d32888 commit a57fc54

File tree

9 files changed

+2971
-1
lines changed

9 files changed

+2971
-1
lines changed

its/ruling/src/test/java/org/sonar/python/it/PythonRulingTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public class PythonRulingTest {
5353
public static void prepare_quality_profile() {
5454
ProfileGenerator.RulesConfiguration parameters = new ProfileGenerator.RulesConfiguration()
5555
.add("CommentRegularExpression", "message", "The regular expression matches this comment")
56-
.add("S1451","headerFormat" , "# Copyright 2004 by Harry Zuzan. All rights reserved.");
56+
.add("S1451", "headerFormat", "# Copyright 2004 by Harry Zuzan. All rights reserved.");
5757
String serverUrl = ORCHESTRATOR.getServer().getUrl();
5858
File profileFile = ProfileGenerator.generateProfile(serverUrl, "py", "python", parameters, Collections.emptySet());
5959
ORCHESTRATOR.getServer().restoreProfile(FileLocation.of(profileFile));

0 commit comments

Comments
 (0)