Showing 243 of 2,691 total issues
File main.js
has 322 lines of code (exceeds 250 allowed). Consider refactoring. Open
var myLayout;
$(document).ready(function() {
r2.cmd('e scr.html=false');
Function render_functions
has a Cognitive Complexity of 25 (exceeds 5 allowed). Consider refactoring. Open
function render_functions(functions) {
var imports = null;
r2.cmdj('iij', function(x) {
imports = x;
});
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function handleKeypress
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
function handleKeypress(inEvent) {
var keynum = inEvent.keyCode || inEvent.charCode || inEvent.which || 0;
var key = String.fromCharCode(keynum);
// console.log(key);
Function new_frame
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
this.new_frame = function (name, body, update, pos, cb) {
var nf = {};
nf.name = name = name || this.defname();
var obj_title = document.createElement('div');
Function filter_asm
has 88 lines of code (exceeds 25 allowed). Consider refactoring. Open
r2.filter_asm = function(x, display) {
var curoff = backward ? prev_curoff : next_curoff;
var lastoff = backward ? prev_lastoff : next_lastoff;
var lines = x.split(/\n/g);
r2.cmd('s', function(x) {
`` has 29 functions (exceeds 20 allowed). Consider refactoring. Open
enyo.kind({
name: 'MainPanel',
classes: 'onyx',
kind: 'FittableRows',
classes: 'enyo-fit',
File mainpanel.js
has 311 lines of code (exceeds 250 allowed). Consider refactoring. Open
enyo.kind({
name: 'MainPanel',
classes: 'onyx',
kind: 'FittableRows',
classes: 'enyo-fit',
Hexdump
has 28 functions (exceeds 20 allowed). Consider refactoring. Open
export class Hexdump extends RadareInfiniteBlock {
constructor(containerElement, lineHeight, isBigEndian) {
super();
this.container = new FlexContainer(containerElement, 'hex');
Function _loadDataFromUrl
has 83 lines of code (exceeds 25 allowed). Consider refactoring. Open
JqTreeWidget.prototype._loadDataFromUrl = function(url_info, parent_node, on_finished) {
var $el, addLoadingClass, handeLoadData, loadDataFromUrlInfo, parseUrlInfo, removeLoadingClass;
$el = null;
addLoadingClass = (function(_this) {
return function() {
Function getTextLogger
has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring. Open
r2.getTextLogger = function(obj) {
if (typeof (obj) != 'object') {
obj = {};
}
obj.last = 0;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function on_scroll
has a Cognitive Complexity of 23 (exceeds 5 allowed). Consider refactoring. Open
function on_scroll(event) {
// console.log($(event.target).scrollTop());
if (!r2ui._dis.scrolling) {
var enyo = $('#radareApp').length ? true : false;
var panel_disas = false;
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function beforeOpen
has 80 lines of code (exceeds 25 allowed). Consider refactoring. Open
beforeOpen: function(event, ui) {
var address = get_address_from_class(ui.target[0]);
var xrefs_to = [];
var xrefs_from = [];
var xrefto_submenu = null;
Function newDisasmFrame
has 77 lines of code (exceeds 25 allowed). Consider refactoring. Open
function newDisasmFrame () {
var n = t.defname('disas');
var disasmbody = '<div id=\'' + n + '_code\' class=\'frame_body\'></div>';
t.new_frame(n, disasmbody, function (obj) {
var code = _(n + '_code');
Function render_graph
has 75 lines of code (exceeds 25 allowed). Consider refactoring. Open
function render_graph(x) {
var obj;
try {
obj = JSON.parse(x.replace(/\\l/g, '\\n'));
} catch (e) {
Function register
has 74 lines of code (exceeds 25 allowed). Consider refactoring. Open
SimpleWidget.register = function(widget_class, widget_name) {
var callFunction, createWidget, destroyWidget, getDataKey, getWidgetData;
getDataKey = function() {
return "simple_widget_" + widget_name;
};
Function newHexdumpFrame
has 73 lines of code (exceeds 25 allowed). Consider refactoring. Open
function newHexdumpFrame () {
var n = t.defname('hexdump');
var msgbody = '<div id=\'' + n + '_hexdump\' class=\'frame_body\'></div>';
t.new_frame(n, msgbody, function (obj) {
var code = _(n + 'code');
Function drawPairs_
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
drawPairs_(hexpairs, asciis, pairs, chars, modifications, offset) {
hexpairs.classList.add('pairs');
var editableHexEvent = {
keydown: (evt) => evt.keyCode === 13 && collectHexpair(evt.target),
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Function get
has a Cognitive Complexity of 21 (exceeds 5 allowed). Consider refactoring. Open
get(which, callback, force) {
var dir = (which === NavigatorDirection.BEFORE) ? 'prev' : 'next';
var item;
if (which === NavigatorDirection.CURRENT) {
- Read upRead up
Cognitive Complexity
Cognitive Complexity is a measure of how difficult a unit of code is to intuitively understand. Unlike Cyclomatic Complexity, which determines how difficult your code will be to test, Cognitive Complexity tells you how difficult your code will be to read and comprehend.
A method's cognitive complexity is based on a few simple rules:
- Code is not considered more complex when it uses shorthand that the language provides for collapsing multiple statements into one
- Code is considered more complex for each "break in the linear flow of the code"
- Code is considered more complex when "flow breaking structures are nested"
Further reading
Disassembly
has 25 functions (exceeds 20 allowed). Consider refactoring. Open
export class Disassembly extends RadareInfiniteBlock {
constructor(containerElement, lineHeight) {
super();
this.container = new FlexContainer(containerElement, 'disasm');
Function newDebugFrame
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
function newDebugFrame () {
var name = 'debug';
var n = t.defname(name);
var fillFrame = function () {
// TODO: list breakpoints with `dbj`