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

  • Home
  • SEARCH
  • 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 6339543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T19:40:06+00:00 2026-05-24T19:40:06+00:00

The continuous integration software I am using runs JavaScript files through JSLint and complains

  • 0

The continuous integration software I am using runs JavaScript files through JSLint and complains if they fail (using default JSLint settings it appears).

I’ve always prepended a ; to the start of my jQuery plugins, so concatenating them doesn’t lead to something like this…

common.js

I don’t have access to this file, and can’t enforce a semi colon at the end.

var abc = function() {
    alert(arguments[0]);
}

plugin.js

This is my file that is concatenated with common.js. It is appended straight to the end of common.js.

(function($) {
    $.fn.somePlugin = function() {}
})(jQuery);

jsFiddle of the problem this can cause.

jsFiddle of the solution (leading semi-colon of my plugin).

However, JSLint complains with…

Error:

Problem at line 1 character 1: Unexpected space between
‘(begin)’ and ‘;’.

;(function($) {

Problem at line 1 character 1: Expected ‘;’ at column 5, not column 1.

;(function($) {

Problem at line 1 character 2: Missing space between ‘;’ and ‘(‘.

…

I tried using a bang operator (!) instead, and a few other alternatives, but JSLint still complained.

What can I do to get this safety net and pass JSLint?

  • 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-24T19:40:08+00:00Added an answer on May 24, 2026 at 7:40 pm

    Patch JSLint to not mind. Everyone will benefit.

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

Sidebar

Related Questions

Our continuous integration system currently runs a perl script to parse our sln/proj files
I'm using the Continuous Integration Software Hudson to build Maven 2 projects. The Hudson
I have decided to start using Team City as my continuous integration software and
Continuous Integration servers like Hudson are a pretty amazing addition to software development. I
Our Continuous Integration process appears to be executing programs that are in contention for
In using our TeamCity Continuous Integration server we have uncovered some issues that we
I know that using continuous integration improves the quality of my code base, and
We are using continuous integration as part of our build automation. For every check
I want to create a continuous build integration system for .NET using just Windows
Using cruisecontrol for continuous integration, I have some annoyances with Weblogic Ant tasks and

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.