mirror of
https://github.com/awslabs/iam-policy-autopilot.git
synced 2026-04-25 16:05:58 +03:00
[GH-ISSUE #61] Refactor parameters structures to introduce Default for simpler initialization #143
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/iam-policy-autopilot#143
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @adpaco-aws on GitHub (Dec 5, 2025).
Original GitHub issue: https://github.com/awslabs/iam-policy-autopilot/issues/61
Enum variants like
Parameter::Positionalrequire adding fields likestruct_fields: Noneon creation in many tests. We could simplify this by refactoring its fields into a struct and implementingDefaulton it.Originally posted by @mschlaipfer in https://github.com/awslabs/iam-policy-autopilot/pull/50#discussion_r2592200658
@mschlaipfer commented on GitHub (Dec 8, 2025):
We should be deliberate with this, I think adding it to tests is okay, but we should not use that pattern everywhere. I tend to agree with https://corrode.dev/blog/defensive-programming/#code-smell-lazy-use-of-default