Skip to content
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

JSHint and JSCS mwEmbed codebase #1270

Open
hartman opened this issue Dec 8, 2014 · 2 comments
Open

JSHint and JSCS mwEmbed codebase #1270

hartman opened this issue Dec 8, 2014 · 2 comments
Assignees
Milestone

Comments

@hartman
Copy link

hartman commented Dec 8, 2014

There is a statement in the readme that the code follows mediawiki code conventions, but that is far from true :)

I have started a jscleanup branch on hartman/mwEmbed with that exact goal in mind. I have so far taken care of initial setup and making TimedText pass this setup. The final goal for me is to improve the next attempt of bringing the MW and Kaltura versions closer together again and easier to maintain.

@hartman
Copy link
Author

hartman commented Dec 8, 2014

TODO list of non-obvious/dangerous jshint problems in my 'cleaned' branch.

modules/TimedText/resources/mw.TextSource.js: line 80, col 17, Do not use 'new' for side effects.

modules/MwEmbedSupport/jquery/jquery.mwMessage.js: line 80, col 72, 'match' is not defined.

modules/MwEmbedSupport/jquery.loadingSpinner/jquery.loadingSpinner.js: line 81, col 35, Variables should not be deleted.

modules/MwEmbedSupport/mediawiki/mediawiki.UtilitiesUrl.js: line 37, col 50, 'src' is not defined.

modules/MwEmbedSupport/mw.MwEmbedSupport.js: line 195, col 13, Do not use 'new' for side effects.

@itaykinnrot
Copy link
Contributor

Thanks @hartman
I'm adding @OrenMe (one of our developers) who will help to include the jshint to our build.

@itaykinnrot itaykinnrot added this to the 2.26 milestone Jan 8, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

3 participants