-
Notifications
You must be signed in to change notification settings - Fork 209
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
[GCI] Standardised Core code comments #1343
[GCI] Standardised Core code comments #1343
Conversation
Codecov Report
@@ Coverage Diff @@
## main #1343 +/- ##
=======================================
Coverage 66.41% 66.41%
=======================================
Files 125 125
Lines 2552 2552
Branches 397 397
=======================================
Hits 1695 1695
Misses 857 857
|
Please check code climate |
Code climate errors are caused due to old code. This needs a dedicated pr
to fix. This CC test is ignored in almost every pr.
…On Mon, 9 Dec, 2019, 9:58 PM Sidharth Bansal, ***@***.***> wrote:
Please check code climate
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1343?email_source=notifications&email_token=AIJI5H2EUIWURDU6TO4NIHTQXZW3XA5CNFSM4JYKNF72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGJZDGI#issuecomment-563319193>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIJI5H6WJFFKPNQEU3OSVZDQXZW3XANCNFSM4JYKNF7Q>
.
|
Omg. That is a breaking mistake. Btw, `Object` is a proper noun in JS.
…On Mon, 9 Dec, 2019, 10:54 PM Sidharth Bansal, ***@***.***> wrote:
***@***.**** requested changes on this pull request.
------------------------------
In src/ImageSequencer.js
<#1343 (comment)>
:
> if (!sequences) {
sequences = {};
- window.localStorage.setItem('sequences', JSON.stringify(sequences));
+ window.localStorage.setItem('sequences', JSON.stringify(sequences)); // Set the localStorage entry as an empty Object by default.
Object -> object
------------------------------
In src/ImageSequencer.js
<#1343 (comment)>
:
> @@ -286,7 +377,7 @@ ImageSequencer = function ImageSequencer(options) {
return {
- //literals and objects
+ // Literals and objects.
No need of full stop for phrases.
Please do it for all prs
------------------------------
In src/ImageSequencer.js
<#1343 (comment)>
:
> @@ -286,7 +377,7 @@ ImageSequencer = function ImageSequencer(options) {
return {
- //literals and objects
+ // Literals and objects.
Use full stop for sentences
------------------------------
In src/modules/_nomodule/PixelManipulation.js
<#1343 (comment)>
:
> @@ -106,7 +114,7 @@ module.exports = function PixelManipulation(image, options) {
const inBrowser = (options.inBrowser) ? 1 : 0;
const test = (process.env.TEST) ? 1 : 0;
if (options.useWasm) {
- if (options.inBrowser) {
+ if (options.inBroHawser) {
You did some mistake here
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1343?email_source=notifications&email_token=AIJI5H5HH655IYGGWIGL6XDQXZ5MDA5CNFSM4JYKNF72YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCOOXQHY#pullrequestreview-329087007>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIJI5HZVBZ6EBZBQE2YPO5DQXZ5MDANCNFSM4JYKNF7Q>
.
|
I'll fix the phrases.
…On Mon, 9 Dec, 2019, 10:55 PM M K, ***@***.***> wrote:
Omg. That is a breaking mistake. Btw, `Object` is a proper noun in JS.
On Mon, 9 Dec, 2019, 10:54 PM Sidharth Bansal, ***@***.***>
wrote:
> ***@***.**** requested changes on this pull request.
> ------------------------------
>
> In src/ImageSequencer.js
> <#1343 (comment)>
> :
>
> > if (!sequences) {
> sequences = {};
> - window.localStorage.setItem('sequences', JSON.stringify(sequences));
> + window.localStorage.setItem('sequences', JSON.stringify(sequences)); // Set the localStorage entry as an empty Object by default.
>
> Object -> object
> ------------------------------
>
> In src/ImageSequencer.js
> <#1343 (comment)>
> :
>
> > @@ -286,7 +377,7 @@ ImageSequencer = function ImageSequencer(options) {
>
>
> return {
> - //literals and objects
> + // Literals and objects.
>
> No need of full stop for phrases.
> Please do it for all prs
> ------------------------------
>
> In src/ImageSequencer.js
> <#1343 (comment)>
> :
>
> > @@ -286,7 +377,7 @@ ImageSequencer = function ImageSequencer(options) {
>
>
> return {
> - //literals and objects
> + // Literals and objects.
>
> Use full stop for sentences
> ------------------------------
>
> In src/modules/_nomodule/PixelManipulation.js
> <#1343 (comment)>
> :
>
> > @@ -106,7 +114,7 @@ module.exports = function PixelManipulation(image, options) {
> const inBrowser = (options.inBrowser) ? 1 : 0;
> const test = (process.env.TEST) ? 1 : 0;
> if (options.useWasm) {
> - if (options.inBrowser) {
> + if (options.inBroHawser) {
>
> You did some mistake here
>
> —
> You are receiving this because you authored the thread.
> Reply to this email directly, view it on GitHub
> <#1343?email_source=notifications&email_token=AIJI5H5HH655IYGGWIGL6XDQXZ5MDA5CNFSM4JYKNF72YY3PNVWWK3TUL52HS4DFWFIHK3DMKJSXC5LFON2FEZLWNFSXPKTDN5WW2ZLOORPWSZGOCOOXQHY#pullrequestreview-329087007>,
> or unsubscribe
> <https://github.com/notifications/unsubscribe-auth/AIJI5HZVBZ6EBZBQE2YPO5DQXZ5MDANCNFSM4JYKNF7Q>
> .
>
|
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.
I think you missed to remove extra full stops from phrases. Kindly remove it too
src/ImageSequencer.js
Outdated
function loadNewModule(name, options) { | ||
|
||
if (!options) { | ||
return this; | ||
|
||
} else if (Array.isArray(options)) { | ||
// contains the array of module and info | ||
// Contains the array of module and info. |
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.
Many extra .
Please correct it
Kindly review prs once yourself too! It will be really helpful to you |
I do review my PRs but I don't seem to find any mistakes. That is what reviewers are meant for I guess. Pointing out others' mistakes (Which I am very good at) 😝 |
Judge your code as if it was written by someone else |
Yeah I know but it usually cannot happen on the same day. Like your mind is
full and you need a bit of a break. I usually can self-review after 24
hours but asking a reviewer to review is better than waiting.
…On Thu, 12 Dec, 2019, 9:59 PM Sidharth Bansal, ***@***.***> wrote:
Judge your code as if it was written by someone else
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#1343?email_source=notifications&email_token=AIJI5H6D2QI3Q3YO2HBZX2LQYJRFNA5CNFSM4JYKNF72YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEGXHGMA#issuecomment-565080880>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AIJI5H4TLQXJIRMV6TMDGVDQYJRFNANCNFSM4JYKNF7Q>
.
|
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.
Kindly remove . wherever mentioned.
Thanks
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.
@jywarren kindly merge it
Thanks a lot Harsh!
Superb work. Let me know if any other doc issue needs to be reviewed or if you need approval for this gci task on the dashboard
Resolved conflict and will merge when done! Thanks! |
Hooray!! |
* standardise comments * fix * fixes * add docs links * remove extra . * ., this and other changes
Fixes #1340 (<=== Replace
0000
with the Issue Number)Make sure these boxes are checked before your pull request (PR) is ready to be reviewed and merged. Thanks!
npm test
@publiclab/is-reviewers
for help, in a comment belowIf tests do fail, click on the red
X
to learn why by reading the logs.Please be sure you've reviewed our contribution guidelines at https://publiclab.org/contributing-to-public-lab-software
Please make sure to get at least two reviews before asking for merging the PR as that would make the PR more reliable on our part
Thanks!