Edmondo
Edmondo

Reputation: 20090

Finding magic strings in Intellij idea

I am trying to find all the strings value in my non test classes which are not assigned to final static constants.

Intellij Idea has a code inspection to find magic numbers: is it possible to run a similar search on strings ?

Upvotes: 0

Views: 943

Answers (1)

Bas Leijdekkers
Bas Leijdekkers

Reputation: 26577

The Hard coded strings inspection may be what you want. It reports String literals and can be configured to ignore literals assigned to constants.

Upvotes: 2

Related Questions