- 
                Notifications
    You must be signed in to change notification settings 
- Fork 53
Closed
Milestone
Description
Move the impact_included method into the Axe class. Nit, update the method to accept data['violations'] and simplify line 17.
def impact_included(rule, impact):
    if impact == 'minor' or impact is None:
        return True
    elif impact == 'moderate':
        if rule['impact'] != 'minor':
            return True
    elif impact == 'severe':
        if rule['impact'] == 'severe' or rule['impact'] == 'critical':
            return True
    elif impact == 'critical':
        if rule['impact'] == 'critical':
            return True
    else:
return False
Metadata
Metadata
Assignees
Labels
No labels