Set validator scope to compile.