Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7527601
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T04:08:47+00:00 2026-05-30T04:08:47+00:00

I want to automatically run JSHINT on all my javascript files as part of

  • 0

I want to automatically run JSHINT on all my javascript files as part of our continuous integration environment (actually, probably as part of TFS Gated Checkin, but I’m not sure yet as it will depend on speed).

I tried using rhino-jshint like this:

java -jar js.jar jshint-rhino.js myFile.js

but how can I set the required JSHint options? I know I could list them in a comment at the top of myfile.js, but I’ve got lots of javascript files, and I don’t want the options duplicated in all my source files. (Or does JavaScript have an ‘include’ feature that I’m not aware of?)

I had hoped to pass an options.js file in as a parameter on the command line, and then keep options.js under version control. But I don’t think this is possible with jshint-rhino.js.

Additionally, we are using a Visual studio extension to ‘JSHint’ all JavaScript files as we save them. But this tool cannot be ran on the command-line. We want the best of both worlds – running JSHint inside Visual Studio and Automated for the CI build, and then without duplicating the options (and indeed keeping the options under version control).

So the question is, how do other people automate JSHint in their development process?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T04:08:48+00:00Added an answer on May 30, 2026 at 4:08 am

    Since you are essentially wanting to use a command-line activity inside of the TFS 2010 build process, then it is actually pretty simple. You’ll want to add an InvokeProcess workflow activity (see MSDN documentation) at the point you want to run the tool.

    There is actually a walkthrough available for how to do this with a different command-line utility but you’ll just replace it with your own. The workflow activity even allows you to specify a set of command-line parameters that you can pass in.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to automatically deploy a EAR file build in our continuous integration server
I have an access macro, that I want to run automatically from a batch
I want to write a script which cleans the 'run' dialogue automatically every log
I want to automatically commit the database when we copy files from one branch
I want to automatically add entries to python's sys.path variable when run by my
I want to have my app automatically run at start time in order to
I have a C# program that I want to run automatically every night without
I want to automatically add files to an Xcode project that is created from
I want to make a page of php that run automatically on decided time
I have a PowerShell script that is run automatically when our monitoring service detects

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.