@@ -318,6 +318,7 @@ type ConventionsConfig =
318318 numberOfItems: NumberOfItemsConfig option
319319 binding: BindingConfig option
320320 favourReRaise: EnabledConfig option
321+ favourBasicControlFlow: EnabledConfig option
321322 favourConsistentThis: RuleConfig < FavourConsistentThis .Config > option }
322323with
323324 member this.Flatten () =
326327 this.avoidTooShortNames |> Option.bind ( constructRuleIfEnabled AvoidTooShortNames.rule) |> Option.toArray
327328 this.redundantNewKeyword |> Option.bind ( constructRuleIfEnabled RedundantNewKeyword.rule) |> Option.toArray
328329 this.favourReRaise |> Option.bind ( constructRuleIfEnabled FavourReRaise.rule) |> Option.toArray
330+ this.favourBasicControlFlow |> Option.bind ( constructRuleIfEnabled FavourBasicControlFlow.rule) |> Option.toArray
329331 this.nestedStatements |> Option.bind ( constructRuleWithConfig NestedStatements.rule) |> Option.toArray
330332 this.favourConsistentThis |> Option.bind ( constructRuleWithConfig FavourConsistentThis.rule) |> Option.toArray
331333 this.cyclomaticComplexity |> Option.bind ( constructRuleWithConfig CyclomaticComplexity.rule) |> Option.toArray
@@ -394,6 +396,7 @@ type Configuration =
394396 AvoidTooShortNames: EnabledConfig option
395397 RedundantNewKeyword: EnabledConfig option
396398 FavourReRaise: EnabledConfig option
399+ FavourBasicControlFlow: EnabledConfig option
397400 NestedStatements: RuleConfig < NestedStatements .Config > option
398401 FavourConsistentThis: RuleConfig < FavourConsistentThis .Config > option
399402 CyclomaticComplexity: RuleConfig < CyclomaticComplexity .Config > option
477480 AvoidTooShortNames = None
478481 RedundantNewKeyword = None
479482 FavourReRaise = None
483+ FavourBasicControlFlow = None
480484 NestedStatements = None
481485 FavourConsistentThis = None
482486 CyclomaticComplexity = None
@@ -623,6 +627,7 @@ let flattenConfig (config:Configuration) =
623627 config.AvoidTooShortNames |> Option.bind ( constructRuleIfEnabled AvoidTooShortNames.rule)
624628 config.RedundantNewKeyword |> Option.bind ( constructRuleIfEnabled RedundantNewKeyword.rule)
625629 config.FavourReRaise |> Option.bind ( constructRuleIfEnabled FavourReRaise.rule)
630+ config.FavourBasicControlFlow |> Option.bind ( constructRuleIfEnabled FavourBasicControlFlow.rule)
626631 config.NestedStatements |> Option.bind ( constructRuleWithConfig NestedStatements.rule)
627632 config.FavourConsistentThis |> Option.bind ( constructRuleWithConfig FavourConsistentThis.rule)
628633 config.CyclomaticComplexity |> Option.bind ( constructRuleWithConfig CyclomaticComplexity.rule)
0 commit comments