Skip to content

Commit f8ff9b5

Browse files
committed
Allow per-project revolvers and formatters
1 parent be35e66 commit f8ff9b5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/motoko/config.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ def load_user_config
3535
end
3636

3737
def load_project_config
38+
load_classes('.motoko')
3839
load_only_config('.motoko.yaml')
3940
end
4041

@@ -57,7 +58,7 @@ def load_only_config(filename)
5758

5859
def load_classes(directory)
5960
Dir["#{directory}/formatters/*.rb", "#{directory}/resolvers/*.rb"].sort.each do |file|
60-
require file
61+
require File.expand_path(file)
6162
end
6263
end
6364

0 commit comments

Comments
 (0)