コード例 #1
0
ファイル: Program.cs プロジェクト: ericlemes/vcsparser
        private static int RunDailyCodeChurn(DailyCodeChurnCommandLineArgs a)
        {
            var fileSystem          = new FileSystem();
            var jsonParser          = new JsonListParser <DailyCodeChurn>(new FileStreamFactory());
            var logger              = new ConsoleLoggerWithTimestamp();
            var exclusionsProcessor = new ExclusionsProcessor(a.Exclusions);
            var inclusionsProcessor = new InclusionsProcessor(a.Inclusions);
            var jsonExporter        = new JsonExporter(new FileStreamFactory());

            var processor = new DailyCodeChurnProcessor(fileSystem, jsonParser, logger, exclusionsProcessor, inclusionsProcessor, jsonExporter);

            processor.Process(a);

            return(0);
        }
コード例 #2
0
 public GivenAnInclusionsProcessor()
 {
     this.processor = new InclusionsProcessor("**/*.cpp,**/*.c,**/*.h,**/*.hpp");
 }