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

feat(core): `AnyElement` / `NoElement` conditions with an explicit `not` clause flag

未关闭
#322 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 3 天内回复

还没有人认领这个 Issue。

评估

难度
5/5
预计耗时
一周以上
新手友好度
42/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
python, terraform

调研方向

首先定位现有的列表量词 "all" 实现和独立的 NotRegexMatch 条件,然后检查此变更所依赖的 R1 skip-ordering 和 variable-recursion 修复。当 AnyElement 和 NoElement 在全部 13 个条件中接受带有显式 not 标志的子句,并具有文档所述的 database_flags 和 predicate path-engine 行为时,此变更即完成。

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

描述

enhancement

List quantifiers other than "all". Take a list of clauses {path, type, value, not}: the not
flag is load-bearing because Not* twins exist for only 3 of 13 conditions and are documented as
"not simple negations" — inside a NoElement predicate that asymmetry reports a resource compliant
on a type mismatch. The flag gives negation for all 13 conditions at once and supersedes a
standalone NotRegexMatch
(measured at ~1 unlocked policy on its own). Document that nested
blocks need settings.*.database_flags (the bare dotted form emits severity 2) and that predicate
sub-paths use a different path engine than terraform_resource_attribute. Depends on the R1
skip-ordering and variable-recursion fixes.

主要语言
Python
星标
176
派生
54
平均合并
2 天 20 小时
30 天内合并 PR
12

环境准备

在 Codespaces 中打开

在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。

从这里开始

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

StackGuardian/tirith 的其他 Issue

查看 StackGuardian/tirith 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

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