internal static FiFiResult Run(
            TargetConfig config,
            FileSources sources)
        {
            var items = new List <FiFiFileResult>();

            var fixers = GetFixers(config);

            foreach (var file in sources.All())
            {
                if (Not.Processable(file, out Exception ex))
                {
                    continue;
                }

                foreach (var fixer in fixers)
                {
                    fixer.Fix(file);
                }
                items.Add(new FiFiFileResult(file, Info(fixers)));
            }
            return(Results(items));
        }
Beispiel #2
0
 public FiFiRunner ForFiles(FileSources fileSources)
 {
     this.files = fileSources;
     return(this);
 }
Beispiel #3
0
 private FiFiRunner()
 {
     config = new TargetConfig();
     files  = FileSources.New();
 }