예제 #1
0
파일: JSLint.cs 프로젝트: jkorell/jslintnet
 /// <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);
     }
 }
예제 #2
0
 /// <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));
     }
 }
예제 #3
0
 /// <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);
     }
 }
예제 #4
0
 /// <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));
     }
 }