LSUnusedResources icon indicating copy to clipboard operation
LSUnusedResources copied to clipboard

False positives

Open lauracalinoiu opened this issue 8 years ago • 8 comments

I have false positives because of .realm files and because I have in my project a complex concatenating algorithm:

title_subtitle_category1

But I guess for that - no tool could do a great job.

Thank you,

lauracalinoiu avatar Jan 11 '17 08:01 lauracalinoiu

Could you show me some code? Thanks. In my test demo, check the Similar name:

image

image

The images in Similar folder will no show in unused results.

tinymind avatar Jan 12 '17 08:01 tinymind

I have eight images that have this format:

[prefix] _ "difficulty" _ [difficulty_level]

sample: "in_progress_difficulty_hard", "difficulty_easy" (so prefix="" for this one)

Another problem is that we use Realm for storing image names that we use.

Thank you very much for your time!

lauracalinoiu avatar Jan 13 '17 07:01 lauracalinoiu

Sorry, this tool has no ability to detect similar name with a complex rule. So far, I use a very simple rule to check similar name:

  1. prefix+suffix+number
  2. prefix+number+suffix
  3. number+prefix+suffix

You can see, it requires resource name contains a number, so that I could locate the diff part using regex.

tinymind avatar Jan 17 '17 07:01 tinymind

@tinymind, thanks for your time and great tool. It is really a nice tool.

lauracalinoiu avatar Jan 17 '17 07:01 lauracalinoiu

@wMellon @tinytoy

07825531844 avatar Apr 18 '21 22:04 07825531844

@07825531844

07825531844 avatar Apr 18 '21 22:04 07825531844

  • image

07825531844 avatar Apr 19 '21 00:04 07825531844

07825531844 avatar Apr 19 '21 00:04 07825531844