Linter: add support for ignoring a rule on an entire file instead of just next or current line
还没有人认领这个 Issue。
评估
调研方向
该 issue 未指定任何实现文件或测试。首先定位 linter 对 next-line 和 current-line 忽略的现有处理,然后为文件级 suppression 添加覆盖,同时确认现有的更窄范围形式仍然有效。
由索引模型根据 Issue 内容生成。
描述
E.g. in a class with static methods used to create an instance - I expect to be able to access private fields to assign them in this static factory functions without getting an error from the linter.
Currently, I have to mark each individual access. It can get quite verbose given multiple such static factory functions. In other parts of the code base - I want the rule - but in this file - it's fine for it to be completely disabled.
- 主要语言
- Rust
- 星标
- 468
- 派生
- 39
- 平均合并
- 6 小时 24 分钟
- 30 天内合并 PR
- 3
环境准备
这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
GDQuest/GDScript-formatter 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 62/100
GDQuest/GDScript-formatter#365 ·
-
难度 4/5 3-5 天 新手友好度 48/100
GDQuest/GDScript-formatter#366 ·
-
难度 4/5 3-5 天 新手友好度 58/100
GDQuest/GDScript-formatter#360 · 1 条评论 ·
-
难度 4/5 3-5 天 新手友好度 48/100
GDQuest/GDScript-formatter#354 · 2 条评论 ·
-
难度 4/5 3-5 天 新手友好度 48/100
GDQuest/GDScript-formatter#353 · 4 条评论 ·
查看 GDQuest/GDScript-formatter 的全部 Issue
相似的 Issue
-
llm translation
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
CybercentreCanada/sawp#13 ·
-
area: backend type: enhancement
难度 2/5 1-3 小时 新手友好度 61/100
armadavalor/WinKnife#6 ·
-
难度 2/5 1-3 小时 新手友好度 68/100
-
难度 2/5 1-3 小时 新手友好度 78/100
5omeOtherGuy/phaseone#870 ·
维护者通常 1 天内回复