Skip to content

PR 83e8f1978a1c4714a780a5cf2e6404d2#161

Open
codacydemo wants to merge 1 commit into
masterfrom
83e8f1978a1c4714a780a5cf2e6404d2
Open

PR 83e8f1978a1c4714a780a5cf2e6404d2#161
codacydemo wants to merge 1 commit into
masterfrom
83e8f1978a1c4714a780a5cf2e6404d2

Conversation

@codacydemo
Copy link
Copy Markdown
Owner

No description provided.

@codacydemo
Copy link
Copy Markdown
Owner Author

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

Issues
======
- Added 11
           

Complexity increasing per file
==============================
- py_unittest_20193309093354.py  1
- py_xss_20193309093354.py  1
- py_error_20193309093354.py  4
         

Clones added
============
- py_xss_20193309093354.py  1
- py_error_20193309093354.py  1
         

See the complete overview on Codacy

@@ -0,0 +1,10 @@
function hello() {
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

get_input = web.input()
param1 = get_input['param1'] if 'param1' in get_input else None
if (param1):
x = eval(param1)
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Codacy Issue found: Unused variable 'x'

@@ -0,0 +1,10 @@
function hello() {
let a = "dummy"
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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


def calc(number,times):
program = 'a = 5\nb=10\nprint("Sum =", a+b)'
exec(program)
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Codacy Issue found: Use of exec detected.


def calc(number,times):
program = 'a = 5\nb=10\nprint("Sum =", a+b)'
exec(program)
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Codacy Issue found: Use of exec

class C20193309093354():
"This is an example class"
a = 10
def func(self):
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

return "Hello";
}

function world() {
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

@@ -0,0 +1,46 @@
import lxml
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

Codacy Issue found: Unused import lxml


function world() {
password a = "dummy"
let b = "line"
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

@@ -0,0 +1,46 @@
import lxml
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

get_input = web.input()
param1 = get_input['param1'] if 'param1' in get_input else None
if (param1):
x = eval(param1)
Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

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.

1 participant