Kin icon indicating copy to clipboard operation
Kin copied to clipboard

Add static analysis features to Kin

Open Serchinastico opened this issue 8 years ago • 2 comments

There are a lot of problems in pbxproj files and most of them are always the same! We could handle the most common ones with Kin by using the parser ANTLR creates for us.

Some of the issues we could deal with are:

  • NULL references [Remove them]
  • Unknown UUIDs referenced from groups [Remove them]
  • UUIDs of files that don't appear in any group [Remove them]
  • Duplicated UUIDs [Ask the user which one should we pick or try merging them]

We can create separated issues in github when we start developing them.

Serchinastico avatar Feb 01 '17 12:02 Serchinastico

Just for the last point. Is this tool useful for picking different UUIDs when they are duplicated?

pedrovgs avatar Feb 01 '17 12:02 pedrovgs

After reading the documentation of mergepbx a couple times I think it's pretty much what we are looking for but I think we won't be able to use it, the project has a very basic grammar to describe pbxproj files (dictionaries and such) while Kin knows a lot more of the format (names of each field, order and so). We can take some ideas from it though so yeah, good catch!

Serchinastico avatar Feb 01 '17 12:02 Serchinastico