In Eclipse, MultipleStringLiterals is useful check but it is hard to conform its rules, and we keep it as INFO this allows developer to decide and helps to notice literals duplication. One problem is that violation is raised on first occurrence in code and developer miss it if he put in code second appearance(few screens below first occurrence) .
Solution: make an option in check configuration to fire violation on each appearance of duplicate.
Default value is to work as it is now - only first literal is marked as violation.
Log in to post a comment.