Right now you can run snaplint against your snapcraft project directory
and it will scan the
prime subdirectory for the following things:
- copyright (basically that you included
- developer cruft (things like header and object files or static libs
that might have made their way into your snap)
- libraries (examine the ELF files in your snap and look for libraries
which aren’t used)
The next things I’m planning on adding are:
- checking for copyright info from apps/parts themselves.
- checking for mixing of incompatible licenses
I would love to hear suggestions on further improvements.
You can find the source at https://github.com/ssweeny/snaplint
And, of course if you’re running Ubuntu 16.04 or later you can try it on your own machine with:
$ snap install snaplint
$ snaplint path/to/your/project