From 48ef17394e077498fe6a0d9b70691e3e832ca995 Mon Sep 17 00:00:00 2001 From: deuce <> Date: Thu, 14 Jan 2016 03:51:13 +0000 Subject: [PATCH] Disable the "The body of a for in should be wrapped in an if statement to filter unwanted properties" warnings by default. This is more for when you're worried that your object may be exitended... a rare situation in Synchronet JavaScript. --- exec/syncjslint.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exec/syncjslint.js b/exec/syncjslint.js index f83a52e518..fecdc250d7 100644 --- a/exec/syncjslint.js +++ b/exec/syncjslint.js @@ -5298,7 +5298,7 @@ function SYNCJSLINT(argc, argv) var paths=[backslash(system.exec_dir),backslash(backslash(system.exec_dir)+'load')]; var all_lines; var index; - var options={cap:true,evil:true,laxbreak:true,newcap:true,nomen:true,undef:true,multiload:true,noradix:true,noescapement:true,poorrelations:true,noliteral:true,noextracomma:true}; + var options={cap:true,evil:true,laxbreak:true,newcap:true,nomen:true,undef:true,multiload:true,noradix:true,noescapement:true,poorrelations:true,noliteral:true,noextracomma:true,forin:true}; var myResult; var tmpVar1; var tmpVar2; -- GitLab