-
Notifications
You must be signed in to change notification settings - Fork 0
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
new file on both envs #5
base: main
Are you sure you want to change the base?
Conversation
@@ -0,0 +1,3 @@ | |||
if(foo === "bar") { | |||
console.log('something new for real2') |
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.
Codacy has a fix for the issue: Strings must use doublequote.
console.log('something new for real2') | |
console.log("something new for real2") |
@@ -0,0 +1,4 @@ | |||
if(foo === "bar") { |
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.
Codacy has a fix for the issue: Insert ·
if(foo === "bar") { | |
if (foo === "bar") { |
@@ -0,0 +1,4 @@ | |||
if(foo === "bar") { | |||
console.log('something new for real2') | |||
console.log('something new for real3') |
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.
Codacy has a fix for the issue: Replace 'something·new·for·real3')
with "something·new·for·real3");
console.log('something new for real3') | |
console.log("something new for real3"); |
@@ -0,0 +1,4 @@ | |||
if(foo === "bar") { | |||
console.log('something new for real2') |
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.
Codacy has a fix for the issue: Replace 'something·new·for·real2')
with "something·new·for·real2");
console.log('something new for real2') | |
console.log("something new for real2"); |
@@ -0,0 +1,4 @@ | |||
if(foo === "bar") { |
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.
Codacy has a fix for the issue: Insert ·
if(foo === "bar") { | |
if (foo === "bar") { |
@@ -0,0 +1,4 @@ | |||
if(foo === "bar") { | |||
console.log('something new for real2') | |||
console.log('something new for real3') |
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.
Codacy has a fix for the issue: Replace 'something·new·for·real3')
with "something·new·for·real3");
console.log('something new for real3') | |
console.log("something new for real3"); |
@@ -0,0 +1,4 @@ | |||
if(foo === "bar") { | |||
console.log('something new for real2') |
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.
Codacy has a fix for the issue: Replace 'something·new·for·real2')
with "something·new·for·real2");
console.log('something new for real2') | |
console.log("something new for real2"); |
@@ -0,0 +1,4 @@ | |||
if(foo === "bar") { | |||
console.log('something new for real2') | |||
console.log('something new for real3') |
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.
Codacy has a fix for the issue: Unexpected console statement.
console.log('something new for real3') | |
@@ -0,0 +1,4 @@ | |||
if(foo === "bar") { | |||
console.log('something new for real2') |
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.
Codacy has a fix for the issue: Unexpected console statement.
console.log('something new for real2') | |
@@ -0,0 +1,4 @@ | |||
if(foo === "bar") { | |||
console.log('something new for real2') | |||
console.log('something new for real3') |
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.
Codacy has a fix for the issue: Replace 'something·new·for·real3')
with "something·new·for·real3");
console.log('something new for real3') | |
console.log("something new for real3"); |
@@ -0,0 +1,4 @@ | |||
if(foo === "bar") { | |||
console.log('something new for real2') |
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.
Codacy has a fix for the issue: Replace 'something·new·for·real2')
with "something·new·for·real2");
console.log('something new for real2') | |
console.log("something new for real2"); |
@@ -0,0 +1,4 @@ | |||
if(foo === "bar") { |
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.
Codacy has a fix for the issue: Insert ·
if(foo === "bar") { | |
if (foo === "bar") { |
@@ -0,0 +1,4 @@ | |||
if(foo === "bar") { |
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.
ℹ️ Codacy found a minor Error Prone issue: 'foo' is not defined.
The issue is that the variable 'foo' is not defined before being used in the if statement.
if(foo === "bar") { | |
if(typeof foo !== 'undefined' && foo === "bar") { |
This comment was generated by an experimental AI tool.
@@ -0,0 +1,4 @@ | |||
if(foo === "bar") { |
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.
❌ Codacy found a critical Error Prone issue: 'foo' is not defined.
The issue reported by ESLint indicates that the variable foo
is being used in the condition of the if
statement, but it has not been defined anywhere in the code. This can lead to a ReferenceError at runtime if the code is executed, as JavaScript will not know what foo
refers to.
To fix this issue, you need to ensure that foo
is defined before it's used. One common solution is to initialize foo
with a value, such as an empty string or a default value, depending on the intended logic of your program.
Here’s a single line change to define foo
:
if(foo === "bar") { | |
let foo = ""; // or any appropriate default value |
This comment was generated by an experimental AI tool.
No description provided.