{"id":22062462,"url":"https://github.com/xucongli1989/x-code-inspect","last_synced_at":"2026-02-28T23:31:57.351Z","repository":{"id":57400687,"uuid":"310315934","full_name":"xucongli1989/x-code-inspect","owner":"xucongli1989","description":"This is a package for checking JavaScript projects. You only need to install this package to use detection tools such as ESLint. Most importantly, you don't need to do extra ESLint configuration, just use the built-in default configuration.","archived":false,"fork":false,"pushed_at":"2025-12-23T01:45:02.000Z","size":37574,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-24T15:36:48.976Z","etag":null,"topics":["checker","code","eslint","format","inspect","javascript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xucongli1989.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2020-11-05T13:59:15.000Z","updated_at":"2025-12-23T01:45:02.000Z","dependencies_parsed_at":"2024-08-29T03:26:22.568Z","dependency_job_id":"3e6dd3fc-47e2-4c48-8539-55edd54f5d72","html_url":"https://github.com/xucongli1989/x-code-inspect","commit_stats":{"total_commits":127,"total_committers":3,"mean_commits":"42.333333333333336","dds":0.03937007874015752,"last_synced_commit":"8f5263ff3624f025d9bfd08350e2ca8f9fbb9430"},"previous_names":[],"tags_count":72,"template":false,"template_full_name":null,"purl":"pkg:github/xucongli1989/x-code-inspect","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xucongli1989%2Fx-code-inspect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xucongli1989%2Fx-code-inspect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xucongli1989%2Fx-code-inspect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xucongli1989%2Fx-code-inspect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xucongli1989","download_url":"https://codeload.github.com/xucongli1989/x-code-inspect/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xucongli1989%2Fx-code-inspect/sbom","scorecard":{"id":1240706,"data":{"date":"2025-12-15","repo":{"name":"github.com/xucongli1989/x-code-inspect","commit":"288706315e91fc239023ab465e4a3892a064bf5c"},"scorecard":{"version":"v5.4.1-0.20251211185148-6c8b5dbbedcf","commit":"6c8b5dbbedcf26e5511695b853fecfe7cbf2235d"},"score":2.5,"checks":[{"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/6c8b5dbbedcf26e5511695b853fecfe7cbf2235d/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 0/30 approved changesets -- score normalized to 0","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/6c8b5dbbedcf26e5511695b853fecfe7cbf2235d/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/6c8b5dbbedcf26e5511695b853fecfe7cbf2235d/docs/checks.md#maintained"}},{"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/6c8b5dbbedcf26e5511695b853fecfe7cbf2235d/docs/checks.md#binary-artifacts"}},{"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/6c8b5dbbedcf26e5511695b853fecfe7cbf2235d/docs/checks.md#packaging"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/6c8b5dbbedcf26e5511695b853fecfe7cbf2235d/docs/checks.md#sast"}},{"name":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Warn: no topLevel permission defined: .github/workflows/main.yml:1","Info: no jobLevel write permissions found"],"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/6c8b5dbbedcf26e5511695b853fecfe7cbf2235d/docs/checks.md#token-permissions"}},{"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/6c8b5dbbedcf26e5511695b853fecfe7cbf2235d/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/xucongli1989/x-code-inspect/main.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/main.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/xucongli1989/x-code-inspect/main.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/main.yml:27: update your workflow using https://app.stepsecurity.io/secureworkflow/xucongli1989/x-code-inspect/main.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/main.yml:27","Info:   0 out of   2 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   1 third-party GitHubAction dependencies pinned","Info:   0 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/6c8b5dbbedcf26e5511695b853fecfe7cbf2235d/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/6c8b5dbbedcf26e5511695b853fecfe7cbf2235d/docs/checks.md#security-policy"}},{"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/6c8b5dbbedcf26e5511695b853fecfe7cbf2235d/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: GNU General Public License v3.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/6c8b5dbbedcf26e5511695b853fecfe7cbf2235d/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/6c8b5dbbedcf26e5511695b853fecfe7cbf2235d/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for 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/6c8b5dbbedcf26e5511695b853fecfe7cbf2235d/docs/checks.md#branch-protection"}},{"name":"Vulnerabilities","score":0,"reason":"55 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: https://osv.dev/GHSA-968p-4wvh-cqc8","Warn: Project is vulnerable to: https://osv.dev/GHSA-67hx-6x53-jw92","Warn: Project is vulnerable to: https://osv.dev/GHSA-93q8-gq69-wqmw","Warn: Project is vulnerable to: https://osv.dev/GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: https://osv.dev/GHSA-grv7-fg5c-xmjg","Warn: Project is vulnerable to: https://osv.dev/GHSA-x9w5-v3q2-3rhw","Warn: Project is vulnerable to: https://osv.dev/GHSA-w8qv-6jwh-64r5","Warn: Project is vulnerable to: https://osv.dev/GHSA-cpq7-6gpm-g9rc","Warn: Project is vulnerable to: https://osv.dev/GHSA-3xgq-45jj-v275","Warn: Project is vulnerable to: https://osv.dev/GHSA-gxpj-cx7g-858c","Warn: Project is vulnerable to: https://osv.dev/GHSA-w573-4hg7-7wgq","Warn: Project is vulnerable to: https://osv.dev/GHSA-434g-2637-qmqr","Warn: Project is vulnerable to: https://osv.dev/GHSA-49q7-c7j4-3p7m","Warn: Project is vulnerable to: https://osv.dev/GHSA-977x-g7h5-7qgw","Warn: Project is vulnerable to: https://osv.dev/GHSA-f7q4-pwc6-w24p","Warn: Project is vulnerable to: https://osv.dev/GHSA-fc9h-whq2-v747","Warn: Project is vulnerable to: https://osv.dev/GHSA-r9p9-mrjm-926w","Warn: Project is vulnerable to: https://osv.dev/GHSA-vjh7-7g9h-fjfh","Warn: Project is vulnerable to: https://osv.dev/GHSA-fjxv-7rqg-78g4","Warn: Project is vulnerable to: https://osv.dev/GHSA-ww39-953v-wcq6","Warn: Project is vulnerable to: https://osv.dev/GHSA-pfrx-2q88-qq97","Warn: Project is vulnerable to: https://osv.dev/GHSA-765h-qjxv-5f44","Warn: Project is vulnerable to: https://osv.dev/GHSA-f2jv-r9rf-7988","Warn: Project is vulnerable to: https://osv.dev/GHSA-43f8-2h32-f4cj","Warn: Project is vulnerable to: https://osv.dev/GHSA-pfq8-rq6v-vf5m","Warn: Project is vulnerable to: https://osv.dev/GHSA-rc47-6667-2j5j","Warn: Project is vulnerable to: https://osv.dev/GHSA-qqgx-2p2h-9c37","Warn: Project is vulnerable to: https://osv.dev/GHSA-mh29-5h37-fv8m","Warn: Project is vulnerable to: https://osv.dev/GHSA-9c47-m6qq-7p4h","Warn: Project is vulnerable to: https://osv.dev/GHSA-3rfm-jhwj-7488","Warn: Project is vulnerable to: https://osv.dev/GHSA-76p3-8jx3-jpfq","Warn: Project is vulnerable to: https://osv.dev/GHSA-hhq3-ff78-jv3g","Warn: Project is vulnerable to: https://osv.dev/GHSA-29mw-wpgm-hmr9","Warn: Project is vulnerable to: https://osv.dev/GHSA-35jh-r3h4-6jhm","Warn: Project is vulnerable to: https://osv.dev/GHSA-7wpw-2hjm-89gp","Warn: Project is vulnerable to: https://osv.dev/GHSA-952p-6rrq-rcjv","Warn: Project is vulnerable to: https://osv.dev/GHSA-f8q6-p94x-37v3","Warn: Project is vulnerable to: https://osv.dev/GHSA-xvch-5gv4-984h","Warn: Project is vulnerable to: https://osv.dev/GHSA-px4h-xg32-q955","Warn: Project is vulnerable to: https://osv.dev/GHSA-rp65-9cf3-cjxr","Warn: Project is vulnerable to: https://osv.dev/GHSA-hj48-42vr-x3v9","Warn: Project is vulnerable to: https://osv.dev/GHSA-h7cp-r72f-jxh6","Warn: Project is vulnerable to: https://osv.dev/GHSA-v62p-rq8g-8h59","Warn: Project is vulnerable to: https://osv.dev/GHSA-hrpp-h998-j3pp","Warn: Project is vulnerable to: https://osv.dev/GHSA-c2qf-rxjj-qqgw","Warn: Project is vulnerable to: https://osv.dev/GHSA-95m3-7q98-8xr5","Warn: Project is vulnerable to: https://osv.dev/GHSA-4rq4-32rv-6wp6","Warn: Project is vulnerable to: https://osv.dev/GHSA-64g7-mvw6-v9qj","Warn: Project is vulnerable to: https://osv.dev/GHSA-vx3p-948g-6vhq","Warn: Project is vulnerable to: https://osv.dev/GHSA-4wf5-vphf-c2xc","Warn: Project is vulnerable to: https://osv.dev/GHSA-52f5-9888-hmc6","Warn: Project is vulnerable to: https://osv.dev/GHSA-7p7h-4mm5-852v","Warn: Project is vulnerable to: https://osv.dev/GHSA-38fc-wpqx-33j7","Warn: Project is vulnerable to: https://osv.dev/GHSA-j8xg-fqg3-53r7","Warn: Project is vulnerable to: https://osv.dev/GHSA-c4w7-xm78-47vh"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/6c8b5dbbedcf26e5511695b853fecfe7cbf2235d/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-12-24T15:51:14.051Z","repository_id":57400687,"created_at":"2025-12-24T15:51:14.052Z","updated_at":"2025-12-24T15:51:14.052Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29954966,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-28T22:53:01.873Z","status":"ssl_error","status_checked_at":"2026-02-28T22:52:50.699Z","response_time":90,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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":["checker","code","eslint","format","inspect","javascript"],"created_at":"2024-11-30T18:20:10.725Z","updated_at":"2026-02-28T23:31:57.185Z","avatar_url":"https://github.com/xucongli1989.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Introduction\n\nThis is a package for checking JavaScript projects. You only need to install this package to use detection tools such as ESLint. Most importantly, you don't need to do extra ESLint configuration, just use the built-in default configuration.\n\n# Why use it\n\n-   You don't set up common code checking tools for every project\n-   Keep project style the same\n\n# Check Range\n\n-   Only check `./src` and `./*.{js,ts,mjs,cjs}`\n\n# Usage\n\n-   Open your project.\n\n-   Remove the configuration files about `ESLint` and `Prettier` from project, because you no longer need them and this tool will creates them automatically.\n\n-   `npm i --save-dev --save-exact x-code-inspect@latest`\n\n-   And copy these dependencies to `devDependencies`\n\n    ```javascript\n        \"@typescript-eslint/eslint-plugin\": \"4.8.2\",\n        \"@typescript-eslint/parser\": \"4.8.2\",\n        \"babel-eslint\": \"10.1.0\",\n        \"eslint\": \"7.14.0\",\n        \"eslint-config-airbnb\": \"18.2.1\",\n        \"eslint-config-airbnb-typescript\": \"12.0.0\",\n        \"eslint-plugin-import\": \"2.22.1\",\n        \"eslint-plugin-jsx-a11y\": \"6.4.1\",\n        \"eslint-plugin-react\": \"7.21.5\",\n        \"eslint-plugin-react-hooks\": \"4.2.0\",\n        \"prettier\": \"2.2.0\",\n        \"typescript\": \"4.1.2\",\n        \"x-package-version-strict-check\": \"1.7.0\"\n    ```\n\n-   And add a script\n\n    ```javascript\n    \"check\":\"x-code-inspect\"\n    ```\n\n-   `npm i`\n\n-   `npm run check`\n\n# Preview\n\n![](doc/imgs/1.gif)\n\n# Environment\n\n-   Node.js \u003e= 10.13.0\n\n# Built-in Inspectors\n\n### project-basic\n\n-   File `package.json` must include: `script.start`, `script.dist`\n-   The project must contains directory: `src`, `dist`, `doc`\n\n### x-package-version-strict-check\n\n-   [Home Page](https://github.com/xucongli1989/x-package-version-strict-check)\n\n### ESLint\n\n-   [Home Page](https://eslint.org/)\n-   [VS Code Plug-in](https://marketplace.visualstudio.com/items?itemName=dbaeumer.vscode-eslint#review-details)\n\n**Extra plug-ins:** `react`\n\n### Prettier\n\n-   [Home Page](https://prettier.io/docs/en/index.html)\n-   [VS Code Plug-in](https://marketplace.visualstudio.com/items?itemName=esbenp.prettier-vscode#review-details)\n\n### Type Check\n\nVia TypeScript\n\n# CLI Options\n\n##### -V, --version\n\noutput the version number\n\n##### --debug\n\nRun as debug. (default: false)\n\n##### --path\n\nProject's path that you want to check. (default: \"./\")\n\n##### --eslint-global\n\nDefine global variate, see ESLint's doc. (default: \"\")\n\n##### -h, --help\n\noutput usage information\n\n# Change Log\n\n[CHANGELOG.md](CHANGELOG.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxucongli1989%2Fx-code-inspect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxucongli1989%2Fx-code-inspect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxucongli1989%2Fx-code-inspect/lists"}