Pass 3 of 3 · Deep dive of PHAROSPass 1 · OverviewPass 2 · How it works
Code Observatory / method
_skip_reason
codeintel.indexer.CodeIndexer._skip_reason
PINNED SOURCE Source and edges from the index at this commit. An execution appears only where one was recorded.
PHAROS at 975a38dMIT license
Around this symbol
Search all symbolsLoading
| Symbol | File | Resolved by |
|---|---|---|
| detect_language | languages.py | through an import |
| Symbol | File | Resolved by |
|---|---|---|
| _sync | indexer.py | same file |
| Symbol | File | Resolved by |
|---|---|---|
| CodeIndexer | indexer.py | same file |
codeintel.indexer.CodeIndexer._skip_reasonbackend/app/codeintel/indexer.py, lines 291–303Open source
def _skip_reason(self, entry: TreeEntry) -> str | None: parts = entry.path.split("/") if detect_language(entry.path) is None: return "not_source" # Directory rules apply to ancestors only; a file's own name is # checked by is_excluded_file. if has_excluded_ancestor(parts[:-1]): return "excluded_path" if is_excluded_file(parts[-1]): return "excluded_file" if entry.size > self.max_file_bytes: return "too_large" return NoneWhat the index recorded
- Signature
def _skip_reason(self, entry: TreeEntry) -> str | None:- File
backend/app/codeintel/indexer.py- Lines
- 291–303
- Parser
- python-ast
- Git blob
e8fdfa7b5545e821f7649d68cfadd2aae85b89d0- Call sites
- 4 named, 3 resolved, 1 left unlinked
- Outside this subset
- 2 more edges reach code outside the graph shown here
