To help you getting started with Sonar, a list of sample projects is available on github that can be browsed or downloaded.
Various use cases are covered in those samples: