style(elixir): format extractor configs

This commit is contained in:
Benedikt Schnatterbeck 2026-09-18 12:17:38 +01:00
parent 728561d813
commit d786ef732d
No known key found for this signature in database
2 changed files with 13 additions and 6 deletions

View file

@ -29,10 +29,7 @@ function toSnakeCase(segment: string): string {
* Elixir.MyApp.User → elixir/my_app/user (Erlang-namespaced modules)
*/
function moduleToRelPath(moduleName: string): string {
return moduleName
.split('.')
.map(toSnakeCase)
.join('/');
return moduleName.split('.').map(toSnakeCase).join('/');
}
const ELIXIR_EXTS = ['.ex', '.exs'];

View file

@ -1,11 +1,21 @@
// gitnexus/src/core/ingestion/method-extractors/configs/elixir.ts
import { SupportedLanguages } from 'gitnexus-shared';
import type { MethodExtractionConfig, ParameterInfo, MethodVisibility } from '../../method-types.js';
import type {
MethodExtractionConfig,
ParameterInfo,
MethodVisibility,
} from '../../method-types.js';
import type { SyntaxNode } from '../../utils/ast-helpers.js';
const ELIXIR_DEF_KEYWORDS = new Set([
'def', 'defp', 'defmacro', 'defmacrop', 'defguard', 'defguardp', 'defdelegate',
'def',
'defp',
'defmacro',
'defmacrop',
'defguard',
'defguardp',
'defdelegate',
]);
const ELIXIR_PRIVATE_KEYWORDS = new Set(['defp', 'defmacrop', 'defguardp']);