@Override
    protected int run() throws Exception {

        if (!Jenkins.get().hasPermission(Jenkins.ADMINISTER)) {
            return -1;
        }

        final Map<Source, String> issues = ConfigurationAsCode.get().checkWith(YamlSource.of(stdin));
        for (Map.Entry<Source, String> entry : issues.entrySet()) {
            stderr.printf("warning: line %d %s", entry.getKey().line, entry.getValue());
        }
        return 0;
    }
@author <a href="mailto:nicolas.deloof@gmail.com">Nicolas De Loof</a>
plugin/src/main/java/io/jenkins/plugins/casc/cli/CheckConfigurationCommand.java