File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -199,6 +199,11 @@ extensions = ["foo"]
199199function_prefixes = [" function " ]
200200import_prefixes = [" load " ]
201201call_suffixes = [" (" ]
202+ package_index_files = [" index.foo" ]
203+ test_path_patterns = [" tests/*" , " *_test.foo" ]
204+ source_roots = [" src" ]
205+ ignored_paths = [" build/*" ]
206+ local_import_prefixes = [" ." ]
202207
203208[rules ]
204209max_cycles = 0
Original file line number Diff line number Diff line change @@ -1293,7 +1293,12 @@ fn config_schema() -> Value {
12931293 "extensions" : { "type" : "array" , "items" : { "type" : "string" } } ,
12941294 "function_prefixes" : { "type" : "array" , "items" : { "type" : "string" } } ,
12951295 "import_prefixes" : { "type" : "array" , "items" : { "type" : "string" } } ,
1296- "call_suffixes" : { "type" : "array" , "items" : { "type" : "string" } }
1296+ "call_suffixes" : { "type" : "array" , "items" : { "type" : "string" } } ,
1297+ "package_index_files" : { "type" : "array" , "items" : { "type" : "string" } } ,
1298+ "test_path_patterns" : { "type" : "array" , "items" : { "type" : "string" } } ,
1299+ "source_roots" : { "type" : "array" , "items" : { "type" : "string" } } ,
1300+ "ignored_paths" : { "type" : "array" , "items" : { "type" : "string" } } ,
1301+ "local_import_prefixes" : { "type" : "array" , "items" : { "type" : "string" } }
12971302 } ,
12981303 "required" : [ "name" , "extensions" ]
12991304 }
Original file line number Diff line number Diff line change @@ -95,6 +95,11 @@ pub struct LanguagePluginConfig {
9595 pub function_prefixes : Vec < String > ,
9696 pub import_prefixes : Vec < String > ,
9797 pub call_suffixes : Vec < String > ,
98+ pub package_index_files : Vec < String > ,
99+ pub test_path_patterns : Vec < String > ,
100+ pub source_roots : Vec < String > ,
101+ pub ignored_paths : Vec < String > ,
102+ pub local_import_prefixes : Vec < String > ,
98103}
99104
100105impl Default for LanguagePluginConfig {
@@ -113,6 +118,11 @@ impl Default for LanguagePluginConfig {
113118 "require " . to_string( ) ,
114119 ] ,
115120 call_suffixes : vec ! [ "(" . to_string( ) ] ,
121+ package_index_files : Vec :: new ( ) ,
122+ test_path_patterns : Vec :: new ( ) ,
123+ source_roots : Vec :: new ( ) ,
124+ ignored_paths : Vec :: new ( ) ,
125+ local_import_prefixes : vec ! [ "." . to_string( ) ] ,
116126 }
117127 }
118128}
You can’t perform that action at this time.
0 commit comments