Invalid java:s6241 and java:s6242 warnings issued

Must-share information (formatted with Markdown):

  • which versions are you using (SonarQube Server / Community Build, Scanner, Plugin, and any relevant extension)
  • how is SonarQube deployed: zip, Docker, Helm
  • what are you trying to achieve
  • what have you tried so far to achieve this

Do not share screenshots of logs – share the text itself (bonus points for being well-formatted)!

SonarQube for IDE (Version 10.18.0.80657) in:
IntelliJ IDEA 2024.3.4 (Ultimate Edition)
Build #IU-243.25659.39, built on February 27, 2025
Licensed to "me"
You have a perpetual fallback license for this version.
Subscription is active until March 24, 2026.
Runtime version: 21.0.6+8-b631.39 amd64 (JCEF 122.1.9)
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Toolkit: sun.awt.windows.WToolkit
Windows 11.0
GC: G1 Young Generation, G1 Concurrent GC, G1 Old Generation
Memory: 4096M
Cores: 32
Registry:
  debugger.valueTooltipAutoShowOnSelection=true
  documentation.show.toolbar=true
  ide.experimental.ui=true
  editor.minimap.enabled=true
  jvm.dfa.analysis.ui.security.analysis.window.was.shown=true
Non-Bundled Plugins:
  com.trianguloy.mavendependencycollapse (1.2.0)
  me.mbolotov.json.schema.generator (1.2)
  net.coderazzi.aws_codeartifact_maven (4.0.3)
  com.intellij.drools (243.21565.129)
  com.euphoricity.gitignore (0.3)
  J2EECfgFile (1.0)
  com.verilang (0.1.8)
  com.mirkoalicastro.mavenversionrefactor (1.0.5)
  com.intellij.ideolog (243.25659.54)
  com.ltp.swagger.generate (3.0)
  com.dguner.lombok-builder-helper (1.5.0)
  org.jetbrains.plugins.spotbugs (1.2.8)
  com.mengzz.FluentFormatter (1.5)
  com.hyphoon.IDEA-Swagger-Knife4j-Plugin (2024.3.3)
  com.intellij.guice (243.22562.13)
  Stapler plugin for IntelliJ IDEA (3.0.7)
  com.jetbrains.jax.ws (243.21565.129)
  net.ashald.envfile (3.4.2)
  com.redhat.devtools.intellij.telemetry (1.2.1.62)
  com.redhat.devtools.lsp4ij (0.11.0)
  dev.meanmail.plugin.nginx-intellij-plugin (2024.5.1)
  CMD Support (1.0.5)
  InnerBuilder (1.3.0)
  com.intellij.javaee.ejb (243.22562.13)
  kfang.agent.lombok-pql-plugins (1.2.2-SNAPSHOT)
  org.asciidoctor.intellij.asciidoc (0.43.6)
  com.intellij.nativeDebug (243.23654.117)
  com.redhat.devtools.intellij.quarkus (2.1.0)
  MavenRunHelper (4.29.0-IJ2022.2)
  com.intellij.aspectj (243.25659.39)
  io.conceptive.quarkus-intellij-plugin (1.3.3)
  com.felixzz.maven-dependency-properties-plugin (1.0.2)
  com.intellij.javaee.batch (243.21565.129)
  com.intellij.jvm.dfa.analysis (243.23654.117)
  com.intellij.gwt (243.23654.189)
  com.intellij.jsf (243.21565.129)
  com.codestream.jetbrains-codestream (15.21.0)
  org.sonarlint.idea (10.18.0.80657)
Kotlin: 243.25659.39-IJ

Creating an S3AsyncClient to access AWS S3 Bucket.

  S3AsyncClient s3AsyncClient = S3AsyncClient.crtBuilder()
                                               .credentialsProvider(DefaultCredentialsProvider.create())
                                               .region(Region.US_GOV_EAST_1)
                                               .targetThroughputInGbps(20.0)
                                               .minimumPartSizeInBytes(8 * MB)
                                               .build();

I get 2 SonarQube messages: java:S6241 (Region should be set explicitly when creating a new “AwsClient”) and java:S6242 (Credentials Provider should be set explicitly when creating a new “AwsClient”). My code has both of those parameters specified. Why am I getting these two messages.

Hi Thomas, I created the jira ticket SONARJAVA-5400 to fix the problem.
Thank you for your feedback.

Thank You!