How to use the continuum.index.Index function in continuum

To help you get started, we’ve selected a few continuum examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github zyantific / continuum / continuum / project.py View on Github external
conf = ConfigParser.SafeConfigParser()
        if not conf.read(os.path.join(meta_dir, self.CFG_FILE_NAME)):
            raise Exception("Project is lacking its config file")

        # Determine project files.
        file_patterns = conf.get('project', 'file_patterns')
        if file_patterns is None:
            raise Exception("Project configuration lacks `file_patterns` directive")
        files = list(self.find_project_files(root, file_patterns))

        # Everything fine, put info into `self`.
        self.conf = conf
        self.proj_dir = root
        self.meta_dir = meta_dir
        self.files = files
        self.index = Index(self)

        if not skip_analysis:
            # Is index for *this* IDB built? If not, do so.
            if not self.index.is_idb_indexed(GetIdbPath()):
                self.index.index_types_for_this_idb()
                self.index.index_symbols_for_this_idb()

            # Analyze other files, if required.
            self._analyze_project_files()