-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Enforce tslint in Travis CI? #456
Comments
@sectioneight I suppose we have I always forget the linting stuff as I'm relying on VS Code to do the Git thing so it looks perfect to me to make linting part of |
I think we should be enforcing TSLint. It's run as a part of Travis, but it looks like it's the entire build still succeeds despite the lint errors. |
Good to see that we have tslint enabled in Travis! You may also want to put a pre-commit for tslint like @sectioneight mentioned.
@sectioneight @johnfn @jpoon do you guys think it's necessary to put it the development style guide? Or maybe we can create a Wiki page for collabration. |
I've generally relied on running I've never played with precommit hooks. Will that script you pasted work cross-platforms (Win/OSX/Linux)? Update: came across this project which looks kinda neat: https://github.com/therealklanni/git-guppy |
I agree that Travis is sufficient. When I wrote this issue, I didn't realize there was a tslint VSCode plugin (which @rebornix's comment hinted me to). Given the current contribution guidelines (which tell you to run tslint, which is why I opened this issue originally), plus the Travis hooks, I think this is in a good place. That said, I am a big fan of pre-commit hooks, having gone so far as to develop a framework at a previous company (https://github.com/brigade/overcommit). |
@sectioneight you worked at brigade? Neat! I was an intern at Causes once upon a time... |
Ha, I actually worked at Causes before brigade (they transferred the repo).
|
I've noticed some lint violations have snuck in (see unrelated changes in #453).
I don't want to enforce my own beliefs on other projects, but in my experience if lint is "optional" most people are going to ignore it.
Is this intentionally left out of Travis? Is everyone expected to run
gulp tslint
as part of a pre-commit hook? Am I missing something obvious?The text was updated successfully, but these errors were encountered: