Javascript: Autoformat.

This commit is contained in:
Anders Schack-Mulligen
2019-01-11 11:02:42 +01:00
parent 28261d6787
commit e58094c732
472 changed files with 1723 additions and 1834 deletions

View File

@@ -10,7 +10,7 @@ import Osprey
import RAML
RAMLMethod getSpecification(OspreyMethod om) {
exists (RAMLResource rr, File f, string rPath |
exists(RAMLResource rr, File f, string rPath |
rr.getLocation().getFile() = f and
f = om.getDefinition().getAPI().getSpecFile() and
rPath = om.getResourcePath() and
@@ -20,6 +20,7 @@ RAMLMethod getSpecification(OspreyMethod om) {
}
from MethodResponseSetStatus mrss, RAMLMethod rm
where rm = getSpecification(mrss.getMethod()) and
not exists(rm.getResponse(mrss.getStatusCode()))
where
rm = getSpecification(mrss.getMethod()) and
not exists(rm.getResponse(mrss.getStatusCode()))
select mrss, "Response " + mrss.getStatusCode() + " is not specified by $@.", rm, rm.toString()