A Roslyn analyzer that verifies if Sitecore ID's and paths are valid in serialized Unicorn data (the Rainbow format)
Installation prerequisites - Tested with Visual Studio 2015 using C# 6 - Ensure that the Unicorn .yml files are part of the project where you want the validation to work (more info about this below)
Include .yml files in your project Roslyn can only access files that are included in the project. They don't have to be visible, though and you can use wildards. So it's really not that big of a deal.
However, try to limit the amount of files that are included, as it may make things very slow if your project needs to load thousands of files. It would be good practice anyway to limit the files to those that are needed by your project; in line with Helix principles.
Steps to include files: - Unload the project in Visual Studio - Edit the project file - Add the following lines somewhere in the project node and change the path