rules.go
Method Rule.ComputedValue
has 8 return statements (exceeds 4 allowed). Open
Open
func (self *Rule) ComputedValue(values *Options) (interface{}, error) {
if self.Count != 0 {
self.Value = self.Count
}
Method Rule.Match
has 7 return statements (exceeds 4 allowed). Open
Open
func (self *Rule) Match(args []string, idx *int) (bool, error) {
name := self.Name
var matched bool
if self.HasFlag(IsConfig) {
Method Rule.GenerateUsage
has 5 return statements (exceeds 4 allowed). Open
Open
func (self *Rule) GenerateUsage() string {
switch {
case self.Flags&IsOption != 0:
if self.HasFlag(IsRequired) {
return fmt.Sprintf("%s", self.Aliases[0])
TODO found Open
Open
// TODO: Move this logic from here, This method should be all about getting the value
- Exclude checks
TODO found Open
Open
// TODO: This sort should happen when we validate rules
- Exclude checks
TODO found Open
Open
// TODO: Move this logic from here, This method should be all about getting the value
- Exclude checks