reyesreg / react-todo Goto Github PK
View Code? Open in Web Editor NEWTo-do list app powered by React and Google Spreadsheets
To-do list app powered by React and Google Spreadsheets
The following timestamps were retrieved with a delay of 1 seconds in-between:
Packet 1: 1387470782
Packet 2: 395967527
Risk: Critical
When the execution is not explicitly terminated at the end of a switch case, it continues to execute the statements of the following case. While this is sometimes intentional, it often is a mistake which leads to unexpected behavior.
switch (myVariable) { case 1: foo(); break; case 2: // Both 'doSomething()' and 'doSomethingElse()' will be executed. Is it on purpose ? doSomething(); default: doSomethingElse(); break; }
switch (myVariable) { case 1: foo(); break; case 2: doSomething(); break; default: doSomethingElse(); break; }
This rule is relaxed in the following cases:
switch (myVariable) { case 0: // Empty case used to specify the same behavior for a group of cases. case 1: doSomething(); break; case 2: // Use of return statement return; case 3: // Ends with comment when fall-through is intentional console.log("this case falls through") // fall through case 4: // Use of throw statement throw new IllegalStateException(); case 5: // Use of continue statement continue; default: // For the last case, use of break statement is optional doSomethingElse(); }
End this switch case with an unconditional break, continue, return or throw statement.
Horangi detected this issue on 2018-09-14 07:16:36
The following timestamps were retrieved with a delay of 1 seconds in-between:
Packet 1: 1387470782
Packet 2: 395967527
The following timestamps were retrieved with a delay of 1 seconds in-between:
Packet 1: 1387470782
Packet 2: 395967527
Risk: high
In the absence of enclosing curly braces, the line immediately after a
conditional is the one that is conditionally executed. By both convention and
good practice, such lines are indented. In the absence of both curly braces
and indentation the intent of the original programmer is entirely unclear and
perhaps not actually what is executed. Additionally, such code is highly
likely to be confusing to maintainers.
if (condition) // Noncompliant
doTheThing();
doTheOtherThing();
somethingElseEntirely();
foo();
if (condition)
doTheThing();
doTheOtherThing();
somethingElseEntirely();
foo();
Use curly braces or indentation to denote the code conditionally executed by this "else".
Horangi detected this issue on 2019-04-12 10:15:16.511664
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.