{"id":15978138,"url":"https://github.com/sonarsource/sonarjs","last_synced_at":"2026-03-17T20:03:06.733Z","repository":{"id":3294301,"uuid":"4335519","full_name":"SonarSource/SonarJS","owner":"SonarSource","description":"SonarSource Static Analyzer for JavaScript and TypeScript","archived":false,"fork":false,"pushed_at":"2026-03-12T01:00:14.000Z","size":64318,"stargazers_count":1204,"open_issues_count":22,"forks_count":192,"subscribers_count":54,"default_branch":"master","last_synced_at":"2026-03-12T01:31:15.552Z","etag":null,"topics":["code-quality","javascript","language-team","sonarcloud","sonarqube","static-analysis","static-analyzer","static-code-analysis","typescript"],"latest_commit_sha":null,"homepage":"https://community.sonarsource.com/","language":"TypeScript","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SonarSource.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":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":"NOTICE.txt","maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2012-05-15T12:35:38.000Z","updated_at":"2026-03-11T20:40:26.000Z","dependencies_parsed_at":"2023-09-28T17:13:01.876Z","dependency_job_id":"c8f7a1a4-c6f7-4852-a406-08b829754661","html_url":"https://github.com/SonarSource/SonarJS","commit_stats":{"total_commits":4484,"total_committers":92,"mean_commits":48.73913043478261,"dds":0.798171275646744,"last_synced_commit":"ac71cb1a9e18dd9f78dc4c60ddb9f86eb4cdb6f1"},"previous_names":["sonarcommunity/sonar-javascript","sonarsource/sonar-javascript"],"tags_count":174,"template":false,"template_full_name":null,"purl":"pkg:github/SonarSource/SonarJS","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SonarSource%2FSonarJS","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SonarSource%2FSonarJS/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SonarSource%2FSonarJS/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SonarSource%2FSonarJS/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SonarSource","download_url":"https://codeload.github.com/SonarSource/SonarJS/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SonarSource%2FSonarJS/sbom","scorecard":{"id":132258,"data":{"date":"2025-08-11","repo":{"name":"github.com/SonarSource/SonarJS","commit":"89e6f85758a7a9c0a2719cc0108481113414d907"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":5.9,"checks":[{"name":"Code-Review","score":10,"reason":"all changesets reviewed","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Maintained","score":10,"reason":"30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"License","score":9,"reason":"license file detected","details":["Info: project has a license file: LICENSE.txt:0","Warn: project license file does not contain an FSF or OSI license."],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'pull-requests' permission set to 'read': .github/workflows/PullRequestClosed.yml:13","Info: jobLevel 'pull-requests' permission set to 'read': .github/workflows/SubmitReview.yml:13","Info: jobLevel 'contents' permission set to 'read': .github/workflows/releasability.yml:13","Warn: jobLevel 'statuses' permission set to 'write': .github/workflows/releasability.yml:12","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/release.yml:14","Warn: jobLevel 'contents' permission set to 'write': .github/workflows/typedoc.yml:13","Warn: no topLevel permission defined: .github/workflows/PullRequestClosed.yml:1","Warn: no topLevel permission defined: .github/workflows/PullRequestCreated.yml:1","Warn: no topLevel permission defined: .github/workflows/RequestReview.yml:1","Warn: no topLevel permission defined: .github/workflows/SubmitReview.yml:1","Warn: no topLevel permission defined: .github/workflows/dogfood.yml:1","Warn: no topLevel permission defined: .github/workflows/releasability.yml:1","Warn: no topLevel permission defined: .github/workflows/release.yml:1","Warn: no topLevel permission defined: .github/workflows/release_eslint_plugin.yml:1","Warn: topLevel 'contents' permission set to 'write': .github/workflows/typedoc.yml:7"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Branch-Protection","score":5,"reason":"branch protection is not maximal on development and all release branches","details":["Info: 'allow deletion' disabled on branch 'master'","Info: 'force pushes' disabled on branch 'master'","Warn: 'branch protection settings apply to administrators' is disabled on branch 'master'","Warn: 'stale review dismissal' is disabled on branch 'master'","Warn: required approving review count is 1 on branch 'master'","Warn: codeowners review is not required on branch 'master'","Warn: 'last push approval' is disabled on branch 'master'","Info: status check found to merge onto on branch 'master'","Info: PRs are required in order to make changes on branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":-1,"reason":"internal error: internal error: Client.Checks.ListCheckRunsForRef: error during graphqlHandler.setupCheckRuns: Something went wrong while executing your query on 2025-08-12T14:06:28Z. Please include `889C:A8052:59CFDB:11D0841:689B4A63` when reporting this issue.","details":null,"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":1,"reason":"dependency not pinned by hash detected -- score normalized to 1","details":["Warn: third-party GitHubAction not pinned by hash: .github/workflows/PullRequestClosed.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/SonarSource/SonarJS/PullRequestClosed.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/PullRequestClosed.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/SonarSource/SonarJS/PullRequestClosed.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/PullRequestCreated.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/SonarSource/SonarJS/PullRequestCreated.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/PullRequestCreated.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/SonarSource/SonarJS/PullRequestCreated.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/RequestReview.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/SonarSource/SonarJS/RequestReview.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/RequestReview.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/SonarSource/SonarJS/RequestReview.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/SubmitReview.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/SonarSource/SonarJS/SubmitReview.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/SubmitReview.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/SonarSource/SonarJS/SubmitReview.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/dogfood.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/SonarSource/SonarJS/dogfood.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/dogfood.yml:26: update your workflow using https://app.stepsecurity.io/secureworkflow/SonarSource/SonarJS/dogfood.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/releasability.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/SonarSource/SonarJS/releasability.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/SonarSource/SonarJS/release.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release_eslint_plugin.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/SonarSource/SonarJS/release_eslint_plugin.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release_eslint_plugin.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/SonarSource/SonarJS/release_eslint_plugin.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release_eslint_plugin.yml:37: update your workflow using https://app.stepsecurity.io/secureworkflow/SonarSource/SonarJS/release_eslint_plugin.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/typedoc.yml:19: update your workflow using https://app.stepsecurity.io/secureworkflow/SonarSource/SonarJS/typedoc.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/typedoc.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/SonarSource/SonarJS/typedoc.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/typedoc.yml:33: update your workflow using https://app.stepsecurity.io/secureworkflow/SonarSource/SonarJS/typedoc.yml/master?enable=pin","Warn: containerImage not pinned by hash: .cirrus/alpine.Dockerfile:2","Warn: containerImage not pinned by hash: .cirrus/alpine.Dockerfile:4: pin your Docker image by updating eclipse-temurin:17-alpine to eclipse-temurin:17-alpine@sha256:c0dfec8fb4aec4adad2d00d267c5cb5348465d77f087e455d2905fb180ce27d2","Warn: containerImage not pinned by hash: .cirrus/nodejs.Dockerfile:2","Info:   0 out of   3 GitHub-owned GitHubAction dependencies pinned","Info:   1 out of  16 third-party GitHubAction dependencies pinned","Info:   0 out of   3 containerImage dependencies pinned","Info:   1 out of   1 npmCommand dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":0,"reason":"11 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: GHSA-2pr6-76vf-7546","Warn: Project is vulnerable to: GHSA-8j8c-7jfh-h6hx","Warn: Project is vulnerable to: GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: GHSA-xffm-g5w8-qvg7","Warn: Project is vulnerable to: GHSA-52f5-9888-hmc6"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-16T05:28:36.678Z","repository_id":3294301,"created_at":"2025-08-16T05:28:36.678Z","updated_at":"2025-08-16T05:28:36.678Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30630031,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-17T17:32:55.572Z","status":"ssl_error","status_checked_at":"2026-03-17T17:32:38.732Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["code-quality","javascript","language-team","sonarcloud","sonarqube","static-analysis","static-analyzer","static-code-analysis","typescript"],"created_at":"2024-10-07T23:06:01.660Z","updated_at":"2026-03-17T20:03:06.714Z","avatar_url":"https://github.com/SonarSource.png","language":"TypeScript","readme":"[![Quality Gate](https://next.sonarqube.com/sonarqube/api/project_badges/measure?project=org.sonarsource.javascript%3Ajavascript\u0026metric=alert_status)](https://next.sonarqube.com/sonarqube/dashboard?id=org.sonarsource.javascript%3Ajavascript) [![Coverage](https://next.sonarqube.com/sonarqube/api/project_badges/measure?project=org.sonarsource.javascript%3Ajavascript\u0026metric=coverage)](https://next.sonarqube.com/sonarqube/component_measures/domain/Coverage?id=org.sonarsource.javascript%3Ajavascript)\n\nThis SonarSource project is a [static code analyzer](https://en.wikipedia.org/wiki/Static_program_analysis) for the JavaScript, TypeScript, and CSS languages to produce [Clean code](https://www.sonarsource.com/solutions/clean-code/).\n\n:arrow_right: [Have some feedback?](#support)\n\nThis repository now hosts [eslint-plugin-sonarjs](./packages/jsts/src/rules/README.md), our plugin for ESLint.\n\n# Features\n\n- Advanced rules based on pattern matching and control flow analysis\n- [407 JS rules](https://rules.sonarsource.com/javascript) and [413 TS rules](https://rules.sonarsource.com/typescript)\n- [26 CSS rules](https://rules.sonarsource.com/css)\n- Compatible with ECMAScript 2015-2020\n- React JSX, Flow, Vue, and AWS lambda functions support for JavaScript and TypeScript\n- CSS, SCSS, SASS, Less, also 'style' inside HTML and VueJS files\n- Metrics (complexity, number of lines, etc.)\n- Import of test coverage reports\n- Import of ESLint, TSLint, and Stylelint issues\n\n# Documentation\n\nYou can find [documentation here](https://docs.sonarqube.org/latest/analysis/languages/javascript/)\n\n# \u003ca name=\"support\"\u003e\u003c/a\u003eQuestions or feedback?\n\n### SonarSource Community Forum\n\nIf you want to report a bug, request a feature, or provide other kind of feedback, please use [SonarQube Community Forum](https://community.sonarsource.com/). Please do not forget to specify the details of your request, code reproducer, and versions of projects you use.\n\n# Contributing\n\n## Prerequisites\n\nTo work on this project, it is required to have the following tools installed:\n\n- [JDK 17](https://docs.aws.amazon.com/corretto/latest/corretto-17-ug/what-is-corretto-17.html)\n- [Node.js](https://nodejs.org/en) \u003e= 22\n- [npm](https://www.npmjs.com/) \u003e= 8\n- [Maven](https://maven.apache.org/) \u003e= 3.8\n\n## How-to\n\n### Build the project\n\nThe project can be built into the SonarJS Plugin by installing Node.js dependencies, and executing the usual Maven `install` command.\n\n```shell\nnpm install\nmvn clean install\n```\n\n### Request a new feature\n\nTo request a new feature, create a new thread in [SonarSource Community Forum](https://community.sonarsource.com/). Even if you plan to implement it yourself and submit it back to the community, please create a thread to be sure that we can follow up on it.\n\n### Create a Pull Request\n\nTo submit a contribution, create a pull request for this repository. Please make sure that you follow our [code style](https://github.com/SonarSource/sonar-developer-toolset) and that all [tests](/docs/DEV.md#testing) are passing.\n\n## Work with us\n\nWould you like to work on this project full-time? We are hiring! Check out https://www.sonarsource.com/hiring\n\n## License\n\nCopyright 2011-2024 SonarSource.\n\nSonarQube analyzers released after November 29, 2024, including patch fixes for prior versions, are published under the [Sonar Source-Available License Version 1 (SSALv1)](LICENSE.txt).\n\nSee individual files for details that specify the license applicable to each file. Files subject to the SSALv1 will be noted in their headers.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonarsource%2Fsonarjs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsonarsource%2Fsonarjs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsonarsource%2Fsonarjs/lists"}