Skip to content
This repository has been archived by the owner. It is now read-only.

HippoValidator/JsHintValidator

master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

JsHintValidator

Executes JSHint from .NET.

How to use it? Best illustrated through a test:

[Test]
public void CanValidateValidScript()
{
    // Arrange
    var script = "var answer = 42;";
    var validator = new JsHintValidator();

    // Act
    var result = validator.Validate(script, new Options());

    // Assert
    Assert.That(result.Errors.Count, Is.EqualTo(0));
}

About

Executes JSHint from .NET.

Resources

License

Stars

Watchers

Forks