{"id":527,"date":"2018-12-03T21:22:23","date_gmt":"2018-12-03T21:22:23","guid":{"rendered":"https:\/\/thinkcolorful.org\/?p=527"},"modified":"2024-12-13T19:53:08","modified_gmt":"2024-12-13T19:53:08","slug":"outreachy-internship-application-process-part-4-git-gerrit-and-formatting","status":"publish","type":"post","link":"https:\/\/thinkcolorful.org\/?p=527","title":{"rendered":"Outreachy Internship Application Process: Part 4 Git\/Gerrit and Formatting"},"content":{"rendered":"<p>The next challenge is to upload my patch to Gerrit. I followed the guide <a href=\"https:\/\/www.mediawiki.org\/wiki\/Gerrit\/Tutorial\">here<\/a>. It took a while the set the working directory up and add in my new code\/modify the existing code, but I did it and pushed it to code review.<!--more--><\/p>\n<p>Once in review it looked like there were some issues with style\/formatting. I found this guide <a href=\"https:\/\/www.mediawiki.org\/wiki\/Manual:Coding_conventions\/JavaScript\"> Manual:Coding Conventions\/Javascript <\/a> which was helpful and explained to me how eslint works. It was tricky to get it to work locally. I ended up installing eslint globally with <code> sudo npm install -g eslint <\/code> then checking my js files with the command <code>eslint file.js<\/code> or <code>eslint --fix file.js<\/code>.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The next challenge is to upload my patch to Gerrit. I followed the guide here. It took a while&#46;&#46;&#46;<\/p>\n","protected":false},"author":2,"featured_media":1334,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[213],"tags":[],"class_list":["post-527","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-outreachy"],"_links":{"self":[{"href":"https:\/\/thinkcolorful.org\/index.php?rest_route=\/wp\/v2\/posts\/527","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thinkcolorful.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thinkcolorful.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thinkcolorful.org\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/thinkcolorful.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=527"}],"version-history":[{"count":5,"href":"https:\/\/thinkcolorful.org\/index.php?rest_route=\/wp\/v2\/posts\/527\/revisions"}],"predecessor-version":[{"id":1087,"href":"https:\/\/thinkcolorful.org\/index.php?rest_route=\/wp\/v2\/posts\/527\/revisions\/1087"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thinkcolorful.org\/index.php?rest_route=\/wp\/v2\/media\/1334"}],"wp:attachment":[{"href":"https:\/\/thinkcolorful.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=527"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thinkcolorful.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=527"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thinkcolorful.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=527"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}