Skip to content
This repository has been archived by the owner on May 26, 2023. It is now read-only.

Best way to programmatically use wist #114

Closed
saintberry opened this issue Aug 1, 2018 · 1 comment
Closed

Best way to programmatically use wist #114

saintberry opened this issue Aug 1, 2018 · 1 comment

Comments

@saintberry
Copy link

Hey,

I'm looking for some guidance on the best way to programmatically use wist. I've got some gulp tasks setup for building and deploying. I'd like to have another task that's used to lint code before that happens.

I can use exec however that seems a little dirty when the code is all JavaScript. Any ideas or best practice?

Thanks!

@saintberry saintberry changed the title Best way to use programmatically use wist Best way to programmatically use wist Aug 1, 2018
@nishtahir
Copy link
Member

A good example for how to do this programmatically is Ukor. You want to gather a list of files and then call

cliEngine.executeOnFiles(files)

The CLI engine will then log all the problems that it finds.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants