https://github.com/duckduckstudio/check_locale_paths
检查你的网站项目中是否意外的使用了本地路径。
https://github.com/duckduckstudio/check_locale_paths
Last synced: 4 months ago
JSON representation
检查你的网站项目中是否意外的使用了本地路径。
- Host: GitHub
- URL: https://github.com/duckduckstudio/check_locale_paths
- Owner: DuckDuckStudio
- License: apache-2.0
- Created: 2025-09-09T09:43:40.000Z (9 months ago)
- Default Branch: main
- Last Pushed: 2026-01-14T07:59:23.000Z (5 months ago)
- Last Synced: 2026-01-14T09:22:41.590Z (5 months ago)
- Language: JavaScript
- Homepage:
- Size: 39.1 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Check Locale Paths
检查你的网站项目中是否意外的使用了本地路径。
[](https://github.com/DuckDuckStudio/Check_Locale_Paths/releases/latest)
[反馈Bug🐛](https://github.com/DuckDuckStudio/Check_Locale_Paths/issues) | [使用示例🚀](#6-使用示例)
## 可用参数
> [!TIP]
> 所有参数名使用**复数**形式
| 参数 | 描述 | 默认值 | 是否必须 | 备注 |
|-----|-----|-----|-----|-----|
| `formats` | 需要检查的文件格式,以 `,` 分隔 | `html,css,js,mjs,ts,mts` | 否 | / |
| `skip_files` | 跳过的文件,以 `,` 分隔 | / | 否 | / |
| `skip_folders` | 跳过的文件夹,以 `,` 分隔 | `node_modules` | 否 | / |
## 使用示例
```yaml
name: 检查本地路径
# GitHub Action DuckDuckStudio/Check_Locale_Paths 版本 2.0.0 示例工作流
# https://github.com/marketplace/actions/check-locale-paths
# 通过 [Apache License v2.0](https://github.com/DuckDuckStudio/Check_Locale_Paths/blob/main/LICENSE) 许可
on:
push:
branches:
- main
pull_request:
permissions: {}
jobs:
check-local-paths:
runs-on: ubuntu-latest
steps:
- name: 检查本地路径
uses: DuckDuckStudio/Check_Locale_Paths@2.0.0
with:
skip_files: skiped.html
# 默认
# skip_folders: node_modules
# formats: html,css,js,mjs,ts,mts
```
## 星星 🌟
如果您认为本项目对您有帮助,还请给本项目一个小小的 Star 。
[](https://star-history.com/#DuckDuckStudio/Check_Locale_Paths&Date)