Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Rule linter

未关闭
#5,272 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 3 天内回复

@Saumyajaiswal9794 已经在做这个了。

开始于 2026年9月1日。

评估

难度
3/5
预计耗时
1-2 天
新手友好度
64/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
python, yaml
领域
tooling

调研方向

此 issue 只需要为 ScanCode 规则的 YAML frontmatter 添加一个简单的 linter。首先在 repo 中找到规则以及现有 validation/lint entry point 或 test 的定义位置,然后检查当前的规则 YAML 文件,以梳理预期的缩进约定。围绕这些 fixture 添加或扩展一个 Rule-Lint test,使不一致的缩进能够被可重复地标记,并将成功定义为 lint 结果能够检测并拒绝混用 2/4 个空格的模式。

由索引模型根据 Issue 内容生成。

描述

new feature

Short Description

There are inconsistencies in scancode rules: sometimes YAML indentation is four spaces, sometimes two spaces. Having a linter that does some simple checks of the YAML frontmatter.

See also https://github.com/aboutcode-org/scancode-toolkit/issues/5070#issuecomment-4545332300

Possible Labels

  • new feature

Select Category

  • Enhancement
  • Add License/Copyright
  • Scan Feature
  • Packaging
  • Documentation
  • Expand Support
  • Other

Possible Solution/Implementation Details

Example/Links if Any

Can you help with this Feature

主要语言
Python
星标
2.7k
派生
831
平均合并
3 天 4 小时
30 天内合并 PR
7

环境准备

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

aboutcode-org/scancode-toolkit 的其他 Issue

查看 aboutcode-org/scancode-toolkit 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。