public static void Draw(MaintainerWindow parentWindow)
        {
            if (issues == null)
            {
                LoadLastIssues();
            }

            window = parentWindow;

            GUILayout.BeginHorizontal();
            DrawSettingsSection();
            DrawSearchSection();
            GUILayout.EndHorizontal();

            if (gotoIssue != null)
            {
                ShowIssue(gotoIssue);
                gotoIssue = null;
            }

            if (startSearch)
            {
                startSearch = false;
                window.RemoveNotification();
                IssuesFinder.StartSearch();
                window.Focus();
            }
        }
Exemple #2
0
    public static void BuildSource()
    {
        var    dic      = GetCommandArgs();
        string mode     = dic["mode"];
        string platform = dic["platform"];

        if (mode.ToLower() == "debug")
        {
            if (dic.ContainsKey("maintainer_filePath"))
            {
                var records = IssuesFinder.StartSearch(false);
                using (StreamWriter sr = File.CreateText(dic["maintainer_filePath"]))
                {
                    sr.Write(ReportsBuilder.GenerateReport(IssuesFinder.MODULE_NAME, records));
                }
            }
        }
        if (dic.ContainsKey("currentLevel") && !string.IsNullOrEmpty(dic["currentLevel"]))
        {
            QualitySettings.SetQualityLevel(System.Convert.ToInt32(dic["currentLevel"]));
        }
        lhFramework.Tools.Bundle.BundleBuildManager bundleManager = new lhFramework.Tools.Bundle.BundleBuildManager();
        bundleManager.buildTarget = System.Convert.ToInt32(platform);
        if (dic.ContainsKey("rootName"))
        {
            bundleManager.rootName = dic["rootName"];
        }
        bundleManager.Initialize();
        bundleManager.BuildPackage();
        bundleManager = null;
    }
Exemple #3
0
        protected override void ProcessUserActions()
        {
            if (!startSearch)
            {
                return;
            }

            startSearch = false;
            window.RemoveNotification();
            IssuesFinder.StartSearch(true);
            window.Focus();
        }
Exemple #4
0
        /// <inheritdoc />
        protected override bool OnStepStart()
        {
            var allIssues = IssuesFinder.StartSearch(false);

            Issues        = GetFilteredIssues(allIssues);
            IssuesPrinted = Issues.Select(x => x.ToString(true)).ToArray();

            if (SaveReport)
            {
                var report = ReportsBuilder.GenerateReport("Found Issues Report (executed through RockTomate)", Issues);
                File.WriteAllText(ReportFilePath, report);
            }

            if (PrintIssues)
            {
                Issues.ForEach(Debug.Log);
            }

            return(!FailOnIssues || Issues.Length <= 0);
        }
Exemple #5
0
 private static void FindAllIssues()
 {
     IssuesFinder.StartSearch(true);
 }
Exemple #6
0
 private void StartSearch()
 {
     window.RemoveNotification();
     IssuesFinder.StartSearch(true);
     window.Focus();
 }