{"id":18809304,"url":"https://github.com/stupidcodefactory/jshint_ruby","last_synced_at":"2026-01-10T05:30:13.415Z","repository":{"id":13371368,"uuid":"16059115","full_name":"StupidCodeFactory/jshint_ruby","owner":"StupidCodeFactory","description":"API to lint your javascript source code from ruby with jshint","archived":false,"fork":false,"pushed_at":"2014-01-20T04:04:35.000Z","size":348,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-04-21T02:10:41.171Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/StupidCodeFactory.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-20T02:26:38.000Z","updated_at":"2014-02-07T12:19:06.000Z","dependencies_parsed_at":"2022-09-15T19:31:12.372Z","dependency_job_id":null,"html_url":"https://github.com/StupidCodeFactory/jshint_ruby","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StupidCodeFactory%2Fjshint_ruby","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StupidCodeFactory%2Fjshint_ruby/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StupidCodeFactory%2Fjshint_ruby/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StupidCodeFactory%2Fjshint_ruby/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StupidCodeFactory","download_url":"https://codeload.github.com/StupidCodeFactory/jshint_ruby/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239743336,"owners_count":19689484,"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-07T23:15:55.917Z","updated_at":"2026-01-10T05:30:13.361Z","avatar_url":"https://github.com/StupidCodeFactory.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Gem Version](https://badge.fury.io/rb/jshint_ruby.png)](http://badge.fury.io/rb/jshint_ruby)\n[![Build Status](https://travis-ci.org/StupidCodeFactory/jshint_ruby.png?branch=master)](https://travis-ci.org/StupidCodeFactory/jshint_ruby)\n[![Code Climate](https://codeclimate.com/repos/52dc98ba695680512c0037c6/badges/f8edcfbcaa41396e2b11/gpa.png)](https://codeclimate.com/repos/52dc98ba695680512c0037c6/feed)\n[![Dependency Status](https://gemnasium.com/StupidCodeFactory/jshint_ruby.png)](https://gemnasium.com/StupidCodeFactory/jshint_ruby)\n[![Coverage Status](https://coveralls.io/repos/StupidCodeFactory/jshint_ruby/badge.png)](https://coveralls.io/r/StupidCodeFactory/jshint_ruby)\n# JshintRuby\n\nAPI to lint your javascript source code from ruby.\n* It ships with a copy of JSHint\n* It uses [ExecJS](https://github.com/sstephenson/execjs) under the hood and is heavily inspired on [execjs](linthttps://github.com/mintdigital/execjslint)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'jshint_ruby'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install jshint_ruby\n\n## Usage\n\n```ruby\n        source = File.open('spec/fixtures/source_with_errors.js')\n        result = JshintRuby.run(source) # =\u003e \u003cJshintRuby::Result:0x007f88f9084cb8 @valid=false, @errors=[{\"id\"=\u003e\"(error)\", \"raw\"=\u003e\"Use '{a}' to compare with '{b}'.\", \"code\"=\u003e\"W041\", \"evidence\"=\u003e\"if (true == 1)\", \"line\"=\u003e3, \"character\"=\u003e10, \"scope\"=\u003e\"(main)\", \"a\"=\u003e\"===\", \"b\"=\u003e\"true\", \"reason\"=\u003e\"Use '===' to compare with 'true'.\"}]\u003e\n        result.valid?                   # false\n        result.errors                   # [{\"id\"=\u003e\"(error)\", \"raw\"=\u003e\"Use '{a}' to compare with '{b}'.\", \"code\"=\u003e\"W041\", \"evidence\"=\u003e\"if (true == 1)\", \"line\"=\u003e3, \"character\"=\u003e10, \"scope\"=\u003e\"(main)\", \"a\"=\u003e\"===\", \"b\"=\u003e\"true\", \"reason\"=\u003e\"Use '===' to compare with 'true'.\"}]\n```\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Add some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstupidcodefactory%2Fjshint_ruby","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstupidcodefactory%2Fjshint_ruby","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstupidcodefactory%2Fjshint_ruby/lists"}