Skip to content

feat(allowlist): add Elm (.elm) support - #953

Merged
lizhengfeng101 merged 1 commit into
alibaba:mainfrom
wakqasahmed:feature/issue-940-elm-support
Aug 17, 2026
Merged

lizhengfeng101 merged 1 commit into
alibaba:mainfrom
wakqasahmed:feature/issue-940-elm-support

Conversation

@wakqasahmed

Copy link
Copy Markdown
Contributor

Summary

  • Add .elm to the supported file types allowlist
  • Add **/tests/**/*.elm to the default exclude patterns (Elm's conventional top-level tests/ directory per elm-test / elm.json test-dependencies convention)
  • Add internal/config/rules/rule_docs/elm.md, an Elm-specific review rule doc covering The Elm Architecture (Model/Update/View), Maybe/Result handling instead of exceptions, port/JS interop safety, JSON decoder/encoder correctness, Debug.log/Debug.todo production hygiene, and elm.json semantic versioning
  • Register **/*.elm -> elm.md in system_rules.json
  • Add test coverage: allowed-extension matching (.elm/.ELM), exclude-pattern matching (tests/**/*.elm), and rule resolution

Part of the language-allowlist expansion tracked in #470.

Closes #940

Test plan

  • go test ./internal/config/allowlist/... -run 'TestIsAllowedExt|TestIsExcludedPath' -v — PASS
  • go test ./internal/config/rules/... -run TestResolve_DefaultRules -v — PASS
  • gofmt -s -l . — clean
  • go vet ./... (excluding /extensions/) — clean
  • scripts/verify-english-only.go — clean (411 files scanned, no unapproved non-English text)

@CLAassistant

CLAassistant commented Aug 16, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@github-actions

Copy link
Copy Markdown
Contributor

✅ OpenCodeReview: Review complete: 0 finding(s) across 3 selected item(s).

@lizhengfeng101 lizhengfeng101 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@lizhengfeng101
lizhengfeng101 merged commit 7ef8e50 into alibaba:main Aug 17, 2026
12 checks passed
Githab-capibara added a commit to Githab-capibara/open-code-review that referenced this pull request Sep 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(allowlist): add Elm language support

3 participants