Closed
Bug 1084242
Opened 10 years ago
Closed 9 years ago
Fix hint problems for: shared/js/fb/
Categories
(Firefox OS Graveyard :: Gaia::Shared, defect)
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: ShellHacker, Assigned: ShellHacker)
References
Details
Attachments
(2 files)
Fix the jshint errors in shared/js/fb/
Assignee | ||
Updated•10 years ago
|
Assignee | ||
Comment 1•10 years ago
|
||
I have errors for strict violation in these files because of `this`, How should I go ahead with fixing these ?
Flags: needinfo?(kgrandon)
Comment 2•10 years ago
|
||
(In reply to Sudheesh Singanamalla (:ShellHacker) from comment #1) > I have errors for strict violation in these files because of `this`, How > should I go ahead with fixing these ? Can you upload a pull request and link me to the failing line number?
Flags: needinfo?(kgrandon)
Assignee | ||
Comment 3•10 years ago
|
||
https://github.com/sudheesh001/gaia/blob/01b3991a19f1922f38834aadae80949449747cc9/shared/js/fb/fb_data_reader.js#L8-L9 https://github.com/sudheesh001/gaia/blob/01b3991a19f1922f38834aadae80949449747cc9/shared/js/fb/fb_reader_utils.js#L7-L8 https://github.com/sudheesh001/gaia/blob/01b3991a19f1922f38834aadae80949449747cc9/shared/js/fb/fb_reader_utils.js#L10-L11 https://github.com/sudheesh001/gaia/blob/01b3991a19f1922f38834aadae80949449747cc9/shared/js/fb/fb_reader_utils.js#L309-L310 shared/js/fb/fb_request.js: line 3, col 10, Possible strict violation. shared/js/fb/fb_request.js: line 4, col 1, Possible strict violation. shared/js/fb/fb_request.js: line 8, col 12, Possible strict violation. shared/js/fb/fb_request.js: line 9, col 1, Possible strict violation. the fb_request.js file hasn't been edited hence not committed. Pull request : https://github.com/mozilla-b2g/gaia/pull/25293
Flags: needinfo?(kgrandon)
Comment 4•10 years ago
|
||
Like the other bug, I need to spend some time thinking about a proper pattern to use for fb_request.js. If you'd like, perhaps we can modify this PR to only lint the other two files for now, until we have a nice pattern to use.
Flags: needinfo?(kgrandon)
Assignee | ||
Comment 5•10 years ago
|
||
I've fixed up most of the other problems present in these files on shared/js/fb All the 3 files now only have one type of an error "Possible Strict Violation"
Attachment #8515415 -
Flags: review?(kgrandon)
Comment 6•10 years ago
|
||
Comment on attachment 8515415 [details] [review] https://github.com/mozilla-b2g/gaia/pull/25293 Well this looks good, but we need to get rid of this error before we can land. I wonder, would the jshint: worker option solve this for us? http://www.jshint.com/docs/options/#worker
Attachment #8515415 -
Flags: review?(kgrandon)
Updated•9 years ago
|
Assignee: nobody → sudheesh1995
Comment 7•9 years ago
|
||
Comment 8•9 years ago
|
||
I'm attaching a new un-bitrotted patch based on your original patch here. Going to see what the integration stuff does with this. Thank you for the initial work here, if it looks good we can finally land this.
Comment 9•9 years ago
|
||
Comment on attachment 8600413 [details] [review] [gaia] KevinGrandon:bug_1084242_jshint_shared_fb > mozilla-b2g:master Thanks for the initial work here Sudheesh! I've just rebased your work and applied some small fixes to make jshint happy. I think we should be good to go here now.
Attachment #8600413 -
Flags: review+
Updated•9 years ago
|
Component: Gaia::Build → Gaia::Shared
Keywords: checkin-needed
Updated•9 years ago
|
Keywords: checkin-needed
Comment 10•9 years ago
|
||
Pull request has landed in master: https://github.com/mozilla-b2g/gaia/commit/4f2982eecc48d23bb00ef7dbeb572e5949b9b471
Updated•9 years ago
|
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Assignee | ||
Comment 11•9 years ago
|
||
Great !! :D
You need to log in
before you can comment on or make changes to this bug.
Description
•