Add wsl linter and fix

Signed-off-by: Émile Ré <emile@probo.com>
This commit is contained in:
Émile Ré
2026-05-19 14:51:08 +04:00
parent eedfdcecc8
commit 9156d6a16a
882 changed files with 6068 additions and 574 deletions

View File

@@ -158,12 +158,15 @@ func NewCmdCreate(f *cmdutil.Factory) *cobra.Command {
if flagArea == "" {
return fmt.Errorf("area is required; pass --area or run interactively")
}
if flagSource == "" {
return fmt.Errorf("source is required; pass --source or run interactively")
}
if flagStatus == "" {
return fmt.Errorf("status is required; pass --status or run interactively")
}
if flagType == "" {
return fmt.Errorf("type is required; pass --type or run interactively")
}
@@ -179,18 +182,23 @@ func NewCmdCreate(f *cmdutil.Factory) *cobra.Command {
if flagRequirement != "" {
input["requirement"] = flagRequirement
}
if flagActionsToBeImplemented != "" {
input["actionsToBeImplemented"] = flagActionsToBeImplemented
}
if flagRegulator != "" {
input["regulator"] = flagRegulator
}
if flagOwner != "" {
input["ownerId"] = flagOwner
}
if flagLastReviewDate != "" {
input["lastReviewDate"] = flagLastReviewDate
}
if flagDueDate != "" {
input["dueDate"] = flagDueDate
}