Comparing version 1.0.0 to 1.0.1
@@ -1,1 +0,1 @@ | ||
{"/Users/jkalis/Pro/QL/Galileo/linter-validator/linter/src/linter.js":{"path":"/Users/jkalis/Pro/QL/Galileo/linter-validator/linter/src/linter.js","s":{"1":1,"2":1,"3":23,"4":23,"5":1,"6":14,"7":14,"8":14,"9":14,"10":23,"11":1,"12":2,"13":2,"14":7,"15":1,"16":7,"17":7,"18":2,"19":1,"20":1,"21":1,"22":10,"23":10,"24":10,"25":10,"26":13,"27":1,"28":9,"29":9,"30":9,"31":9,"32":1,"33":13,"34":13,"35":13,"36":13,"37":1,"38":6,"39":6,"40":6,"41":6,"42":1,"43":1},"b":{"1":[14,0],"2":[14,0],"3":[23,9],"4":[10,1],"5":[13,1],"6":[9,1],"7":[9,5],"8":[6,1],"9":[6,1],"10":[1,0]},"f":{"1":23,"2":14,"3":2,"4":7,"5":7,"6":1,"7":10,"8":13,"9":9,"10":13,"11":6},"fnMap":{"1":{"name":"flattenExamplesAndSchemas","line":36,"loc":{"start":{"line":36,"column":0},"end":{"line":36,"column":44}}},"2":{"name":"flattener","line":40,"loc":{"start":{"line":40,"column":2},"end":{"line":40,"column":32}}},"3":{"name":"Linter","line":69,"loc":{"start":{"line":69,"column":0},"end":{"line":69,"column":25}}},"4":{"name":"lint","line":90,"loc":{"start":{"line":90,"column":14},"end":{"line":90,"column":44}}},"5":{"name":"resolve","line":94,"loc":{"start":{"line":94,"column":4},"end":{"line":94,"column":23}}},"6":{"name":"parseError","line":122,"loc":{"start":{"line":122,"column":2},"end":{"line":122,"column":24}}},"7":{"name":"lintMethod","line":135,"loc":{"start":{"line":135,"column":0},"end":{"line":135,"column":49}}},"8":{"name":"eachMethod","line":145,"loc":{"start":{"line":145,"column":13},"end":{"line":145,"column":39}}},"9":{"name":"lintResource","line":158,"loc":{"start":{"line":158,"column":0},"end":{"line":158,"column":51}}},"10":{"name":"lintResponse","line":182,"loc":{"start":{"line":182,"column":0},"end":{"line":182,"column":57}}},"11":{"name":"lintRoot","line":199,"loc":{"start":{"line":199,"column":0},"end":{"line":199,"column":34}}}},"statementMap":{"1":{"start":{"line":3,"column":0},"end":{"line":8,"column":36}},"2":{"start":{"line":36,"column":0},"end":{"line":54,"column":1}},"3":{"start":{"line":37,"column":2},"end":{"line":37,"column":24}},"4":{"start":{"line":38,"column":2},"end":{"line":38,"column":23}},"5":{"start":{"line":40,"column":2},"end":{"line":50,"column":3}},"6":{"start":{"line":42,"column":4},"end":{"line":44,"column":5}},"7":{"start":{"line":43,"column":6},"end":{"line":43,"column":39}},"8":{"start":{"line":47,"column":4},"end":{"line":49,"column":5}},"9":{"start":{"line":48,"column":6},"end":{"line":48,"column":38}},"10":{"start":{"line":52,"column":2},"end":{"line":53,"column":24}},"11":{"start":{"line":69,"column":0},"end":{"line":125,"column":1}},"12":{"start":{"line":70,"column":2},"end":{"line":71,"column":38}},"13":{"start":{"line":90,"column":2},"end":{"line":102,"column":4}},"14":{"start":{"line":91,"column":4},"end":{"line":91,"column":16}},"15":{"start":{"line":94,"column":4},"end":{"line":96,"column":5}},"16":{"start":{"line":95,"column":6},"end":{"line":95,"column":34}},"17":{"start":{"line":98,"column":4},"end":{"line":101,"column":24}},"18":{"start":{"line":120,"column":2},"end":{"line":120,"column":26}},"19":{"start":{"line":122,"column":2},"end":{"line":124,"column":3}},"20":{"start":{"line":123,"column":4},"end":{"line":123,"column":75}},"21":{"start":{"line":135,"column":0},"end":{"line":148,"column":1}},"22":{"start":{"line":136,"column":2},"end":{"line":136,"column":73}},"23":{"start":{"line":138,"column":2},"end":{"line":138,"column":37}},"24":{"start":{"line":141,"column":2},"end":{"line":141,"column":31}},"25":{"start":{"line":144,"column":2},"end":{"line":147,"column":7}},"26":{"start":{"line":146,"column":6},"end":{"line":146,"column":84}},"27":{"start":{"line":158,"column":0},"end":{"line":171,"column":1}},"28":{"start":{"line":159,"column":2},"end":{"line":159,"column":58}},"29":{"start":{"line":162,"column":2},"end":{"line":162,"column":33}},"30":{"start":{"line":165,"column":2},"end":{"line":166,"column":64}},"31":{"start":{"line":169,"column":2},"end":{"line":170,"column":66}},"32":{"start":{"line":182,"column":0},"end":{"line":190,"column":1}},"33":{"start":{"line":183,"column":2},"end":{"line":183,"column":22}},"34":{"start":{"line":184,"column":2},"end":{"line":184,"column":49}},"35":{"start":{"line":186,"column":2},"end":{"line":186,"column":37}},"36":{"start":{"line":189,"column":2},"end":{"line":189,"column":33}},"37":{"start":{"line":199,"column":0},"end":{"line":208,"column":1}},"38":{"start":{"line":201,"column":2},"end":{"line":201,"column":56}},"39":{"start":{"line":202,"column":2},"end":{"line":202,"column":28}},"40":{"start":{"line":204,"column":2},"end":{"line":204,"column":29}},"41":{"start":{"line":206,"column":2},"end":{"line":207,"column":66}},"42":{"start":{"line":211,"column":0},"end":{"line":213,"column":1}},"43":{"start":{"line":212,"column":2},"end":{"line":212,"column":26}}},"branchMap":{"1":{"line":42,"type":"if","locations":[{"start":{"line":42,"column":4},"end":{"line":42,"column":4}},{"start":{"line":42,"column":4},"end":{"line":42,"column":4},"skip":true}]},"2":{"line":47,"type":"if","locations":[{"start":{"line":47,"column":4},"end":{"line":47,"column":4}},{"start":{"line":47,"column":4},"end":{"line":47,"column":4},"skip":true}]},"3":{"line":52,"type":"binary-expr","locations":[{"start":{"line":52,"column":14},"end":{"line":52,"column":26}},{"start":{"line":52,"column":30},"end":{"line":52,"column":32}}]},"4":{"line":144,"type":"binary-expr","locations":[{"start":{"line":144,"column":14},"end":{"line":144,"column":31}},{"start":{"line":144,"column":35},"end":{"line":144,"column":37}}]},"5":{"line":146,"type":"binary-expr","locations":[{"start":{"line":146,"column":53},"end":{"line":146,"column":76}},{"start":{"line":146,"column":80},"end":{"line":146,"column":82}}]},"6":{"line":165,"type":"binary-expr","locations":[{"start":{"line":165,"column":3},"end":{"line":165,"column":18}},{"start":{"line":165,"column":22},"end":{"line":165,"column":24}}]},"7":{"line":169,"type":"binary-expr","locations":[{"start":{"line":169,"column":3},"end":{"line":169,"column":20}},{"start":{"line":169,"column":24},"end":{"line":169,"column":26}}]},"8":{"line":201,"type":"binary-expr","locations":[{"start":{"line":201,"column":24},"end":{"line":201,"column":39}},{"start":{"line":201,"column":43},"end":{"line":201,"column":55}}]},"9":{"line":206,"type":"binary-expr","locations":[{"start":{"line":206,"column":3},"end":{"line":206,"column":20}},{"start":{"line":206,"column":24},"end":{"line":206,"column":26}}]},"10":{"line":211,"type":"if","locations":[{"start":{"line":211,"column":0},"end":{"line":211,"column":0}},{"start":{"line":211,"column":0},"end":{"line":211,"column":0},"skip":true}]}}},"/Users/jkalis/Pro/QL/Galileo/linter-validator/linter/src/log.js":{"path":"/Users/jkalis/Pro/QL/Galileo/linter-validator/linter/src/log.js","s":{"1":1,"2":1,"3":72,"4":1,"5":51,"6":1,"7":293,"8":1,"9":17,"10":1,"11":74,"12":73,"13":1,"14":17,"15":17,"16":25,"17":17,"18":24,"19":17,"20":1,"21":18,"22":1,"23":1,"24":1},"b":{"1":[293,293],"2":[73,1],"3":[7,17],"4":[1,0]},"f":{"1":72,"2":51,"3":293,"4":17,"5":74,"6":25,"7":24,"8":18},"fnMap":{"1":{"name":"filterEntries","line":6,"loc":{"start":{"line":6,"column":0},"end":{"line":6,"column":37}}},"2":{"name":"instanceLevelMethods","line":12,"loc":{"start":{"line":12,"column":0},"end":{"line":12,"column":46}}},"3":{"name":"isDef","line":23,"loc":{"start":{"line":23,"column":0},"end":{"line":23,"column":20}}},"4":{"name":"Log","line":37,"loc":{"start":{"line":37,"column":0},"end":{"line":37,"column":15}}},"5":{"name":"addEntry","line":68,"loc":{"start":{"line":68,"column":2},"end":{"line":68,"column":59}}},"6":{"name":"emptyStack","line":120,"loc":{"start":{"line":120,"column":15},"end":{"line":120,"column":37}}},"7":{"name":"readLog","line":130,"loc":{"start":{"line":130,"column":14},"end":{"line":130,"column":38}}},"8":{"name":"getLevels","line":150,"loc":{"start":{"line":150,"column":16},"end":{"line":150,"column":37}}}},"statementMap":{"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":36}},"2":{"start":{"line":6,"column":0},"end":{"line":9,"column":1}},"3":{"start":{"line":8,"column":2},"end":{"line":8,"column":43}},"4":{"start":{"line":12,"column":0},"end":{"line":14,"column":1}},"5":{"start":{"line":13,"column":2},"end":{"line":13,"column":41}},"6":{"start":{"line":23,"column":0},"end":{"line":26,"column":1}},"7":{"start":{"line":25,"column":2},"end":{"line":25,"column":43}},"8":{"start":{"line":37,"column":0},"end":{"line":137,"column":1}},"9":{"start":{"line":38,"column":2},"end":{"line":38,"column":12}},"10":{"start":{"line":68,"column":2},"end":{"line":81,"column":3}},"11":{"start":{"line":69,"column":4},"end":{"line":80,"column":5}},"12":{"start":{"line":70,"column":6},"end":{"line":77,"column":11}},"13":{"start":{"line":79,"column":6},"end":{"line":79,"column":80}},"14":{"start":{"line":113,"column":2},"end":{"line":114,"column":56}},"15":{"start":{"line":120,"column":2},"end":{"line":122,"column":4}},"16":{"start":{"line":121,"column":4},"end":{"line":121,"column":15}},"17":{"start":{"line":130,"column":2},"end":{"line":134,"column":4}},"18":{"start":{"line":132,"column":4},"end":{"line":133,"column":48}},"19":{"start":{"line":136,"column":2},"end":{"line":136,"column":15}},"20":{"start":{"line":150,"column":0},"end":{"line":153,"column":2}},"21":{"start":{"line":152,"column":2},"end":{"line":152,"column":38}},"22":{"start":{"line":160,"column":0},"end":{"line":160,"column":40}},"23":{"start":{"line":163,"column":0},"end":{"line":165,"column":1}},"24":{"start":{"line":164,"column":2},"end":{"line":164,"column":23}}},"branchMap":{"1":{"line":25,"type":"binary-expr","locations":[{"start":{"line":25,"column":9},"end":{"line":25,"column":21}},{"start":{"line":25,"column":25},"end":{"line":25,"column":42}}]},"2":{"line":69,"type":"if","locations":[{"start":{"line":69,"column":4},"end":{"line":69,"column":4}},{"start":{"line":69,"column":4},"end":{"line":69,"column":4}}]},"3":{"line":132,"type":"cond-expr","locations":[{"start":{"line":132,"column":20},"end":{"line":132,"column":25}},{"start":{"line":132,"column":29},"end":{"line":133,"column":46}}]},"4":{"line":163,"type":"if","locations":[{"start":{"line":163,"column":0},"end":{"line":163,"column":0}},{"start":{"line":163,"column":0},"end":{"line":163,"column":0},"skip":true}]}}},"/Users/jkalis/Pro/QL/Galileo/linter-validator/linter/src/typeOf.js":{"path":"/Users/jkalis/Pro/QL/Galileo/linter-validator/linter/src/typeOf.js","s":{"1":1,"2":1,"3":245,"4":245,"5":1,"6":243,"7":1,"8":1},"b":{"1":[2,243],"2":[121,124],"3":[1,0]},"f":{"1":245,"2":243},"fnMap":{"1":{"name":"typeOf","line":16,"loc":{"start":{"line":16,"column":0},"end":{"line":16,"column":27}}},"2":{"name":"strip","line":29,"loc":{"start":{"line":29,"column":0},"end":{"line":29,"column":20}}}},"statementMap":{"1":{"start":{"line":3,"column":0},"end":{"line":4,"column":67}},"2":{"start":{"line":16,"column":0},"end":{"line":20,"column":1}},"3":{"start":{"line":17,"column":2},"end":{"line":17,"column":62}},"4":{"start":{"line":19,"column":2},"end":{"line":19,"column":59}},"5":{"start":{"line":29,"column":0},"end":{"line":32,"column":1}},"6":{"start":{"line":31,"column":2},"end":{"line":31,"column":43}},"7":{"start":{"line":35,"column":0},"end":{"line":37,"column":1}},"8":{"start":{"line":36,"column":2},"end":{"line":36,"column":26}}},"branchMap":{"1":{"line":17,"type":"cond-expr","locations":[{"start":{"line":17,"column":34},"end":{"line":17,"column":42}},{"start":{"line":17,"column":45},"end":{"line":17,"column":61}}]},"2":{"line":19,"type":"cond-expr","locations":[{"start":{"line":19,"column":34},"end":{"line":19,"column":40}},{"start":{"line":19,"column":43},"end":{"line":19,"column":58}}]},"3":{"line":35,"type":"if","locations":[{"start":{"line":35,"column":0},"end":{"line":35,"column":0}},{"start":{"line":35,"column":0},"end":{"line":35,"column":0},"skip":true}]}}},"/Users/jkalis/Pro/QL/Galileo/linter-validator/linter/src/rules.js":{"path":"/Users/jkalis/Pro/QL/Galileo/linter-validator/linter/src/rules.js","s":{"1":1,"2":1,"3":1,"4":32,"5":52,"6":43,"7":9,"8":1,"9":11,"10":11,"11":11,"12":1,"13":20,"14":20,"15":1,"16":1,"17":19,"18":20,"19":1,"20":20,"21":1,"22":104,"23":104,"24":1,"25":98,"26":98,"27":20,"28":20,"29":6,"30":20,"31":78,"32":98,"33":1,"34":2,"35":8,"36":8,"37":2,"38":1,"39":38,"40":1,"41":99,"42":1,"43":98,"44":10,"45":38,"46":1,"47":1},"b":{"1":[32,20],"2":[1,19],"3":[20,10],"4":[1,19],"5":[104,104],"6":[20,78],"7":[6,14],"8":[20,20],"9":[1,98],"10":[10,88],"11":[1,0]},"f":{"1":52,"2":32,"3":43,"4":9,"5":11,"6":20,"7":104,"8":98,"9":20,"10":2,"11":8,"12":38,"13":99},"fnMap":{"1":{"name":"execArray","line":55,"loc":{"start":{"line":55,"column":11},"end":{"line":55,"column":43}}},"2":{"name":"every","line":56,"loc":{"start":{"line":56,"column":4},"end":{"line":56,"column":29}}},"3":{"name":"execBoolean","line":63,"loc":{"start":{"line":63,"column":13},"end":{"line":63,"column":47}}},"4":{"name":"execRegExp","line":67,"loc":{"start":{"line":67,"column":12},"end":{"line":67,"column":45}}},"5":{"name":"format","line":81,"loc":{"start":{"line":81,"column":0},"end":{"line":81,"column":31}}},"6":{"name":"mapRules","line":100,"loc":{"start":{"line":100,"column":0},"end":{"line":100,"column":33}}},"7":{"name":"passes","line":125,"loc":{"start":{"line":125,"column":0},"end":{"line":125,"column":29}}},"8":{"name":"passing","line":139,"loc":{"start":{"line":139,"column":0},"end":{"line":139,"column":32}}},"9":{"name":"prereqReduce","line":144,"loc":{"start":{"line":144,"column":14},"end":{"line":144,"column":46}}},"10":{"name":"Rules","line":166,"loc":{"start":{"line":166,"column":0},"end":{"line":166,"column":32}}},"11":{"name":"sections","line":168,"loc":{"start":{"line":168,"column":12},"end":{"line":168,"column":45}}},"12":{"name":"runRules","line":184,"loc":{"start":{"line":184,"column":22},"end":{"line":184,"column":58}}},"13":{"name":"eachRule","line":188,"loc":{"start":{"line":188,"column":2},"end":{"line":188,"column":26}}}},"statementMap":{"1":{"start":{"line":3,"column":0},"end":{"line":6,"column":14}},"2":{"start":{"line":54,"column":0},"end":{"line":71,"column":2}},"3":{"start":{"line":56,"column":4},"end":{"line":59,"column":5}},"4":{"start":{"line":58,"column":6},"end":{"line":58,"column":42}},"5":{"start":{"line":61,"column":4},"end":{"line":61,"column":81}},"6":{"start":{"line":65,"column":4},"end":{"line":65,"column":19}},"7":{"start":{"line":69,"column":4},"end":{"line":69,"column":28}},"8":{"start":{"line":81,"column":0},"end":{"line":90,"column":1}},"9":{"start":{"line":82,"column":2},"end":{"line":82,"column":13}},"10":{"start":{"line":84,"column":2},"end":{"line":87,"column":29}},"11":{"start":{"line":89,"column":2},"end":{"line":89,"column":16}},"12":{"start":{"line":100,"column":0},"end":{"line":115,"column":1}},"13":{"start":{"line":101,"column":2},"end":{"line":101,"column":13}},"14":{"start":{"line":103,"column":2},"end":{"line":108,"column":3}},"15":{"start":{"line":104,"column":4},"end":{"line":104,"column":46}},"16":{"start":{"line":105,"column":4},"end":{"line":105,"column":35}},"17":{"start":{"line":107,"column":4},"end":{"line":107,"column":18}},"18":{"start":{"line":110,"column":2},"end":{"line":112,"column":3}},"19":{"start":{"line":111,"column":4},"end":{"line":111,"column":42}},"20":{"start":{"line":114,"column":2},"end":{"line":114,"column":16}},"21":{"start":{"line":125,"column":0},"end":{"line":129,"column":1}},"22":{"start":{"line":126,"column":2},"end":{"line":126,"column":26}},"23":{"start":{"line":128,"column":2},"end":{"line":128,"column":59}},"24":{"start":{"line":139,"column":0},"end":{"line":156,"column":1}},"25":{"start":{"line":140,"column":2},"end":{"line":140,"column":13}},"26":{"start":{"line":142,"column":2},"end":{"line":153,"column":3}},"27":{"start":{"line":143,"column":4},"end":{"line":150,"column":15}},"28":{"start":{"line":145,"column":8},"end":{"line":147,"column":9}},"29":{"start":{"line":146,"column":10},"end":{"line":146,"column":54}},"30":{"start":{"line":149,"column":8},"end":{"line":149,"column":19}},"31":{"start":{"line":152,"column":4},"end":{"line":152,"column":51}},"32":{"start":{"line":155,"column":2},"end":{"line":155,"column":16}},"33":{"start":{"line":166,"column":0},"end":{"line":176,"column":1}},"34":{"start":{"line":167,"column":2},"end":{"line":173,"column":11}},"35":{"start":{"line":169,"column":6},"end":{"line":170,"column":43}},"36":{"start":{"line":172,"column":6},"end":{"line":172,"column":18}},"37":{"start":{"line":175,"column":2},"end":{"line":175,"column":23}},"38":{"start":{"line":184,"column":0},"end":{"line":200,"column":2}},"39":{"start":{"line":186,"column":2},"end":{"line":186,"column":27}},"40":{"start":{"line":188,"column":2},"end":{"line":196,"column":3}},"41":{"start":{"line":189,"column":4},"end":{"line":195,"column":5}},"42":{"start":{"line":190,"column":6},"end":{"line":190,"column":102}},"43":{"start":{"line":192,"column":6},"end":{"line":194,"column":7}},"44":{"start":{"line":193,"column":8},"end":{"line":193,"column":83}},"45":{"start":{"line":198,"column":2},"end":{"line":199,"column":23}},"46":{"start":{"line":203,"column":0},"end":{"line":205,"column":1}},"47":{"start":{"line":204,"column":2},"end":{"line":204,"column":25}}},"branchMap":{"1":{"line":61,"type":"cond-expr","locations":[{"start":{"line":61,"column":36},"end":{"line":61,"column":53}},{"start":{"line":61,"column":56},"end":{"line":61,"column":80}}]},"2":{"line":103,"type":"if","locations":[{"start":{"line":103,"column":2},"end":{"line":103,"column":2}},{"start":{"line":103,"column":2},"end":{"line":103,"column":2}}]},"3":{"line":103,"type":"binary-expr","locations":[{"start":{"line":103,"column":6},"end":{"line":103,"column":13}},{"start":{"line":103,"column":17},"end":{"line":103,"column":35}}]},"4":{"line":110,"type":"if","locations":[{"start":{"line":110,"column":2},"end":{"line":110,"column":2}},{"start":{"line":110,"column":2},"end":{"line":110,"column":2}}]},"5":{"line":128,"type":"binary-expr","locations":[{"start":{"line":128,"column":9},"end":{"line":128,"column":26}},{"start":{"line":128,"column":30},"end":{"line":128,"column":58}}]},"6":{"line":142,"type":"if","locations":[{"start":{"line":142,"column":2},"end":{"line":142,"column":2}},{"start":{"line":142,"column":2},"end":{"line":142,"column":2}}]},"7":{"line":145,"type":"if","locations":[{"start":{"line":145,"column":8},"end":{"line":145,"column":8}},{"start":{"line":145,"column":8},"end":{"line":145,"column":8}}]},"8":{"line":145,"type":"binary-expr","locations":[{"start":{"line":145,"column":12},"end":{"line":145,"column":15}},{"start":{"line":145,"column":19},"end":{"line":145,"column":57}}]},"9":{"line":189,"type":"if","locations":[{"start":{"line":189,"column":4},"end":{"line":189,"column":4}},{"start":{"line":189,"column":4},"end":{"line":189,"column":4}}]},"10":{"line":192,"type":"if","locations":[{"start":{"line":192,"column":6},"end":{"line":192,"column":6}},{"start":{"line":192,"column":6},"end":{"line":192,"column":6}}]},"11":{"line":203,"type":"if","locations":[{"start":{"line":203,"column":0},"end":{"line":203,"column":0}},{"start":{"line":203,"column":0},"end":{"line":203,"column":0},"skip":true}]}}}} | ||
{"/Users/jkalis/Pro/QL/Galileo/linter-validator/linter/src/linter.js":{"path":"/Users/jkalis/Pro/QL/Galileo/linter-validator/linter/src/linter.js","s":{"1":1,"2":1,"3":23,"4":23,"5":1,"6":14,"7":14,"8":14,"9":14,"10":23,"11":1,"12":2,"13":2,"14":7,"15":1,"16":7,"17":7,"18":2,"19":1,"20":1,"21":1,"22":1,"23":10,"24":10,"25":10,"26":10,"27":13,"28":1,"29":9,"30":9,"31":9,"32":9,"33":1,"34":13,"35":13,"36":13,"37":13,"38":1,"39":6,"40":6,"41":6,"42":6,"43":1,"44":1},"b":{"1":[14,0],"2":[14,0],"3":[23,9],"4":[10,1],"5":[13,1],"6":[9,1],"7":[9,5],"8":[6,1],"9":[6,1],"10":[1,0]},"f":{"1":23,"2":14,"3":2,"4":7,"5":7,"6":1,"7":10,"8":13,"9":9,"10":13,"11":6},"fnMap":{"1":{"name":"flattenExamplesAndSchemas","line":36,"loc":{"start":{"line":36,"column":0},"end":{"line":36,"column":44}}},"2":{"name":"flattener","line":40,"loc":{"start":{"line":40,"column":2},"end":{"line":40,"column":32}}},"3":{"name":"Linter","line":69,"loc":{"start":{"line":69,"column":0},"end":{"line":69,"column":25}}},"4":{"name":"lint","line":90,"loc":{"start":{"line":90,"column":14},"end":{"line":90,"column":44}}},"5":{"name":"resolve","line":94,"loc":{"start":{"line":94,"column":4},"end":{"line":94,"column":23}}},"6":{"name":"parseError","line":122,"loc":{"start":{"line":122,"column":2},"end":{"line":122,"column":29}}},"7":{"name":"lintMethod","line":136,"loc":{"start":{"line":136,"column":0},"end":{"line":136,"column":49}}},"8":{"name":"eachMethod","line":146,"loc":{"start":{"line":146,"column":13},"end":{"line":146,"column":39}}},"9":{"name":"lintResource","line":159,"loc":{"start":{"line":159,"column":0},"end":{"line":159,"column":51}}},"10":{"name":"lintResponse","line":183,"loc":{"start":{"line":183,"column":0},"end":{"line":183,"column":57}}},"11":{"name":"lintRoot","line":200,"loc":{"start":{"line":200,"column":0},"end":{"line":200,"column":34}}}},"statementMap":{"1":{"start":{"line":3,"column":0},"end":{"line":8,"column":36}},"2":{"start":{"line":36,"column":0},"end":{"line":54,"column":1}},"3":{"start":{"line":37,"column":2},"end":{"line":37,"column":24}},"4":{"start":{"line":38,"column":2},"end":{"line":38,"column":23}},"5":{"start":{"line":40,"column":2},"end":{"line":50,"column":3}},"6":{"start":{"line":42,"column":4},"end":{"line":44,"column":5}},"7":{"start":{"line":43,"column":6},"end":{"line":43,"column":39}},"8":{"start":{"line":47,"column":4},"end":{"line":49,"column":5}},"9":{"start":{"line":48,"column":6},"end":{"line":48,"column":38}},"10":{"start":{"line":52,"column":2},"end":{"line":53,"column":24}},"11":{"start":{"line":69,"column":0},"end":{"line":126,"column":1}},"12":{"start":{"line":70,"column":2},"end":{"line":71,"column":38}},"13":{"start":{"line":90,"column":2},"end":{"line":102,"column":4}},"14":{"start":{"line":91,"column":4},"end":{"line":91,"column":16}},"15":{"start":{"line":94,"column":4},"end":{"line":96,"column":5}},"16":{"start":{"line":95,"column":6},"end":{"line":95,"column":34}},"17":{"start":{"line":98,"column":4},"end":{"line":101,"column":24}},"18":{"start":{"line":120,"column":2},"end":{"line":120,"column":26}},"19":{"start":{"line":122,"column":2},"end":{"line":125,"column":3}},"20":{"start":{"line":123,"column":4},"end":{"line":123,"column":19}},"21":{"start":{"line":124,"column":4},"end":{"line":124,"column":75}},"22":{"start":{"line":136,"column":0},"end":{"line":149,"column":1}},"23":{"start":{"line":137,"column":2},"end":{"line":137,"column":73}},"24":{"start":{"line":139,"column":2},"end":{"line":139,"column":37}},"25":{"start":{"line":142,"column":2},"end":{"line":142,"column":31}},"26":{"start":{"line":145,"column":2},"end":{"line":148,"column":7}},"27":{"start":{"line":147,"column":6},"end":{"line":147,"column":84}},"28":{"start":{"line":159,"column":0},"end":{"line":172,"column":1}},"29":{"start":{"line":160,"column":2},"end":{"line":160,"column":58}},"30":{"start":{"line":163,"column":2},"end":{"line":163,"column":33}},"31":{"start":{"line":166,"column":2},"end":{"line":167,"column":64}},"32":{"start":{"line":170,"column":2},"end":{"line":171,"column":66}},"33":{"start":{"line":183,"column":0},"end":{"line":191,"column":1}},"34":{"start":{"line":184,"column":2},"end":{"line":184,"column":22}},"35":{"start":{"line":185,"column":2},"end":{"line":185,"column":49}},"36":{"start":{"line":187,"column":2},"end":{"line":187,"column":37}},"37":{"start":{"line":190,"column":2},"end":{"line":190,"column":33}},"38":{"start":{"line":200,"column":0},"end":{"line":209,"column":1}},"39":{"start":{"line":202,"column":2},"end":{"line":202,"column":56}},"40":{"start":{"line":203,"column":2},"end":{"line":203,"column":28}},"41":{"start":{"line":205,"column":2},"end":{"line":205,"column":29}},"42":{"start":{"line":207,"column":2},"end":{"line":208,"column":66}},"43":{"start":{"line":212,"column":0},"end":{"line":214,"column":1}},"44":{"start":{"line":213,"column":2},"end":{"line":213,"column":26}}},"branchMap":{"1":{"line":42,"type":"if","locations":[{"start":{"line":42,"column":4},"end":{"line":42,"column":4}},{"start":{"line":42,"column":4},"end":{"line":42,"column":4},"skip":true}]},"2":{"line":47,"type":"if","locations":[{"start":{"line":47,"column":4},"end":{"line":47,"column":4}},{"start":{"line":47,"column":4},"end":{"line":47,"column":4},"skip":true}]},"3":{"line":52,"type":"binary-expr","locations":[{"start":{"line":52,"column":14},"end":{"line":52,"column":26}},{"start":{"line":52,"column":30},"end":{"line":52,"column":32}}]},"4":{"line":145,"type":"binary-expr","locations":[{"start":{"line":145,"column":14},"end":{"line":145,"column":31}},{"start":{"line":145,"column":35},"end":{"line":145,"column":37}}]},"5":{"line":147,"type":"binary-expr","locations":[{"start":{"line":147,"column":53},"end":{"line":147,"column":76}},{"start":{"line":147,"column":80},"end":{"line":147,"column":82}}]},"6":{"line":166,"type":"binary-expr","locations":[{"start":{"line":166,"column":3},"end":{"line":166,"column":18}},{"start":{"line":166,"column":22},"end":{"line":166,"column":24}}]},"7":{"line":170,"type":"binary-expr","locations":[{"start":{"line":170,"column":3},"end":{"line":170,"column":20}},{"start":{"line":170,"column":24},"end":{"line":170,"column":26}}]},"8":{"line":202,"type":"binary-expr","locations":[{"start":{"line":202,"column":24},"end":{"line":202,"column":39}},{"start":{"line":202,"column":43},"end":{"line":202,"column":55}}]},"9":{"line":207,"type":"binary-expr","locations":[{"start":{"line":207,"column":3},"end":{"line":207,"column":20}},{"start":{"line":207,"column":24},"end":{"line":207,"column":26}}]},"10":{"line":212,"type":"if","locations":[{"start":{"line":212,"column":0},"end":{"line":212,"column":0}},{"start":{"line":212,"column":0},"end":{"line":212,"column":0},"skip":true}]}}},"/Users/jkalis/Pro/QL/Galileo/linter-validator/linter/src/log.js":{"path":"/Users/jkalis/Pro/QL/Galileo/linter-validator/linter/src/log.js","s":{"1":1,"2":1,"3":73,"4":1,"5":51,"6":1,"7":293,"8":1,"9":17,"10":1,"11":74,"12":73,"13":1,"14":17,"15":17,"16":1,"17":17,"18":25,"19":17,"20":24,"21":17,"22":1,"23":18,"24":1,"25":1,"26":1},"b":{"1":[293,293],"2":[73,1],"3":[7,17],"4":[1,0]},"f":{"1":73,"2":51,"3":293,"4":17,"5":74,"6":1,"7":25,"8":24,"9":18},"fnMap":{"1":{"name":"filterEntries","line":6,"loc":{"start":{"line":6,"column":0},"end":{"line":6,"column":37}}},"2":{"name":"instanceLevelMethods","line":12,"loc":{"start":{"line":12,"column":0},"end":{"line":12,"column":46}}},"3":{"name":"isDef","line":23,"loc":{"start":{"line":23,"column":0},"end":{"line":23,"column":20}}},"4":{"name":"Log","line":37,"loc":{"start":{"line":37,"column":0},"end":{"line":37,"column":15}}},"5":{"name":"addEntry","line":68,"loc":{"start":{"line":68,"column":2},"end":{"line":68,"column":59}}},"6":{"name":"logRaw","line":123,"loc":{"start":{"line":123,"column":13},"end":{"line":123,"column":34}}},"7":{"name":"emptyStack","line":131,"loc":{"start":{"line":131,"column":15},"end":{"line":131,"column":37}}},"8":{"name":"readLog","line":141,"loc":{"start":{"line":141,"column":14},"end":{"line":141,"column":38}}},"9":{"name":"getLevels","line":161,"loc":{"start":{"line":161,"column":16},"end":{"line":161,"column":37}}}},"statementMap":{"1":{"start":{"line":3,"column":0},"end":{"line":3,"column":36}},"2":{"start":{"line":6,"column":0},"end":{"line":9,"column":1}},"3":{"start":{"line":8,"column":2},"end":{"line":8,"column":43}},"4":{"start":{"line":12,"column":0},"end":{"line":14,"column":1}},"5":{"start":{"line":13,"column":2},"end":{"line":13,"column":41}},"6":{"start":{"line":23,"column":0},"end":{"line":26,"column":1}},"7":{"start":{"line":25,"column":2},"end":{"line":25,"column":43}},"8":{"start":{"line":37,"column":0},"end":{"line":148,"column":1}},"9":{"start":{"line":38,"column":2},"end":{"line":38,"column":12}},"10":{"start":{"line":68,"column":2},"end":{"line":81,"column":3}},"11":{"start":{"line":69,"column":4},"end":{"line":80,"column":5}},"12":{"start":{"line":70,"column":6},"end":{"line":77,"column":11}},"13":{"start":{"line":79,"column":6},"end":{"line":79,"column":80}},"14":{"start":{"line":113,"column":2},"end":{"line":114,"column":56}},"15":{"start":{"line":123,"column":2},"end":{"line":125,"column":4}},"16":{"start":{"line":124,"column":4},"end":{"line":124,"column":20}},"17":{"start":{"line":131,"column":2},"end":{"line":133,"column":4}},"18":{"start":{"line":132,"column":4},"end":{"line":132,"column":15}},"19":{"start":{"line":141,"column":2},"end":{"line":145,"column":4}},"20":{"start":{"line":143,"column":4},"end":{"line":144,"column":48}},"21":{"start":{"line":147,"column":2},"end":{"line":147,"column":15}},"22":{"start":{"line":161,"column":0},"end":{"line":164,"column":2}},"23":{"start":{"line":163,"column":2},"end":{"line":163,"column":38}},"24":{"start":{"line":171,"column":0},"end":{"line":171,"column":40}},"25":{"start":{"line":174,"column":0},"end":{"line":176,"column":1}},"26":{"start":{"line":175,"column":2},"end":{"line":175,"column":23}}},"branchMap":{"1":{"line":25,"type":"binary-expr","locations":[{"start":{"line":25,"column":9},"end":{"line":25,"column":21}},{"start":{"line":25,"column":25},"end":{"line":25,"column":42}}]},"2":{"line":69,"type":"if","locations":[{"start":{"line":69,"column":4},"end":{"line":69,"column":4}},{"start":{"line":69,"column":4},"end":{"line":69,"column":4}}]},"3":{"line":143,"type":"cond-expr","locations":[{"start":{"line":143,"column":20},"end":{"line":143,"column":25}},{"start":{"line":143,"column":29},"end":{"line":144,"column":46}}]},"4":{"line":174,"type":"if","locations":[{"start":{"line":174,"column":0},"end":{"line":174,"column":0}},{"start":{"line":174,"column":0},"end":{"line":174,"column":0},"skip":true}]}}},"/Users/jkalis/Pro/QL/Galileo/linter-validator/linter/src/typeOf.js":{"path":"/Users/jkalis/Pro/QL/Galileo/linter-validator/linter/src/typeOf.js","s":{"1":1,"2":1,"3":245,"4":245,"5":1,"6":243,"7":1,"8":1},"b":{"1":[2,243],"2":[121,124],"3":[1,0]},"f":{"1":245,"2":243},"fnMap":{"1":{"name":"typeOf","line":16,"loc":{"start":{"line":16,"column":0},"end":{"line":16,"column":27}}},"2":{"name":"strip","line":29,"loc":{"start":{"line":29,"column":0},"end":{"line":29,"column":20}}}},"statementMap":{"1":{"start":{"line":3,"column":0},"end":{"line":4,"column":67}},"2":{"start":{"line":16,"column":0},"end":{"line":20,"column":1}},"3":{"start":{"line":17,"column":2},"end":{"line":17,"column":62}},"4":{"start":{"line":19,"column":2},"end":{"line":19,"column":59}},"5":{"start":{"line":29,"column":0},"end":{"line":32,"column":1}},"6":{"start":{"line":31,"column":2},"end":{"line":31,"column":43}},"7":{"start":{"line":35,"column":0},"end":{"line":37,"column":1}},"8":{"start":{"line":36,"column":2},"end":{"line":36,"column":26}}},"branchMap":{"1":{"line":17,"type":"cond-expr","locations":[{"start":{"line":17,"column":34},"end":{"line":17,"column":42}},{"start":{"line":17,"column":45},"end":{"line":17,"column":61}}]},"2":{"line":19,"type":"cond-expr","locations":[{"start":{"line":19,"column":34},"end":{"line":19,"column":40}},{"start":{"line":19,"column":43},"end":{"line":19,"column":58}}]},"3":{"line":35,"type":"if","locations":[{"start":{"line":35,"column":0},"end":{"line":35,"column":0}},{"start":{"line":35,"column":0},"end":{"line":35,"column":0},"skip":true}]}}},"/Users/jkalis/Pro/QL/Galileo/linter-validator/linter/src/rules.js":{"path":"/Users/jkalis/Pro/QL/Galileo/linter-validator/linter/src/rules.js","s":{"1":1,"2":1,"3":1,"4":32,"5":52,"6":43,"7":9,"8":1,"9":11,"10":11,"11":11,"12":1,"13":20,"14":20,"15":1,"16":1,"17":19,"18":20,"19":1,"20":20,"21":1,"22":104,"23":104,"24":1,"25":98,"26":98,"27":20,"28":20,"29":6,"30":20,"31":78,"32":98,"33":1,"34":2,"35":8,"36":8,"37":2,"38":1,"39":38,"40":1,"41":99,"42":1,"43":98,"44":10,"45":38,"46":1,"47":1},"b":{"1":[32,20],"2":[1,19],"3":[20,10],"4":[1,19],"5":[104,104],"6":[20,78],"7":[6,14],"8":[20,20],"9":[1,98],"10":[10,88],"11":[1,0]},"f":{"1":52,"2":32,"3":43,"4":9,"5":11,"6":20,"7":104,"8":98,"9":20,"10":2,"11":8,"12":38,"13":99},"fnMap":{"1":{"name":"execArray","line":55,"loc":{"start":{"line":55,"column":11},"end":{"line":55,"column":43}}},"2":{"name":"every","line":56,"loc":{"start":{"line":56,"column":4},"end":{"line":56,"column":29}}},"3":{"name":"execBoolean","line":63,"loc":{"start":{"line":63,"column":13},"end":{"line":63,"column":47}}},"4":{"name":"execRegExp","line":67,"loc":{"start":{"line":67,"column":12},"end":{"line":67,"column":45}}},"5":{"name":"format","line":81,"loc":{"start":{"line":81,"column":0},"end":{"line":81,"column":31}}},"6":{"name":"mapRules","line":100,"loc":{"start":{"line":100,"column":0},"end":{"line":100,"column":33}}},"7":{"name":"passes","line":125,"loc":{"start":{"line":125,"column":0},"end":{"line":125,"column":29}}},"8":{"name":"passing","line":139,"loc":{"start":{"line":139,"column":0},"end":{"line":139,"column":32}}},"9":{"name":"prereqReduce","line":144,"loc":{"start":{"line":144,"column":14},"end":{"line":144,"column":46}}},"10":{"name":"Rules","line":166,"loc":{"start":{"line":166,"column":0},"end":{"line":166,"column":32}}},"11":{"name":"sections","line":168,"loc":{"start":{"line":168,"column":12},"end":{"line":168,"column":45}}},"12":{"name":"runRules","line":184,"loc":{"start":{"line":184,"column":22},"end":{"line":184,"column":58}}},"13":{"name":"eachRule","line":188,"loc":{"start":{"line":188,"column":2},"end":{"line":188,"column":26}}}},"statementMap":{"1":{"start":{"line":3,"column":0},"end":{"line":6,"column":14}},"2":{"start":{"line":54,"column":0},"end":{"line":71,"column":2}},"3":{"start":{"line":56,"column":4},"end":{"line":59,"column":5}},"4":{"start":{"line":58,"column":6},"end":{"line":58,"column":42}},"5":{"start":{"line":61,"column":4},"end":{"line":61,"column":81}},"6":{"start":{"line":65,"column":4},"end":{"line":65,"column":19}},"7":{"start":{"line":69,"column":4},"end":{"line":69,"column":28}},"8":{"start":{"line":81,"column":0},"end":{"line":90,"column":1}},"9":{"start":{"line":82,"column":2},"end":{"line":82,"column":13}},"10":{"start":{"line":84,"column":2},"end":{"line":87,"column":29}},"11":{"start":{"line":89,"column":2},"end":{"line":89,"column":16}},"12":{"start":{"line":100,"column":0},"end":{"line":115,"column":1}},"13":{"start":{"line":101,"column":2},"end":{"line":101,"column":13}},"14":{"start":{"line":103,"column":2},"end":{"line":108,"column":3}},"15":{"start":{"line":104,"column":4},"end":{"line":104,"column":46}},"16":{"start":{"line":105,"column":4},"end":{"line":105,"column":35}},"17":{"start":{"line":107,"column":4},"end":{"line":107,"column":18}},"18":{"start":{"line":110,"column":2},"end":{"line":112,"column":3}},"19":{"start":{"line":111,"column":4},"end":{"line":111,"column":42}},"20":{"start":{"line":114,"column":2},"end":{"line":114,"column":16}},"21":{"start":{"line":125,"column":0},"end":{"line":129,"column":1}},"22":{"start":{"line":126,"column":2},"end":{"line":126,"column":26}},"23":{"start":{"line":128,"column":2},"end":{"line":128,"column":59}},"24":{"start":{"line":139,"column":0},"end":{"line":156,"column":1}},"25":{"start":{"line":140,"column":2},"end":{"line":140,"column":13}},"26":{"start":{"line":142,"column":2},"end":{"line":153,"column":3}},"27":{"start":{"line":143,"column":4},"end":{"line":150,"column":15}},"28":{"start":{"line":145,"column":8},"end":{"line":147,"column":9}},"29":{"start":{"line":146,"column":10},"end":{"line":146,"column":54}},"30":{"start":{"line":149,"column":8},"end":{"line":149,"column":19}},"31":{"start":{"line":152,"column":4},"end":{"line":152,"column":51}},"32":{"start":{"line":155,"column":2},"end":{"line":155,"column":16}},"33":{"start":{"line":166,"column":0},"end":{"line":176,"column":1}},"34":{"start":{"line":167,"column":2},"end":{"line":173,"column":11}},"35":{"start":{"line":169,"column":6},"end":{"line":170,"column":43}},"36":{"start":{"line":172,"column":6},"end":{"line":172,"column":18}},"37":{"start":{"line":175,"column":2},"end":{"line":175,"column":23}},"38":{"start":{"line":184,"column":0},"end":{"line":200,"column":2}},"39":{"start":{"line":186,"column":2},"end":{"line":186,"column":27}},"40":{"start":{"line":188,"column":2},"end":{"line":196,"column":3}},"41":{"start":{"line":189,"column":4},"end":{"line":195,"column":5}},"42":{"start":{"line":190,"column":6},"end":{"line":190,"column":102}},"43":{"start":{"line":192,"column":6},"end":{"line":194,"column":7}},"44":{"start":{"line":193,"column":8},"end":{"line":193,"column":83}},"45":{"start":{"line":198,"column":2},"end":{"line":199,"column":23}},"46":{"start":{"line":203,"column":0},"end":{"line":205,"column":1}},"47":{"start":{"line":204,"column":2},"end":{"line":204,"column":25}}},"branchMap":{"1":{"line":61,"type":"cond-expr","locations":[{"start":{"line":61,"column":36},"end":{"line":61,"column":53}},{"start":{"line":61,"column":56},"end":{"line":61,"column":80}}]},"2":{"line":103,"type":"if","locations":[{"start":{"line":103,"column":2},"end":{"line":103,"column":2}},{"start":{"line":103,"column":2},"end":{"line":103,"column":2}}]},"3":{"line":103,"type":"binary-expr","locations":[{"start":{"line":103,"column":6},"end":{"line":103,"column":13}},{"start":{"line":103,"column":17},"end":{"line":103,"column":35}}]},"4":{"line":110,"type":"if","locations":[{"start":{"line":110,"column":2},"end":{"line":110,"column":2}},{"start":{"line":110,"column":2},"end":{"line":110,"column":2}}]},"5":{"line":128,"type":"binary-expr","locations":[{"start":{"line":128,"column":9},"end":{"line":128,"column":26}},{"start":{"line":128,"column":30},"end":{"line":128,"column":58}}]},"6":{"line":142,"type":"if","locations":[{"start":{"line":142,"column":2},"end":{"line":142,"column":2}},{"start":{"line":142,"column":2},"end":{"line":142,"column":2}}]},"7":{"line":145,"type":"if","locations":[{"start":{"line":145,"column":8},"end":{"line":145,"column":8}},{"start":{"line":145,"column":8},"end":{"line":145,"column":8}}]},"8":{"line":145,"type":"binary-expr","locations":[{"start":{"line":145,"column":12},"end":{"line":145,"column":15}},{"start":{"line":145,"column":19},"end":{"line":145,"column":57}}]},"9":{"line":189,"type":"if","locations":[{"start":{"line":189,"column":4},"end":{"line":189,"column":4}},{"start":{"line":189,"column":4},"end":{"line":189,"column":4}}]},"10":{"line":192,"type":"if","locations":[{"start":{"line":192,"column":6},"end":{"line":192,"column":6}},{"start":{"line":192,"column":6},"end":{"line":192,"column":6}}]},"11":{"line":203,"type":"if","locations":[{"start":{"line":203,"column":0},"end":{"line":203,"column":0}},{"start":{"line":203,"column":0},"end":{"line":203,"column":0},"skip":true}]}}}} |
{ | ||
"name": "ramllint", | ||
"version": "1.0.0", | ||
"version": "1.0.1", | ||
"description": "RAML Lint", | ||
"author": "Tyler Smith <TylerSmith@quickenloans.com", | ||
"contributors": [ | ||
"Joshua T Kalis <JoshKalis@quickenloans.com>", | ||
"Joshua T Kalis <KalisJoshua@gmail.com>", | ||
"Jorden Lowe <JordenLowe@quickenloans.com>" | ||
@@ -12,6 +12,6 @@ ], | ||
"type": "git", | ||
"url": "http://git/Galileo/ramllint" | ||
"url": "http://github.com/QuickenLoans/ramllint" | ||
}, | ||
"bugs": { | ||
"url": "http://git/Galileo/ramllint/issues" | ||
"url": "http://github.com/QuickenLoans/ramllint/issues" | ||
}, | ||
@@ -18,0 +18,0 @@ "bin": { |
@@ -1,11 +0,11 @@ | ||
[RAML](http://raml.org) does not enforce any style rules on how to consistently | ||
document an API; and that is good because not all projects will need the same | ||
rule enforcement. However, all APIs defined within a group of related APIs - such | ||
as many from a single entity or organization - should be consistent across each. | ||
APIs developed and documented by one team should be consistent with those by | ||
another team. | ||
[RAML](http://raml.org) is a language for modeling RESTful APIs. By design, | ||
it does not enforce any style rules on how to consistently document APIs, | ||
because not all projects will require the same level of rule enforcement. | ||
However, it can often be useful to enforce uniform rules and standards across a | ||
group of related APIs to ensure consistency and uniformity across multiple teams | ||
or business units. | ||
RAML Linter is a static analysis, [linter-like](http://en.wikipedia.org/wiki/Lint_%28software%29), | ||
utility that will enforce rules (optionally) on the RAML created such that | ||
consistency can be more easily maintained. | ||
utility that will enforce rules (optionally) on a given RAML document, ensuring | ||
consistency and quality. | ||
@@ -24,14 +24,11 @@ ## Contributing | ||
This project is trying to keep a high level of code coverage for unit tests. Contributtions | ||
are required to have unit tests provided to explain what is being added as well as | ||
prove compliance with use case. | ||
This project aims to maintain a high level of unit test code coverage. All pull | ||
requests must be accompanied by appropriate test cases, and all tests must pass | ||
in order to be considered for merge. | ||
The basis for rules is stored in `src/defaults.json` and is the location to [add new | ||
rules](NEWRULES.md) as defaults. Projects using the linter to maintain | ||
consistency will be able to provide a customization file which will override the | ||
values in the defauls file. | ||
For detailed rules on contributions, please refer to [CONTRIBUTING.md](CONTRIBUTING.md). | ||
## (`npm`) Scripts | ||
A number of helpful commands have been created in the npm scripts (`package.json`). | ||
Below is a list of commands available via npm (`package.json`). | ||
@@ -53,10 +50,10 @@ + `npm run coverage` - runs all unit tests (Mocha) with code coverage (Istanbul) | ||
There are two ways to use the RAML Linter, as a: library, and as a command line | ||
utility. How you intend to use RAML Lint will dictate which way you use. | ||
There are two ways to use the RAML Linter. either as a library, or as a command | ||
line utility. | ||
### Library | ||
Using the library in code will provide the most flexibility; full access to how | ||
to handle errors as well as reading the full list of results for: 'error', | ||
'warning', and 'info' log entries. | ||
Using the library in code provides the most flexibility, including error | ||
handling and the ability to parse the full results for: `error`, `warning`, and | ||
`info` log entries. | ||
@@ -63,0 +60,0 @@ ``` |
@@ -122,3 +122,4 @@ 'use strict'; | ||
function parseError() { | ||
function parseError(error) { | ||
log.raw(error); | ||
log.error('RAML', 'parse_error', '[parse_error] Parse error.', 'root'); | ||
@@ -125,0 +126,0 @@ } |
@@ -118,2 +118,13 @@ 'use strict'; | ||
* @description | ||
* For use when logging information that will be helpful in debugging but will | ||
* not necessarily be able to give additional information that the normal log | ||
* methods require. | ||
* @arg {any} obj - any object to put into the log | ||
*/ | ||
this.raw = function logRaw(obj) { | ||
stack.push(obj); | ||
}; | ||
/** | ||
* @description | ||
* Reset the list, of entries, to an empty array. | ||
@@ -120,0 +131,0 @@ */ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
2745182
16744
93