{"id":16293749,"url":"https://github.com/axetroy/fslint","last_synced_at":"2025-08-01T04:39:51.268Z","repository":{"id":46832649,"uuid":"329637701","full_name":"axetroy/fslint","owner":"axetroy","description":" 文件系统命名风格检测工具 File system naming style lint","archived":false,"fork":false,"pushed_at":"2024-04-10T05:53:05.000Z","size":3941,"stargazers_count":3,"open_issues_count":4,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-05T11:10:32.535Z","etag":null,"topics":["cli","lint","linter"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"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/axetroy.png","metadata":{"files":{"readme":"README.md","changelog":null,"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}},"created_at":"2021-01-14T14:22:38.000Z","updated_at":"2023-04-03T16:30:55.000Z","dependencies_parsed_at":"2024-06-20T21:52:29.653Z","dependency_job_id":"8224bef8-2b57-42d4-ad4f-512c0c2b214e","html_url":"https://github.com/axetroy/fslint","commit_stats":{"total_commits":157,"total_committers":2,"mean_commits":78.5,"dds":0.0573248407643312,"last_synced_commit":"c629c5a8ae8a2fe2dccd2c88eae7f79ce3b7e7b1"},"previous_names":[],"tags_count":35,"template":false,"template_full_name":"axetroy/go-cli-boilerplate","purl":"pkg:github/axetroy/fslint","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axetroy%2Ffslint","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axetroy%2Ffslint/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axetroy%2Ffslint/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axetroy%2Ffslint/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/axetroy","download_url":"https://codeload.github.com/axetroy/fslint/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/axetroy%2Ffslint/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":268171280,"owners_count":24207413,"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","status":"online","status_checked_at":"2025-08-01T02:00:08.611Z","response_time":67,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["cli","lint","linter"],"created_at":"2024-10-10T20:12:15.781Z","updated_at":"2025-08-01T04:39:51.227Z","avatar_url":"https://github.com/axetroy.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"中文简体 | [English](README_en-US.md)\n\n[![Build Status](https://github.com/axetroy/fslint/workflows/ci/badge.svg)](https://github.com/axetroy/fslint/actions)\n[![Go Report Card](https://goreportcard.com/badge/github.com/axetroy/fslint)](https://goreportcard.com/report/github.com/axetroy/fslint)\n![Latest Version](https://img.shields.io/github/v/release/axetroy/fslint.svg)\n[![996.icu](https://img.shields.io/badge/link-996.icu-red.svg)](https://996.icu)\n![Repo Size](https://img.shields.io/github/repo-size/axetroy/fslint.svg)\n\n## fslint\n\n这是用于检测文件系统命名风格的工具。 很难想象在同一应用程序中有几种不同的文件命名风格。\n\n### Usage\n\n```bash\n$ fslint --config=.fslintrc.jsonc\n```\n\n`.fslintrc.jsonc` 是一个配置文件\n\n```jsonc\n{\n  \"maxError\": 0, // 最大的错误条数\n  \"exclude\": [\"vendor\", \"node_modules\", \"bin\", \".git\"], // 忽略的目录名称\n  \"include\": [\n    {\n      \"file\": \"./src/**/*.vue\", // 检测 *.vue 文件，支持 Glob 语法\n      \"level\": \"error\",\n      \"pattern\": \"PascalCase\",\n      \"ignore\": [\"**/index.vue\"] // 在这条规则中忽略 index.vue 文件，支持 Glob 语法\n    },\n    {\n      \"folder\": \"./src/**/*\", // 检测文件夹\n      \"level\": \"warn\",\n      \"pattern\": \"kebab-case\"\n    }\n  ]\n}\n```\n\n| Pattern          | 描述                             | 推荐 |\n| ---------------- | -------------------------------- | ---- |\n| **PascalCase**   | 大写的驼峰式风格                 | Yes  |\n| **camelCase**    | 小写的驼峰式风格                 | Yes  |\n| **kebab-case**   | 使用 破折号(`-`) 连接的小写风格  | Yes  |\n| **snake_case**   | 小写开头的蛇式风格               | Yes  |\n| **/\\\u003cregexp\\\u003e/** | 以 `/` 开头 `/` 结尾的正则表达式 |      |\n\n### 安装\n\n1. Shell (Mac/Linux)\n\n```bash\ncurl -fsSL https://github.com/release-lab/install/raw/v1/install.sh | bash -s -- -r=axetroy/fslint\n```\n\n2. PowerShell (Windows):\n\n```bash\n$r=\"axetroy/fslint\";iwr https://github.com/release-lab/install/raw/v1/install.ps1 -useb | iex\n```\n\n3. [Github release page](https://github.com/axetroy/fslint/releases) (全平台支持))\n\n\u003e 下载可执行文件，并且把它加入到`$PATH` 环境变量中\n\n4. 使用 [Golang](https://golang.org) 从源码中构建并安装 (全平台支持)\n\n```bash\ngo install github.com/axetroy/fslint/cmd/fslint\n```\n\n5. 通过 npm 安装\n\n```sh\nnpm install @axetroy/fslint -g\n```\n\n### 测试\n\n```bash\n$ make test\n```\n\n### 开源许可\n\nThe [Anti-996 License](LICENSE_zh-CN)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxetroy%2Ffslint","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faxetroy%2Ffslint","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faxetroy%2Ffslint/lists"}