Repository navigation
feat(allowlist): add Julia (.jl) support - #501
Merged
Merged
Conversation
Register the Julia extension (.jl) in the review allowlist, exclude the Pkg test-dir convention (**/test/**/*.jl), and add a Julia review rule doc with a glob mapping. Covered by positive/negative table-test cases in allowed_ext_test.go and a resolve case in system_rules_test.go. Part of #470.
Contributor
|
✅ OpenCodeReview: No comments generated. Looks good to me. |
mittalpk
added a commit
to mittalpk/open-code-review
that referenced
this pull request
Jul 27, 2026
…explicitly The previous commit on this branch was built from a local main that predated the Julia (.jl) support merge (alibaba#501), so restoring stashed changes onto a freshly-branched, up-to-date main silently replaced the newer .jl allowlist entry, its system_rules.json mapping, and its allowed_ext_test.go / system_rules_test.go cases with the stale pre-Julia state instead of adding Bicep alongside them. Restores every removed Julia entry (allowlist, TestIsExcludedPath cases, system_rules.json mapping, and both test files) so this is now a pure addition of Bicep support, not a replacement of Julia support. Also lists common database ports (MySQL/3306, PostgreSQL/5432, SQL Server/1433, MongoDB/27017) explicitly in bicep.md's sensitive-port clause per review feedback.
mittalpk
added a commit
to mittalpk/open-code-review
that referenced
this pull request
Jul 27, 2026
Same root cause as the sibling Bicep PR (alibaba#525): the local main used to build this branch's working changes predated the Julia support merge (alibaba#501), so restoring those changes onto a branch freshly cut from the current upstream/main silently replaced the newer .jl allowlist entry and its test cases with the stale pre-Julia state instead of adding HCL/Terraform alongside them. Restores .jl in supported_file_types.json, the TestIsAllowedExt and TestIsExcludedPath Julia cases in allowed_ext_test.go, and the Julia resolution cases in system_rules_test.go -- system_rules.json's .jl -> julia.md mapping was already restored in a prior commit on this branch. Now a pure addition of HCL/Terraform support, not a replacement of Julia support.
lizhengfeng101
pushed a commit
that referenced
this pull request
Jul 27, 2026
* feat(allowlist): add HCL/Terraform (.hcl, .tfvars) support Adds .hcl and .tfvars to the allowlist and maps them, along with the already-supported .tf, to a new dedicated terraform.md review rule doc covering hardcoded secrets/credentials, overly permissive network/IAM access, state file hygiene, and lifecycle protection on stateful resources. .tf previously fell through to the generic default rule set with no Terraform-specific guidance despite already being allowlisted; bringing all three extensions under one doc gives consistent coverage rather than leaving .tf behind. Part of #470, closes #522. * Update internal/config/rules/system_rules.json Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix: restore Julia (.jl) support accidentally removed Same root cause as the sibling Bicep PR (#525): the local main used to build this branch's working changes predated the Julia support merge (#501), so restoring those changes onto a branch freshly cut from the current upstream/main silently replaced the newer .jl allowlist entry and its test cases with the stale pre-Julia state instead of adding HCL/Terraform alongside them. Restores .jl in supported_file_types.json, the TestIsAllowedExt and TestIsExcludedPath Julia cases in allowed_ext_test.go, and the Julia resolution cases in system_rules_test.go -- system_rules.json's .jl -> julia.md mapping was already restored in a prior commit on this branch. Now a pure addition of HCL/Terraform support, not a replacement of Julia support. --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
mittalpk
added a commit
to mittalpk/open-code-review
that referenced
this pull request
Jul 27, 2026
…explicitly The previous commit on this branch was built from a local main that predated the Julia (.jl) support merge (alibaba#501), so restoring stashed changes onto a freshly-branched, up-to-date main silently replaced the newer .jl allowlist entry, its system_rules.json mapping, and its allowed_ext_test.go / system_rules_test.go cases with the stale pre-Julia state instead of adding Bicep alongside them. Restores every removed Julia entry (allowlist, TestIsExcludedPath cases, system_rules.json mapping, and both test files) so this is now a pure addition of Bicep support, not a replacement of Julia support. Also lists common database ports (MySQL/3306, PostgreSQL/5432, SQL Server/1433, MongoDB/27017) explicitly in bicep.md's sensitive-port clause per review feedback.
This was referenced Aug 1, 2026
Githab-capibara
added a commit
to Githab-capibara/open-code-review
that referenced
this pull request
Sep 17, 2026
Register the Julia extension (.jl) in the review allowlist, exclude the Pkg test-dir convention (**/test/**/*.jl), and add a Julia review rule doc with a glob mapping. Covered by positive/negative table-test cases in allowed_ext_test.go and a resolve case in system_rules_test.go. Part of alibaba#470.
Githab-capibara
added a commit
to Githab-capibara/open-code-review
that referenced
this pull request
Sep 17, 2026
* feat(allowlist): add HCL/Terraform (.hcl, .tfvars) support Adds .hcl and .tfvars to the allowlist and maps them, along with the already-supported .tf, to a new dedicated terraform.md review rule doc covering hardcoded secrets/credentials, overly permissive network/IAM access, state file hygiene, and lifecycle protection on stateful resources. .tf previously fell through to the generic default rule set with no Terraform-specific guidance despite already being allowlisted; bringing all three extensions under one doc gives consistent coverage rather than leaving .tf behind. Part of alibaba#470, closes alibaba#522. * Update internal/config/rules/system_rules.json Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * fix: restore Julia (.jl) support accidentally removed Same root cause as the sibling Bicep PR (alibaba#525): the local main used to build this branch's working changes predated the Julia support merge (alibaba#501), so restoring those changes onto a branch freshly cut from the current upstream/main silently replaced the newer .jl allowlist entry and its test cases with the stale pre-Julia state instead of adding HCL/Terraform alongside them. Restores .jl in supported_file_types.json, the TestIsAllowedExt and TestIsExcludedPath Julia cases in allowed_ext_test.go, and the Julia resolution cases in system_rules_test.go -- system_rules.json's .jl -> julia.md mapping was already restored in a prior commit on this branch. Now a pure addition of HCL/Terraform support, not a replacement of Julia support. --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds Julia (
.jl) support to the review allowlist, as one of the language groups tracked in #470..jlinsupported_file_types.json**/test/**/*.jltodefault_exclude_patterns.json, matching Julia'sPkglayout where tests live undertest/(e.g.test/runtests.jl)julia.mdrule doc and maps**/*.jlto it insystem_rules.jsonThe change is entirely additive — no existing extension, pattern, or mapping is altered — and follows the same shape as the merged GraphQL PR #491.
The rule doc focuses on pitfalls that are genuinely Julia-specific rather than generic lint: type stability and inference, multiple-dispatch hazards (method ambiguity, type piracy),
@inbounds/indexing safety, thenothing/missing/NaNdistinction, thread-safety underThreads.@threads, performance anti-patterns, and security-sensitive constructs (eval/Meta.parseon untrusted input,unsafe_*andccall).Note on one detail: Julia backticks build a
Cmdand pass arguments to the process without a shell, sorun(`tool $input`)is not itself a command-injection vector. The doc therefore flags only explicit shell invocation (sh -c,bash -c), to avoid false positives on safe code.Type of Change
How Has This Been Tested?
make testpasses locallymake check(go mod tidy +gofmt -s -w .+go vet) is clean andgo.mod/go.sumare unchanged. Package tests pass with the race detector:ok github.com/open-code-review/open-code-review/internal/config/allowlist
ok github.com/open-code-review/open-code-review/internal/config/rules
Coverage on the touched packages is 88.9% (
allowlist) and 86.4% (rules), both above the 80% gate.Checklist
go fmt,go vet)Related Issues
Part of #470
closes #500