Software Development and AI

Hey everyone!

Maybe you saw our April Fool’s Joke:

We can confirm that we are not launching SonarLint for AI Prompt Generation. But wasn’t it at least a little believable? :stuck_out_tongue: Kudos to @ganncamp and @arden.gonzales for coming up with something on short notice.

Of course, this idea got in our heads because everyone is talking about AI these days, with the emergence of tools like ChatGPT. Coding with AI can be scary good and… scary bad.

Firstly, we can see that AI can generate artifacts that may look legitimate at first glace, but turns out to be wrong under further investigation.

Secondly, the purpose of chatGPT (and perhaps other AI bots) is not to present accurate information, but rather what looks like accurate information.

What do you think about AI and its place in the software development world?

Has it already affected how you code, do research, or find support? Have you tried run some code you wrote through it and gotten some feedback?

2 Likes

I asked ChatGPT What are common mistakes when trying to import code coverage into SonarQube?… and maybe I should be updating my resume. :scream: (feel free to ask ChatGPT your code coverage questions instead of me)

Here are some common mistakes that can occur when trying to import code coverage into SonarQube:

  1. Not generating the code coverage report in the correct format: SonarQube supports various code coverage formats, such as JaCoCo, Cobertura, and Clover. Make sure that you generate the code coverage report in the correct format that SonarQube supports.
  2. Not configuring the correct path to the code coverage report: You need to specify the correct path to the code coverage report in your SonarQube project settings. If you specify the wrong path, SonarQube won’t be able to import the code coverage data.
  3. Not including the necessary plugins or dependencies: Depending on the code coverage format you’re using, you might need to include additional plugins or dependencies in your build process. Make sure you have all the necessary plugins and dependencies installed and configured correctly.
  4. Running the code coverage analysis on the wrong branch or build: It’s important to run the code coverage analysis on the correct branch or build of your code. If you run the analysis on the wrong branch or build, you won’t get accurate code coverage data.
  5. Not running the code coverage analysis before importing it into SonarQube: Make sure you run the code coverage analysis before importing it into SonarQube. If you try to import code coverage data without running the analysis first, SonarQube won’t have any data to import.
  6. Not ensuring that the code coverage report covers all the code being analyzed: It’s important to ensure that the code coverage report covers all the code being analyzed. If the report doesn’t cover all the code, you won’t get an accurate picture of the code coverage for your project.
  7. Not setting the correct threshold values: SonarQube allows you to set threshold values for code coverage. Make sure you set the correct threshold values that are appropriate for your project. If the threshold values are too low, you won’t get an accurate representation of the code coverage for your project.
1 Like