karsten / modularity / fedmod

Forked from modularity/fedmod 6 years ago
Clone

86e6a12 load and process the file in linter methods

Authored and Committed by nphilipp 6 years ago
    load and process the file in linter methods
    
    Loads and processes the file data in three steps:
    
    1. Read the file and verify its encoding is UTF-8
    2. Attempt to parse as YAML.
    3. Verify it conforms to the basic ModuleMD YAML structure.
    
    All further linting will depend on these, so we can bail out early.
    
        
file modified
+46 -10