Example #1
0
        public IEnumerable <Solution> GetAllDesign(string folder)
        {
            var files = Directory.GetFiles(folder)
                        .Select(x => x.Replace('\\', '/'))
                        .Where(x => !IgnoredContainedPath.Any(c => x.Contains($"/{c}/")) && Path.GetExtension(x) == ".sln");

            return(files.Select(x => new Solution(x)).ToList());
        }
Example #2
0
        public IEnumerable <Loc> GetAllLinesOfCode(string folder)
        {
            var files = Directory.GetFiles(folder)
                        .Select(x => x.Replace('\\', '/'))
                        .Where(x => !IgnoredContainedPath.Any(c => x.Contains($"/{c}/")));

            return(files.Select(x => GetLinesOfCode(x)).Where(x => x != null).ToList());
        }