Code reference detail
implicit-import-extension.test.ts
packages/language/test/implicit-import-extension.test.ts
| Idea | Status | Tags | Summary | Katz |
|---|---|---|---|---|
| implicit_file_extension | The import statements should not require an extension, i. e. it should assume ". rq " unless otherwise specified. An extensionless path resolves to the ". rq " file first, then to a literal extensionless file or folder. A path that already carries any extension is resolved exactly as written. Folder targets: [import_folder_targets]. | 0.195 | ||
| import_folder_targets | done | An import path may refer to a folder. A folder is a valid import target when that path exists as a directory. Namespace import of a folder binds the alias to that folder, the same as a file. Extensionless paths still prefer a `.rq` file: [implicit_file_extension]. Related: ["../../../language/imports.rq".import_paths], [import_does_not_exist_error], ["../syntax/features-syntax.rq".file_references]. | 0.164 | |
| remote_imports | Reqlan files should support importing requirements from remote urls. Remote import syntax should follow import " https://company.com/reqs/style.rq" as styleguide. The extension should resolve, cache, and validate remote imports. Barrel imports should be recommended for token efficiency when many symbols are needed from one remote file. | 0.040 |
Reference labels
"../../../../packages/language/test/implicit-import-extension.test.ts", "../../../../packages/language/test/implicit-import-extension.test.ts:filesystem lookups append .rq then accept an existing directory", ../../../../packages/language/test/implicit-import-extension.test.ts, ../../../../packages/language/test/implicit-import-extension.test.ts:filesystem lookups append .rq then accept an existing directory