@@ -0,0 +1,1261 @@
+%0A%22%22%22%0ASizun%0AMIT License%0A(C) 2015 David Rieger%0A%22%22%22%0A%0Afrom flask import current_app as app%0Afrom sizun.errorhandlers.concrete_error import ExternalDependencyError%0Afrom .inspection import InspectionABC%0Afrom sizun.controllers.aghandler import AGResultHelper%0A%0A%0Aclass MCInspector(InspectionABC):%0A%0A    def __init__(self, aghandler, syntaxhandler, rulehandler):%0A        self.ag = aghandler%0A        self.INSPECTION = %22MC%22%0A        self.syntax = syntaxhandler%0A        self.rule = rulehandler%0A        self.MAX_OBJECTS_IN_MESSAGE_CHAIN = int(self.rule.get_value(self.INSPECTION, %22MAX_OBJECTS_IN_MESSAGE_CHAIN%22))%0A%0A    def inspect(self):%0A        super().inspect()%0A%0A        _all_chains = self._find_all_message_chains()%0A%0A        for _file, _chain in _all_chains.items():%0A            for _line, _code in _chain.items():%0A%0A                _num_objects = len(_code.split(%22.%22))%0A%0A                if _num_objects %3E self.MAX_OBJECTS_IN_MESSAGE_CHAIN:%0A                    _note = %22%7B%7D objects%22.format(_num_objects)%0A                    self.note_violation(_file, _line, _code, _note)%0A                    self.escalate()%0A%0A    def _find_all_message_chains(self):%0A        _list = self.ag.source_exe(self.syntax.get_message_chain_regex())%0A        return self.ag.to_dict(_list, includecode=True)%0A

add actual file