-
Notifications
You must be signed in to change notification settings - Fork 63
fix houndci false alarm about undefined variable #67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Wondering why houndci report error parsing config for jshint only in on-core repo, the same config file in other repos don't have such error. |
bb3c02f to
f215d92
Compare
spec/lib/common/file-loader-spec.js
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why remove 'files"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The files is not referenced anywhere, there will be houndci warning.
|
|
@yyscamper please fix the houndci |
2b1644d to
50462d4
Compare
|
@anhou I tried to fix the houndci error "Error parsing config for: jshint" but failed, I don't know why the houndci reports some error as I uses the same I guess this may be houndci false alarm, but cannot make sure. @benbp any idea for this? |
|
|
I enabled the houndci in my forked repo, I tested not change the .jshintrc, only copy an unitest file, it shows the houndci still complains "Error parsing config for: jshint", please checked this PR: I guess maybe it is the file format problem (dos file / linux file/...), so I find a tool compared the |
50462d4 to
bb4996e
Compare
|
@yyscamper Thanks, 👍 |
|
+1 |
fix houndci false alarm about undefined variable
Validate OBM APIs and Node Patch API
Fix the annoying Hound CI false alarm for undefined variables by adding those variables into the jshint "predef" tables. (previous jshint "globals" options doesn't work well for houndci, but I tested "predef" works well, see my test PR: yyscamper/on-tasks#10)
However, by introducing this change, there will be a new false alarm emerges:
This is caused by you use lodash not via injectable table but directly by require('lodash').
This false alarm usually only happens in "index.js", so it is rare to happen.
@RackHD/corecommitters @WangWinson @iceiilin