### SUMMARY

Update validate-modules to report messages using named error codes like `version-added` instead of error numbers like `E305`.

This would match the behavior of other tools we use, such as pylint, which have one named error code per rule. This will also make ignore entries much easier to read.

Doing this before 2.9 is released will avoid potential backwards compatibility issues with ignore entries in collections.

##### ISSUE TYPE

Feature Idea

##### COMPONENT NAME

validate-modules

"""
    :type path: str
    :type line: int
    :type metadata: Metadata
    :rtype: int
    """
    ranges = metadata.changes.get(path)
    
    if not ranges:
        return 0
    
    if any(r[0] <= line <= r[1] in r for r in ranges):
        return 100
    
    if line == 0:
        return 75
    
    return 50
class TestResult:
    """Base class for test results."""
    def __init__(self, command, test, python_version=None):