Skip to content

Conversation

@Faria22
Copy link

@Faria22 Faria22 commented Dec 18, 2025

I think this makes more sense and I believe it is the expected behavior. I also added an option in the settings to turn it on/off.

Copilot AI review requested due to automatic review settings December 18, 2025 18:09
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 1 out of 1 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +860 to +886
#[test]
fn setting_recurse_true() {
let global: GlobalConfig = toml::from_str(
r#"
[settings]
recurse = true
[cat]
depends = []
[cat.files]
cat = '~/.QuarticCat'
"#,
)
.unwrap();

let local: LocalConfig = toml::from_str(
r#"
packages = ['cat']
"#,
)
.unwrap();

let merged_config = merge_configuration_files(global, local, None).unwrap();

assert!(merged_config.recurse);
}
Copy link

Copilot AI Dec 18, 2025

Choose a reason for hiding this comment

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

Consider adding a test case for explicitly setting recurse = false to ensure all three cases are covered: default (false), explicit true, and explicit false. This would make the test suite more comprehensive and verify that the setting works correctly in all scenarios.

Copilot uses AI. Check for mistakes.
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.

1 participant