{"id":19311114,"url":"https://github.com/boxuk/jslint-jenkins-plugin","last_synced_at":"2025-04-22T14:30:27.698Z","repository":{"id":3912767,"uuid":"5001763","full_name":"boxuk/jslint-jenkins-plugin","owner":"boxuk","description":"Runs JSLint on a project and outputs in the Checkstyle format.","archived":false,"fork":false,"pushed_at":"2023-12-16T19:36:19.000Z","size":250,"stargazers_count":13,"open_issues_count":6,"forks_count":16,"subscribers_count":9,"default_branch":"master","last_synced_at":"2025-04-02T00:35:15.903Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/boxuk.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-07-12T09:58:42.000Z","updated_at":"2023-09-30T07:18:48.000Z","dependencies_parsed_at":"2024-11-10T00:28:05.007Z","dependency_job_id":"0ef63a2c-19f4-4a65-bad7-bcadb56a7bb0","html_url":"https://github.com/boxuk/jslint-jenkins-plugin","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxuk%2Fjslint-jenkins-plugin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxuk%2Fjslint-jenkins-plugin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxuk%2Fjslint-jenkins-plugin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/boxuk%2Fjslint-jenkins-plugin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/boxuk","download_url":"https://codeload.github.com/boxuk/jslint-jenkins-plugin/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250258741,"owners_count":21400960,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T00:27:49.390Z","updated_at":"2025-04-22T14:30:27.381Z","avatar_url":"https://github.com/boxuk.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"JSLint for Jenkins\n==================\n\nA Jenkins plugin which bundles JSLint and Rhino and lints your code. [Official plugin page](https://wiki.jenkins-ci.org/display/JENKINS/JSLint+plugin).\n\nProvided by [Box UK](http://www.boxuk.com/) - see our [Labs Page](http://www.boxuk.com/labs/jslint-jenkins-plugin)\nfor more info on this plugin!\n\nFor more on why we believe in coding standards, see [Rhodri Pugh's post on coding standards](http://www.boxuk.com/blog/coding-standards)\n\nThe version of JSLint is modified to run in a \"pure Java\" version of Rhino, and to be less exacting than\nthe \"main\" version of JSLint, which can be found [here](https://github.com/douglascrockford/JSLint/). JSLint\nis the work of the wonderful [Douglas Crockford](http://www.crockford.com/). This plugin exposes no options\nfor JSLint, please feel free to fork the project and contribute!\n\nUsing this plugin\n-----------------\n\nInstall this plugin on your Jenkins (url will be something like http://{jenkins}/pluginManager/advanced) and\nrestart Jenkins.\n\nThere are no global configuration options for this plugin, it's all done per-job.\n\nThen, go to the Jenkins job you want to lint. All you need to do is click \"Add build step\" and select \"JSLint\". Then,\nset the files you want to include/exclude. These are standard Apache Ant filters and if you need help just click the\nquestion mark icon for some tips.\n\nThe next thing to set is the output file. This is in the checkstyle XML format so we recommend using it with the\n[Jenkins CheckStyle plugin](https://wiki.jenkins-ci.org/display/JENKINS/Checkstyle+Plugin). This will integrate\nthe JSLint output into your build output screen. Pretty handy!\n\nWe recommend clicking \"Advanced\" and setting the status thresholds to \"0\" so any jslint failure will fail the build.\n\nYou'll probably find that if you use library \"foo\" you get a lot of \"undefined foo\" errors at first. Just put a\nglobals statement at the top of your JavaScript file so jslint knows that \"foo\" is a global:\n\n    /*globals foo, bar*/\n    var baz = function() {\n        foo.doSomethingWith(bar);\n    };\n\nPlease note: you must NOT have a space between \"*\" and \"globals\", otherwise it won't work\n\nDeploying via Maven\n-------------------\n\nYou need permissions to do this. This serves as an aide memoire for the maintainer!\n\nFirst, commit everything that you've done. Then, let Maven manage it all.\n\n    mvn release:clean\n    mvn release:prepare\n    mvn release:perform\n    mvn deploy\n\nMake sure the Jenkins Github repo is up to date with the Box UK one.\n\n[Here are the instructions for Jenkins hosted plugins](https://wiki.jenkins-ci.org/display/JENKINS/Hosting+Plugins). Make sure you have set up ~/.m2/settings.xml with your credentials as per the instructions.\n\nThe package should show up in http://repo.jenkins-ci.org/releases/org/jenkins-ci/plugins/jslint/\n\nhttp://mirrors.karan.org/jenkins/updates/update-center.json Takes about 6 hours to update so check back there later!\n\n\n\nLicense\n-------\n\nMIT LICENSE\n\nCopyright (c) 2012 Box UK\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated\ndocumentation files (the \"Software\"), to deal in the Software without restriction, including without limitation\n the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software,\nand to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the\nSoftware.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE\nWARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR\nCOPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR\nOTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboxuk%2Fjslint-jenkins-plugin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fboxuk%2Fjslint-jenkins-plugin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fboxuk%2Fjslint-jenkins-plugin/lists"}