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)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: ShellHacker, Assigned: ShellHacker)

References

Details

Attachments

(2 files)

Fix the jshint errors in shared/js/fb/
Blocks: 992674
No longer depends on: 992674
I have errors for strict violation in these files because of `this`, How should I go ahead with fixing these ?
Flags: needinfo?(kgrandon)
(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)
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)
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)
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 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)
Assignee: nobody → sudheesh1995
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 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+
Component: Gaia::Build → Gaia::Shared
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Great !! :D
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: