mirror of
https://github.com/openai/codex.git
synced 2026-11-21 22:50:37 +00:00
Apply argument comment lint across codex-rs
This commit is contained in:
@@ -44,7 +44,7 @@ impl ExecPolicyCheckCommand {
|
||||
let policy = load_policies(&self.rules)?;
|
||||
let matched_rules = policy.matches_for_command_with_options(
|
||||
&self.command,
|
||||
None,
|
||||
/*heuristics_fallback*/ None,
|
||||
&MatchOptions {
|
||||
resolve_host_executables: self.resolve_host_executables,
|
||||
},
|
||||
|
||||
@@ -255,7 +255,7 @@ pub(crate) fn validate_match_examples(
|
||||
|
||||
for example in matches {
|
||||
if !policy
|
||||
.matches_for_command_with_options(example, None, &options)
|
||||
.matches_for_command_with_options(example, /*heuristics_fallback*/ None, &options)
|
||||
.is_empty()
|
||||
{
|
||||
continue;
|
||||
@@ -290,7 +290,7 @@ pub(crate) fn validate_not_match_examples(
|
||||
|
||||
for example in not_matches {
|
||||
if let Some(rule) = policy
|
||||
.matches_for_command_with_options(example, None, &options)
|
||||
.matches_for_command_with_options(example, /*heuristics_fallback*/ None, &options)
|
||||
.first()
|
||||
{
|
||||
return Err(Error::ExampleDidMatch {
|
||||
|
||||
Reference in New Issue
Block a user