Finding Duplicates in properties files

  • SonarQube Version :
  • Find duplicate Key: Value across multiple properties files (*.properties) in a project.
  • Hi All, I am unsure if the above is possible in SonarQube. What I am trying to achieve here is if we have 2 files for instance and and both these files have the same key value within them Name: Maxwell. I need this to be reported post the scan. Can someone help me out with how do I achieve this?

Hey there.

SonarQube doesn’t analyze .properties files, so you probably won’t be able to accomplish this. It also sounds like a rule with a very narrow purpose – if you really think SonarQube should support this, I would recommend going into detail about the use-case (why is this useful for many projects? why is it a good practice?)