Showing 2,136 of 2,138 total issues
Function drawBgImages
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
drawBgImages: function() {
var props = this.styleInfos.backgroundInfo.getProps(),
bounds = this.boundsInfo.getBounds(),
images = props && props.bgImages,
img, shape, w, h, s, i;
Function buildHeader
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
buildHeader: function(date) {
var header = new Element('thead');
this.daysRow = new Element('tr', {
id: this.generateId('_days_row')
});
Function setOffset
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
setOffset: function( elem, options, i ) {
var position = jQuery.css( elem, "position" );
// set position first, in-case top/left are set even on static elem
if ( position === "static" ) {
Function selector
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
selector: function(instance) {
var ret = []; // Beginning matches
var partial = []; // Inside matches
var entry = instance.getToken();
var count = 0;
Function buildHeader
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
buildHeader: function(date) {
var header = new Element('thead');
this.daysRow = new Element('tr', {
id: this.generateId('_days_row')
});
Function draw
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
draw: function(point) {
var pos = this.element.cumulativeOffset();
if(this.options.ghosting) {
var r = Position.realOffset(this.element);
pos[0] += r[0] - Position.deltaX; pos[1] += r[1] - Position.deltaY;
Function result_add_option
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
AbstractChosen.prototype.result_add_option = function(option) {
var classes, option_el;
if (!option.search_match) {
return '';
}
Method find_for_omniauth
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def find_for_omniauth(auth, signed_in_resource=nil)
authentication = Authentication.find_by_provider_and_uid auth.provider, auth.uid
if authentication
# Since we're not planning to access the provider on behalf of the user,
# don't bother storing tokens for now.
Method load_db
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def load_db(district_data_files, school_data_files)
## Delete all the entries first
## Use the TRUNCATE cammand -- works in mysql to effectively empty the database and reset
## the autogenerating primary key index ... not certain about other databases
if @states_and_provinces && @states_and_provinces.empty?
Function getGradeLevel
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
this.getGradeLevel = function (gradeArray: any) {
// some gradeArrays have been null
if (!gradeArray) {
return "UNKNOWN";
}
Method _get_school_layout
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def _get_school_layout(layout_file)
columns = []
File.open(layout_file, "r:iso-8859-1") do |file|
count = 0
line = ''
Method setup
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def setup
@button_texts = {
:apply => 'Apply Filters',
:usage => 'Usage Report',
:details => 'Details Report',
Method load_districts
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def load_districts
nces_districts = Portal::Nces06District.select("id, NAME, LEAID, LZIP, LSTATE")
nces_district_ids = nces_districts.map { |d| d.id }
existing_districts = Portal::District.where(:nces_district_id => nces_district_ids)
existing_district_ids = existing_districts.map { |d| d.nces_district_id }
Method rename
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def rename(old_name,new_name)
#rename files:
types = "{rb,haml,erb,html,rjs,js}"
# specify the replacesments list, to ensure
Method _get_district_layout
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
def _get_district_layout(layout_file)
columns = []
File.open(layout_file, "r:iso-8859-1") do |file|
count = 0
line = ''
Function OfferingsTable
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const OfferingsTable = (props: any) => {
const { offerings, offeringDetails, onOfferingsReorder, onOfferingUpdate, requestOfferingDetails, clazz, readOnly } = props;
if (offerings.length === 0) {
return <div className={css.noMaterials}>No materials have been assigned to this class.</div>;
Function render
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
return (
<ModalDialog title="Register & Add New Student" borderColor="orange">
<form onSubmit={this.handleSubmit}>
<table>
Function handleClick
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
handleClick () {
const { material } = this.props;
let apiUrl = null;
let params = {};
Function render
has 32 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
render () {
const { students } = this.props;
if (students.length === 0) {
return null;
}
Function addImage
has 10 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
function addImage( x, y, w, h, cropX, cropY, cropW, cropH, tileW, tileH ) {