• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

common-workflow-language / cwljava / #394

31 Oct 2025 04:10PM UTC coverage: 57.972% (-1.6%) from 59.538%
#394

push

github

mr-c
rename package to a namespace that we control

7575 of 12994 new or added lines in 261 files covered. (58.3%)

7752 of 13372 relevant lines covered (57.97%)

0.58 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/main/java/org/commonwl/cwlsdk/cwl1_2/utils/Validator.java
1
package org.commonwl.cwlsdk.cwl1_2.utils;
2

3
import java.io.File;
4
import org.snakeyaml.engine.v2.api.Dump;
5
import org.snakeyaml.engine.v2.api.DumpSettings;
6
import org.snakeyaml.engine.v2.common.ScalarStyle;
7

8
import com.fasterxml.jackson.annotation.JsonInclude.Include;
9
import com.fasterxml.jackson.databind.ObjectMapper;
10

NEW
11
public class Validator {
×
12
        public static void main(final String[] args) throws Exception {
NEW
13
                if (args.length != 1) {
×
NEW
14
                        throw new Exception("No argument supplied to validate.");
×
15
                }
16
                // TODO: allow URLs and such.
NEW
17
                final File uri = new File(args[0]);
×
NEW
18
                Object doc = RootLoader.loadDocument(uri);
×
NEW
19
                ObjectMapper mapper = new ObjectMapper();
×
NEW
20
                mapper.setSerializationInclusion(Include.NON_NULL).writerWithDefaultPrettyPrinter().writeValue(System.out, doc);
×
NEW
21
                System.out.println();
×
22

NEW
23
        }
×
24
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc