Пример #1
0
        void menuCommand_BeforeQueryStatus(object sender, System.EventArgs e)
        {
            OleMenuCommand menuCommand = sender as OleMenuCommand;

            files = ProjectHelpers.GetSelectedFilePaths()
                    .Where(f => !JavaScriptLintReporter.NotJsOrMinifiedOrDocumentOrNotExists(f)).ToList();

            menuCommand.Enabled = files.Count > 0;
        }
Пример #2
0
        private void RunJsHint()
        {
            LintReporter.Reset();            // TODO: Why?

            foreach (string file in files)
            {
                JavaScriptLintReporter runner = new JavaScriptLintReporter(new JsHintCompiler(), file);
                runner.RunLinterAsync().DoNotWait("linting " + file);
            }
        }
Пример #3
0
        private void RunJsHint()
        {
            LintReporter.Reset();            // TODO: Why?

            foreach (string file in files)
            {
                JavaScriptLintReporter runner = new JavaScriptLintReporter(new JsHintCompiler(), file);
                runner.RunLinterAsync().DoNotWait("linting " + file);
            }
        }