def validate(self, path):
        legacy = False
        message = ("Config file has an include or exclude reference "
                   "to legacy test '{0}' but no configuration data for "
                   "it. Configuration data is required for this test. "
                   "Please consider switching to the new config file "
                   "format, the tool 'bandit-config-generator' can help "
                   "you with this.")

        def _test(key, block, exclude, include):
            if key in exclude or key in include:
                if self._config.get(block) is None:
                    raise utils.ConfigError(message.format(key), path)

        if 'profiles' in self._config:
            legacy = True
            for profile in self._config['profiles'].values():
                inc = profile.get('include') or set()
                exc = profile.get('exclude') or set()

                _test('blacklist_imports', 'blacklist_imports', inc, exc)
                _test('blacklist_import_func', 'blacklist_imports', inc, exc)
                _test('blacklist_calls', 'blacklist_calls', inc, exc)

        # show deprecation message
        if legacy:
            logger.warn("Config file '%s' contains deprecated legacy "
                        "config data. Please consider upgrading to "
                        "the new config format. The tool "
                        "'bandit-config-generator' can help you with "
                        "this. Support for legacy configs will be removed "
                        "in a future bandit version.", path)
Updates serialized form of transaction.
dataset/ETHPy150Open openstack/bandit/bandit/core/config.py/BanditConfig.validate--crossover with--dataset/ETHPy150Open chromaway/ngcccbase/ngcccbase/txcons.py/RawTxSpec.update_tx_data