Hub rules-julia

rules-julia

v3 public Verified

Julia

Julia is a high-level, high-performance, dynamic programming language for numerical computing. These rules govern Julia development, performance optimization, and scientific computing patterns for AI agents.

@sigmashakeinc 2 pulls 6 rules published Apr 8, 2026 synced Nov 22, 2026 sigmashakeinc/rules/rulesets/rules-julia →
Severity
4 error 2 warn 0 info
demo.cast
Julia is a high-level, high-performance, dynamic programming language for numerical computing. These rules govern Julia development, performance optimization, and scientific computing patterns for AI agents.

Rules index

6 governance rules

Indexed from the repository's .rules files, grouped by technology. Expand any rule to read the raw source.

julia

julia-ccall-review warning ask

ccall() invokes a foreign C function with no Julia safety checks — memory safety, type correctness, and error handling are entirely the caller's responsibility. Review the call signature carefully, ensure the library is trusted and pinned to a known version, and handle any error codes explicitly.

Rule source requires an active Pro or Enterprise subscription.
julia-no-eval-meta-parse error block

eval(Meta.parse(str)) executes an arbitrary string as Julia code — equivalent to Python's exec(). This is a code injection vulnerability when str contains user-supplied data (CWE-94). Use a dispatch table, JSON/TOML parser, or a dedicated expression evaluator instead.

Rule source requires an active Pro or Enterprise subscription.
julia-no-hardcoded-secrets error log

Hardcoded credential in Julia source — exposed in version control. Access secrets via ENV["SECRET_NAME"] and load from a .env file (DotEnv.jl) or a secrets manager, never embed them in code.

Rule source requires an active Pro or Enterprise subscription.
julia-no-include-user-input error block

include() with a variable argument executes an arbitrary Julia source file — if the path is derived from user input this is a direct code execution vulnerability. Only pass string literals to include(). Use a module registry or package for dynamic code loading.

Rule source requires an active Pro or Enterprise subscription.
julia-no-shell-injection error block

Julia backtick commands with interpolated variables can enable OS command injection if the variable contains shell metacharacters (CWE-78). Julia does perform some interpolation escaping, but complex variables can still break out. Validate and sanitize all interpolated values, or use the Cmd array form: `cmd \$([arg1, arg2])` to pass arguments as a list.

Rule source requires an active Pro or Enterprise subscription.
julia-no-weak-random-crypto warning log

Julia's rand() uses the Mersenne Twister PRNG which is not cryptographically secure. For security-sensitive values (tokens, keys, nonces) use the RandomDevice() RNG: rand(RandomDevice(), UInt8, 32) or the Cryptography.jl package.

Rule source requires an active Pro or Enterprise subscription.

Version metadata

Published metadata

The hash-locked record of this published ruleset. When source contents change, the maintainer resyncs and the version bumps.

Version
v3
Published
Apr 8, 2026
Source commits
0
Synced
Nov 22, 2026
Hash
66f38e6b2b1d0379176993775edbd3231d2f947e9b4eaf770a77671698490865
Signature
Verified (publisher key)
Tested with
claude-code@current
Plan
Starter (free)
Visibility
Public

Source history

Recent commits

Latest commits touching rulesets/rules-julia/.sigmashake/rules in sigmashakeinc/rules/rulesets/rules-julia. The published version only bumps when a maintainer resyncs.

No commit history available.