/// <summary> /// Validates the specified source using JSLint with the provided options and global variables. /// </summary> /// <param name="source">The source.</param> /// <param name="options">The options.</param> /// <param name="globalVariables">The global variables.</param> /// <returns> /// A <see cref="IJSLintData" /> containing any validation errors. /// </returns> public static IJSLintData Lint(string source, JSLintOptions options, IList<string> globalVariables) { using (var context = new JSLintContext()) { return context.Lint(source, options, globalVariables); } }
/// <summary> /// Validates the specified source using JSLint with the provided options. /// </summary> /// <param name="source">The source.</param> /// <param name="options">The options.</param> /// <returns> /// A <see cref="IJSLintData" /> containing any validation errors. /// </returns> public static IJSLintData Lint(string source, JSLintOptions options) { using (var context = new JSLintContext()) { return(context.Lint(source, options)); } }
/// <summary> /// Validates the specified source using JSLint with the provided options. /// </summary> /// <param name="source">The source.</param> /// <param name="options">The options.</param> /// <returns> /// A <see cref="IJSLintData" /> containing any validation errors. /// </returns> public static IJSLintData Lint(string source, JSLintOptions options) { using (var context = new JSLintContext()) { return context.Lint(source, options); } }
/// <summary> /// Validates the specified source using JSLint with the provided options and global variables. /// </summary> /// <param name="source">The source.</param> /// <param name="options">The options.</param> /// <param name="globalVariables">The global variables.</param> /// <returns> /// A <see cref="IJSLintData" /> containing any validation errors. /// </returns> public static IJSLintData Lint(string source, JSLintOptions options, IList <string> globalVariables) { using (var context = new JSLintContext()) { return(context.Lint(source, options, globalVariables)); } }