To help you get started with SonarQube, a list of sample projects is available on github that can be browsed or downloaded.

Various use cases are covered in those samples: