示例#1
0
        public int SjekkAsciidocIncludes()
        {
            Log.doLog("Start SjekkAsciidocInclude()");

            int numProblems = 0;

            try
            {
                //int fileCount = 0;
                List <string> files = m_utils.getFilesRecursive(m_rootDir, "*.adoc");
                foreach (string file in files)
                {
                    AsciidocFile asciidocFile = new AsciidocFile(file);
                    numProblems += asciidocFile.CountIncludeIssues();
                }
            }


            catch (System.Exception e)
            {
                Log.doLog(e.Message);
                MessageBox.Show(e.Message);
            }

            return(numProblems);
        }
示例#2
0
        public int SjekkAsciidocLinks()
        {
            Log.doLog("Start SjekkAsciidocLinks()");

            int totalProblems = 0;

            try
            {
                List <string> files = m_utils.getFilesRecursive(m_rootDir, "*.adoc");

                foreach (string file in files)
                {
                    //Log.doLog("Checking file " + file);
                    Console.Write(".");

                    AsciidocFile asciidocFile = new AsciidocFile(file);
                    int          numProblems  = 0;
                    numProblems   += asciidocFile.CountLinkIssues();
                    totalProblems += numProblems;
                }
            }


            catch (System.Exception e)
            {
                Log.doLog(e.Message);
                MessageBox.Show(e.Message);
            }

            return(totalProblems);
        }