Can i create a tool check unused messages in messages.properties?

If it possible, give me the keywords to implement.
I use java for code.
Thanks you!

Hello @tungpt118,

Welcome to SonarSource community.
I think that the first step here is that you carefully read the FAQ - SonarSource Community.
Your post is not sufficient for us to be able to help you.

Olivier

1 Like

Is there an API that allows me to access the properties file, such as the API trees that support method and class access.

Hello @tungpt118,
I am still not convinced that you read the FAQ. Please provide a more elaborated description of your request. No one will respond if you post only one liners…

Sorry for my descriptive ability because my english is not good. I want to check a key in the messages.properties file is unused, to do that I need to scan all java in project files, but I see the JavaFileScannerContext interface only supports me to scan one file, can i scan all files?