setup: extend check command for code directive