From c42c54751d933a6b105a3faa450aa174a2e130ff Mon Sep 17 00:00:00 2001 From: Jeff Widman Date: Thu, 8 Apr 2021 11:00:11 -0700 Subject: [PATCH] Change default scope to DeclScope The `README` says the default scope is `declarations` but the code currently sets it to `toplevel`. So one or the other needs to be adjusted so they are in-sync. We have hit a bunch of false positives with `toplevel` and so would prefer to keep the default at `declarations`. Especially since it's painful to change just that setting as it requires a config file since it's not possible to pass in a dict/map of custom settings as a CLI arg: https://github.com/tetafro/godot/issues/17 --- cmd/godot/main.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/godot/main.go b/cmd/godot/main.go index f1e9513..5f84c5a 100644 --- a/cmd/godot/main.go +++ b/cmd/godot/main.go @@ -20,7 +20,7 @@ var version = "master" const defaultConfigFile = "config.yaml" var defaultSettings = godot.Settings{ - Scope: godot.TopLevelScope, + Scope: godot.DeclScope, Period: true, Capital: false, }