Example #1
0
        public void LoadDatabase(string path)
        {
            m_ProblemDescriptors = ProblemDescriptorHelper.LoadProblemDescriptors(path, "ApiDatabase");

            var assemblies = AppDomain.CurrentDomain.GetAssemblies();

            foreach (var assembly in assemblies)
            {
                var problemDescriptorTypes = GetAnalyzerTypes(assembly);

                foreach (var type in problemDescriptorTypes)
                {
                    AddAnalyzer(Activator.CreateInstance(type, this) as IInstructionAnalyzer);
                }
            }
        }
Example #2
0
        public void LoadDatabase(string path)
        {
            m_ProblemDescriptors = ProblemDescriptorHelper.LoadProblemDescriptors(path, "ApiDatabase");

            SetupPackageWhitelist(path);
        }
Example #3
0
 public void LoadDatabase(string path)
 {
     m_ProblemDescriptors = ProblemDescriptorHelper.LoadProblemDescriptors(path, "ProjectSettings");
 }