Showing 3,486 of 3,486 total issues
Function _createStoreAndDataView
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
_createStoreAndDataView: function(){
this.store = new Ext.data.Store({
autoDestroy: true,
autoLoad: false,
autoSave: false,
Function onFire
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var onFire = function(e, isDrop){
if(isDrop || !ddm.dragCurrent){ return; }
var dds = Ext.dd.ScrollManager;
if(!dragEl || dragEl != ddm.dragCurrent){
dragEl = ddm.dragCurrent;
Function buildExtractors
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
buildExtractors : function() {
if(this.ef){
return;
}
var s = this.meta,
Function bindStore
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
bindStore : function(store, initial){
if(this.store && !initial){
if(this.store !== store && this.store.autoDestroy){
this.store.destroy();
}else{
Function setCellClass
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
var setCellClass = function(cal, cell){
cell.title = '';
var t = d.clearTime(true).getTime();
cell.firstChild.dateValue = t;
if(t == today){
Function startSizing
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
startSizing : function(e, handle){
this.fireEvent('beforeresize', this, e);
if(this.enabled){ // 2nd enabled check in case disabled before beforeresize handler
if(!this.overlay){
Function ensureVisible
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
ensureVisible : function(row, col, hscroll) {
var resolved = this.resolveCell(row, col, hscroll);
if (!resolved || !resolved.row) {
return null;
Function handleMouseDown
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
handleMouseDown : function(e){
var t = this.view.findHeaderCell(e.getTarget());
if(t && this.allowHeaderDrag(e)){
var xy = this.view.fly(t).getXY(),
x = xy[0],
Function extractData
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
extractData: function() {
var records = this.store.data.items,
recCount = records.length,
cells = [],
record, i, j, k;
Function puff
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
puff : function(o){
o = getObject(o);
var me = this,
dom = me.dom,
st = dom.style,
Function onClick
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
,onClick:function(e, target) {
var view = this.grid.getView();
// handle row action click
Function collapseRow
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
collapseRow : function(record, skip_process)
{
var ds = this.ds,
i, len, children, row, index, child_index;
Function renderCellTreeUI
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
renderCellTreeUI : function(record, store)
{
if(store.isFiltered())
{
return this.templates.treeui.apply({});
Function collapseRow
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
collapseRow : function(record, skip_process)
{
var ds = this.ds,
i, len, children, row, index, child_index;
Function stopEditing
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
stopEditing : function(saveChanges){
this.editing = false;
if(!this.isVisible()){
return;
}
Function initComponent
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
initComponent: function(){
this.items = [
{ xtype: 'container', itemId: 'msgCont', cls: 't_boot', autoHeight: true, region: 'north', items: {
xtype: 'box', itemId: 'msg', html: '<h5>Info:</h5><p>On the left are the apps that you already have access to. On the right are apps that you may add.<br/>Note: for most ' +
'apps, to gain access to additonal features, you will need to request a non-public role via the edit user menu.</p>',
Function obj2url
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
qq.obj2url = function(obj, temp, prefixDone){
var uristrings = [],
prefix = '&',
add = function(nextObj, i){
var nextTemp = temp
Function constructor
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
constructor: function(config)
{
PhinApplication.superclass.constructor.call(this, config);
Ext.QuickTips.init();
Method create_program_and_activation
has 36 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def create_program_and_activation
body = ""
xml = ::Builder::XmlMarkup.new :target => body, :indent => 2
xml.instruct!
xml.ucsxml :version=>"1.1", :xmlns=>"http://ucs.tfcci.com" do |ucsxml|
Function _fillPermissionsForm
has a Cognitive Complexity of 12 (exceeds 5 allowed). Consider refactoring. Open
Open
_fillPermissionsForm: function(){
var ap = this.getComponent('tp').getComponent('sh').getComponent('ap');
var audience = null;
if(!ap.rendered){
audience = this.incoming_audience;
- 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"