0
Coffeelint告訴我,我有隱含的parens。我試圖找出造成這個錯誤的原因。Coffeelint說我有隱含的parens?
#309: Implicit parens are forbidden.
這裏是我的代碼:
((factory) ->
if typeof module == 'object' and module.exports
module.exports = factory
else
factory(Highcharts)
return
)(Highcharts) ->
...
if seriesTypes.map
seriesTypes.map::exportKey = 'name'
if seriesTypes.mapbubble
seriesTypes.mapbubble::exportKey = 'name'
if seriesTypes.treemap
seriesTypes.treemap::exportKey = 'name'
return
###The entire block over code is one function.
任何這給一次機會嗎?
請將您的代碼本身發佈在問題中,而不僅僅是鏈接。你可以[編輯]你的帖子。 – Bergi
什麼問題?我用coffeelint檢查了你的代碼,它說:「你的代碼是免費的!」 –
Coffeelint被設置爲捕捉隱式parens。我不能忽視這些測試,因爲這是針對具有自己標準的應用程序。 @SergeyMetlov –