Skip to content

Fix gci lint error

35f9681
Select commit
Loading
Failed to load commit list.
Open

Cf 3137 : List and describe Flink Application instances #3307

Fix gci lint error
35f9681
Select commit
Loading
Failed to load commit list.
SonarQube-Confluent / SonarQube Code Analysis succeeded Apr 7, 2026 in 40s

Annotations

Check failure on line 578 in test/test-server/flink_onprem_handler.go

See this annotation in the file changed.

@sonarqube-confluent sonarqube-confluent / SonarQube Code Analysis

Define a constant instead of duplicating this literal "Application not found" 4 times.

[S1192] String literals should not be duplicated
 See more on https://sonarqube.confluent.io/project/issues?id=cli&pullRequest=3307&issues=5c7fd7c8-fa0a-4abb-9d97-6ab616717cda&open=5c7fd7c8-fa0a-4abb-9d97-6ab616717cda

Check failure on line 653 in test/test-server/flink_onprem_handler.go

See this annotation in the file changed.

@sonarqube-confluent sonarqube-confluent / SonarQube Code Analysis

Define a constant instead of duplicating this literal "inst-001" 3 times.

[S1192] String literals should not be duplicated
 See more on https://sonarqube.confluent.io/project/issues?id=cli&pullRequest=3307&issues=9ca3bbd7-78f5-482d-90a5-23a5aafd1fe7&open=9ca3bbd7-78f5-482d-90a5-23a5aafd1fe7

Check failure on line 393 in test/test-server/flink_onprem_handler.go

See this annotation in the file changed.

@sonarqube-confluent sonarqube-confluent / SonarQube Code Analysis

Define a constant instead of duplicating this literal "Unexpected method %s" 17 times.

[S1192] String literals should not be duplicated
 See more on https://sonarqube.confluent.io/project/issues?id=cli&pullRequest=3307&issues=c06e789f-10d8-4e87-b652-2640b51be0d2&open=c06e789f-10d8-4e87-b652-2640b51be0d2

Check failure on line 473 in test/test-server/flink_onprem_handler.go

See this annotation in the file changed.

@sonarqube-confluent sonarqube-confluent / SonarQube Code Analysis

Define a constant instead of duplicating this literal "default-application-2" 6 times.

[S1192] String literals should not be duplicated
 See more on https://sonarqube.confluent.io/project/issues?id=cli&pullRequest=3307&issues=872acd87-bd52-45c3-9227-8f36ee2c7110&open=872acd87-bd52-45c3-9227-8f36ee2c7110

Check failure on line 29 in internal/flink/command_application_instance_list.go

See this annotation in the file changed.

@sonarqube-confluent sonarqube-confluent / SonarQube Code Analysis

Refactor this method to reduce its Cognitive Complexity from 23 to the 15 allowed.

[S3776] Cognitive Complexity of functions should not be too high
 See more on https://sonarqube.confluent.io/project/issues?id=cli&pullRequest=3307&issues=17ba9d82-bf93-4aa5-9ba3-0ae37d80f64d&open=17ba9d82-bf93-4aa5-9ba3-0ae37d80f64d

Check failure on line 427 in test/test-server/flink_onprem_handler.go

See this annotation in the file changed.

@sonarqube-confluent sonarqube-confluent / SonarQube Code Analysis

Define a constant instead of duplicating this literal "Environment not found" 14 times.

[S1192] String literals should not be duplicated
 See more on https://sonarqube.confluent.io/project/issues?id=cli&pullRequest=3307&issues=7817bc7a-0b2c-4a29-85d0-1d7a167f9b2e&open=7817bc7a-0b2c-4a29-85d0-1d7a167f9b2e

Check failure on line 473 in test/test-server/flink_onprem_handler.go

See this annotation in the file changed.

@sonarqube-confluent sonarqube-confluent / SonarQube Code Analysis

Define a constant instead of duplicating this literal "default-application-1" 8 times.

[S1192] String literals should not be duplicated
 See more on https://sonarqube.confluent.io/project/issues?id=cli&pullRequest=3307&issues=3c758177-f45e-47a3-a712-3731ef7843b2&open=3c758177-f45e-47a3-a712-3731ef7843b2