| title | CodeOwner |
|---|---|
| sidebarTitle | CodeOwner |
| icon | |
| description | CodeOwner is a class that represents a code owner in a codebase. It is used to iterate over all files that are owned by a specific owner. |
import {Parameter} from '/snippets/Parameter.mdx'; import {ParameterWrapper} from '/snippets/ParameterWrapper.mdx'; import {Return} from '/snippets/Return.mdx'; import {HorizontalDivider} from '/snippets/HorizontalDivider.mdx'; import {GithubLinkNote} from '/snippets/GithubLinkNote.mdx'; import {Attribute} from '/snippets/Attribute.mdx';
### classes list[ Class ] } description="Get a recursive list of all classes in files container." /> list[ TSExport ] } description="Get a recursive list of all exports in files container." /> Callable [FilesParam, Iterable[TFile]] } description="A callable that returns an iterable of all files in the codebase." /> list[ Function ] } description="Get a recursive list of all functions in files container." /> list[ Assignment ] } description="Get a recursive list of all global variables in files container." /> list[ ImportStatement ] } description="Get a recursive list of all import statements in files container." /> list[ Import ] } description="Get a recursive list of all imports in files container." /> str } description="The name of the code owner." /> Literal[USERNAME, TEAM, EMAIL] } description="The type of the owner (USERNAME, TEAM, EMAIL)." /> str } description="The value of the owner." /> list[ Symbol ] } description="Get a recursive list of all symbols in files container." /> ### files Recursively iterate over all files in the codebase that are owned by the current code owner.<Return return_type={ Iterable[TFile] } description=""/>
Create a list of CodeOwner objects from a CodeOwnersParser.
CodeOwnersParser } description="The CodeOwnersParser to use." defaultValue="" /> Callable [FilesParam, Iterable[TFile]] } description="A callable that returns an iterable of all files in the codebase." defaultValue="" /><Return return_type={ <>list[ <a href="/api-reference/core/CodeOwner" style={ {fontWeight: "inherit", fontSize: "inherit"} }>CodeOwner ]</> } description="A list of CodeOwner objects."/>
Get a class by name in files container.
<Return return_type={ <><a href="/api-reference/core/Class" style={ {fontWeight: "inherit", fontSize: "inherit"} }>Class | None</> } description=""/>
Get an export by name in files container (supports only typescript).
<Return return_type={ <><a href="/api-reference/typescript/TSExport" style={ {fontWeight: "inherit", fontSize: "inherit"} }>TSExport | None</> } description=""/>
Get a function by name in files container.
<Return return_type={ <><a href="/api-reference/core/Function" style={ {fontWeight: "inherit", fontSize: "inherit"} }>Function | None</> } description=""/>
Get a global variable by name in files container.
<Return return_type={ <><a href="/api-reference/core/Assignment" style={ {fontWeight: "inherit", fontSize: "inherit"} }>Assignment | None</> } description=""/>
Get an import by name in files container.
<Return return_type={ <><a href="/api-reference/core/Import" style={ {fontWeight: "inherit", fontSize: "inherit"} }>Import | None</> } description=""/>
Get an import statement by name in files container.
<Return return_type={ <><a href="/api-reference/core/ImportStatement" style={ {fontWeight: "inherit", fontSize: "inherit"} }>ImportStatement | None</> } description=""/>
Get a symbol by name in files container.
<Return return_type={ <><a href="/api-reference/core/Symbol" style={ {fontWeight: "inherit", fontSize: "inherit"} }>Symbol | None</> } description=""/>