예제 #1
0
        private static void AddLintable(ProjectItem projectItem, List <ProjectItem> projectItemList, IList <string> ignore)
        {
            var fileName = projectItem.Access().FileName;

            if (!projectItem.Is().Folder)
            {
                if (JSLint.CanLint(fileName) && !projectItem.Is().Ignored(ignore))
                {
                    projectItemList.Add(projectItem);
                }

                return;
            }

            foreach (ProjectItem subItem in projectItem.ProjectItems)
            {
                AddLintable(subItem, projectItemList, ignore);
            }
        }
        private static void AddLintable(ProjectItem projectItem, List<ProjectItem> projectItemList, IList<string> ignore)
        {
            var fileName = projectItem.Access().FileName;

            if (!projectItem.Is().Folder)
            {
                if (JSLint.CanLint(fileName) && !projectItem.Is().Ignored(ignore))
                {
                    projectItemList.Add(projectItem);
                }

                return;
            }

            foreach (ProjectItem subItem in projectItem.ProjectItems)
            {
                AddLintable(subItem, projectItemList, ignore);
            }
        }