Skip to content

some more methods#3

Open
hjrocha wants to merge 2 commits into
masterfrom
maybe_some_duplication
Open

some more methods#3
hjrocha wants to merge 2 commits into
masterfrom
maybe_some_duplication

Conversation

@hjrocha
Copy link
Copy Markdown
Collaborator

@hjrocha hjrocha commented Oct 12, 2019

No description provided.

@hjrocha hjrocha self-assigned this Oct 12, 2019
@codacy-acme codacy-acme deleted a comment Oct 13, 2019
@heliocodacy
Copy link
Copy Markdown
Collaborator

teste comment

@codacy-acme codacy-acme deleted a comment Oct 14, 2019
@codacy-acme codacy-acme deleted a comment Oct 14, 2019
@codacy-acme codacy-acme deleted a comment Oct 14, 2019
@codacy-acme codacy-acme deleted a comment Oct 14, 2019
@codacy-acme codacy-acme deleted a comment Oct 25, 2019
@codacy-acme codacy-acme deleted a comment Oct 30, 2019
@codacy-acme codacy-acme deleted a comment Nov 11, 2019
@codacy-acme codacy-acme deleted a comment from heliocodacy May 15, 2020
Comment thread src/server/lib/example.js
};


exports.pluralize_v2 = function (count, singular, plural) {
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread src/server/lib/example.js
const j = 9
while(j>count){
console.log("counting")
j--
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread src/server/lib/example.js
for(let i = 0; i < count; i++){
const j = 9
while(j>count){
console.log("counting")
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread src/server/lib/person.js
};

let result;
async function foo() {
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread src/server/lib/person.js

};

function foo(a, b, a) {
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread src/server/lib/person.js
console.log("value of the second a:", a);
};

function fn() {
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread src/server/lib/person.js
for (var i = 10; i >= 0; i++) {
}

var x = 5;;
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread src/server/lib/person.js
result = result + doSomething(await somethingElse);
}

function* bar() {
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread src/server/lib/example.js
for(let i = 0; i < count; i++){
const j = 9
while(j>count){
console.log("counting")
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread src/server/lib/example.js
const j = 9
while(j>count){
console.log("counting")
j--
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread src/server/lib/example.js
};

exports.method = function (count) {
for(let i = 0; i < count; i++){
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread src/server/lib/example.js

exports.method = function (count) {
for(let i = 0; i < count; i++){
const j = 9
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread src/server/lib/person.js
};

function foo(a, b, a) {
typeof a === undefined
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread src/server/lib/person.js
@@ -0,0 +1,76 @@
"use strict";
var fs = require("fs");
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Copy Markdown
Collaborator

Codacy Here is an overview of what got changed by this pull request:

Issues
======
- Added 5
           

Clones added
============
- src/server/lib/person.js  1
         

See the complete overview on Codacy

@codacy-acme codacy-acme deleted a comment from hjrocha Mar 2, 2021
@codacy-acme codacy-acme deleted a comment from hjrocha Mar 2, 2021
@codacy-acme codacy-acme deleted a comment from hjrocha Mar 2, 2021
@codacy-acme codacy-acme deleted a comment from hjrocha Mar 2, 2021
@codacy-acme codacy-acme deleted a comment from hjrocha Mar 2, 2021
@codacy-acme codacy-acme deleted a comment from hjrocha Mar 2, 2021
Comment thread src/server/lib/example.js
};

exports.method = function (count) {
for(let i = 0; i < count; i++){
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Replace (let·i·=·0;·i·<·count;·i++) with ·(let·i·=·0;·i·<·count;·i++)·

Suggested change
for(let i = 0; i < count; i++){
for (let i = 0; i < count; i++) {

Comment thread src/server/lib/example.js
exports.method = function (count) {
for(let i = 0; i < count; i++){
const j = 9
while(j>count){
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Replace (j>count) with ·(j·>·count)·

Suggested change
while(j>count){
while (j > count) {

Comment thread src/server/lib/example.js

exports.method = function (count) {
for(let i = 0; i < count; i++){
const j = 9
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Insert ;

Suggested change
const j = 9
const j = 9;

Comment thread src/server/lib/example.js
for(let i = 0; i < count; i++){
const j = 9
while(j>count){
console.log("counting")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Insert ;

Suggested change
console.log("counting")
console.log("counting");

Comment thread src/server/lib/example.js
return `${count} ${plural}`;
};

exports.method = function (count) {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Delete ·

Suggested change
exports.method = function (count) {
exports.method = function (count) {

Comment thread src/server/lib/example.js
const j = 9
while(j>count){
console.log("counting")
j--
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Insert ;

Suggested change
j--
j--;

Comment thread src/server/lib/example.js
exports.method = function (count) {
for(let i = 0; i < count; i++){
const j = 9
while(j>count){
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Replace (j>count) with ·(j·>·count)·

Suggested change
while(j>count){
while (j > count) {

Comment thread src/server/lib/example.js
const j = 9
while(j>count){
console.log("counting")
j--
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Insert ;

Suggested change
j--
j--;

Comment thread src/server/lib/example.js
};

exports.method = function (count) {
for(let i = 0; i < count; i++){
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Replace (let·i·=·0;·i·<·count;·i++) with ·(let·i·=·0;·i·<·count;·i++)·

Suggested change
for(let i = 0; i < count; i++){
for (let i = 0; i < count; i++) {

Comment thread src/server/lib/example.js

exports.method = function (count) {
for(let i = 0; i < count; i++){
const j = 9
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Insert ;

Suggested change
const j = 9
const j = 9;

Comment thread src/server/lib/example.js
for(let i = 0; i < count; i++){
const j = 9
while(j>count){
console.log("counting")
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Insert ;

Suggested change
console.log("counting")
console.log("counting");

Comment thread src/server/lib/example.js
return `${count} ${plural}`;
};

exports.method = function (count) {
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Codacy has a fix for the issue: Delete ·

Suggested change
exports.method = function (count) {
exports.method = function (count) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants