我可以保持合成打开位置列表吗?

时间:2016-10-06 13:57:42

标签: vim syntastic

我在很多遗留文件中工作很大,以前的开发人员并不总是遵循正确的风格,因此合成会给我一些我现在不关心的linting错误。我将syntastc置于被动模式并手动检查文件然后关闭位置列表,这很有效。但是,在我手动检查之后,每次我:w,位置列表都会打开并显示以前的错误。我无法想办法防止这种情况发生。有什么建议?

2 个答案:

答案 0 :(得分:7)

可以使用select vwSalesOutH.* from vwSalesOutH inner join DatesImport on vwSalesOutH.DBTypeId=DatesImport.DBTypeId and vwSalesOutH.CustId=DatesImport.CustId where vwSalesOutH.DBTypeId=2 and vwSalesOutH.Date>=DatesImport.Fact_Start and vwSalesOutH.Date<=DatesImport.Fact_End; 阻止位置列表打开。一个非常不引人注目的设置是:

(6179 row(s) affected)
Table 'DatesImport'. Scan count 1, logical reads 2, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
Table 'Workfile'. Scan count 0, logical reads 0, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
Table 'Worktable'. Scan count 0, logical reads 0, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
Table 'SalesOutH'. Scan count 5, logical reads 452, physical reads 0, read-ahead reads 43, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
Table 'SalesOutH'. Scan count 5, logical reads 584, physical reads 0, read-ahead reads 1, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
Table 'SalesOutH'. Scan count 5, logical reads 55717, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
Table 'SalesOutH'. Scan count 5, logical reads 12752, physical reads 0, read-ahead reads 3, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
Table 'SalesOutH'. Scan count 5, logical reads 11834, physical reads 0, read-ahead reads 8, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
Table 'SalesOutH'. Scan count 5, logical reads 11097, physical reads 0, read-ahead reads 10, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
Table 'SalesOutH'. Scan count 5, logical reads 51, physical reads 0, read-ahead reads 13, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.
Table 'Worktable'. Scan count 0, logical reads 0, physical reads 0, read-ahead reads 0, lob logical reads 0, lob physical reads 0, lob read-ahead reads 0.

结合突出显示以更好地查看错误:

syntastic_auto_loc_list=0

答案 1 :(得分:0)

您的.vimrc中是否设置了syntastic_mode_map选项?这可能会影响Syntastic的自动检查方式:

  

在被动模式下,仍然会对文件类型进行自动检查   “active_filetypes”数组(以及“passive_filetypes”被忽略)。在   活动模式,不对任何文件类型进行自动检查   “passive_filetypes”数组(“active_filetypes”被忽略)。