AppStateESS/homestead

View on GitHub

Showing 1,397 of 1,397 total issues

Function read has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

exports.read = function(buffer, offset, isLE, mLen, nBytes) {
  var e, m,
      eLen = nBytes * 8 - mLen - 1,
      eMax = (1 << eLen) - 1,
      eBias = eMax >> 1,
Severity: Minor
Found in javascript/react/build/JSXTransformer.js - About 1 hr to fix

Function parseParams has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function parseParams(firstRestricted) {
        var options, marker = markerCreate();

        options = {
            params: [],
Severity: Minor
Found in javascript/react/build/JSXTransformer.js - About 1 hr to fix

Function parseBreakStatement has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function parseBreakStatement() {
        var label = null, marker = markerCreate();

        expectKeyword('break');

Severity: Minor
Found in javascript/react/build/JSXTransformer.js - About 1 hr to fix

Function parseExpression has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function parseExpression() {
        var marker, expr, expressions, sequence, spreadFound;

        marker = markerCreate();
        expr = parseAssignmentExpression();
Severity: Minor
Found in javascript/react/build/JSXTransformer.js - About 1 hr to fix

Function copy has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

Buffer.prototype.copy = function copy (target, target_start, start, end) {
  var self = this // source

  if (!start) start = 0
  if (!end && end !== 0) end = this.length
Severity: Minor
Found in javascript/react/build/JSXTransformer.js - About 1 hr to fix

Function parseContinueStatement has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    function parseContinueStatement() {
        var label = null, marker = markerCreate();

        expectKeyword('continue');

Severity: Minor
Found in javascript/react/build/JSXTransformer.js - About 1 hr to fix

Function componentWillMount has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    componentWillMount(){
        // Load the list of damage types
        $.ajax({
            url: 'index.php?module=hms&action=GetDamageTypes',
            data: {term: this.props.term},
Severity: Minor
Found in javascript/damageAssessment/DamageAssessment.jsx - About 1 hr to fix

Method addUserStatus has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    private function addUserStatus()
    {
        // If the user is not logged in, then we have nothing to do here
          if(UserStatus::isGuest()){
                return;
Severity: Minor
Found in class/NavBar.php - About 1 hr to fix

Method hms_install has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

function hms_install(&$content)
{
    PHPWS_Core::initModClass('users', 'Users.php');
    $DB = new PHPWS_DB('users');
    $DB->addWhere('username', 'hms_admin');
Severity: Minor
Found in boost/install.php - About 1 hr to fix

Method count_applications_by_class has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function count_applications_by_class($term, $class)
    {
        $term_year = Term::getTermYear($term);

        $query = "SELECT count(*) from hms_new_application JOIN hms_lottery_application ON hms_new_application.id = hms_lottery_application.id
Severity: Minor
Found in class/HMS_Lottery.php - About 1 hr to fix

Method execute has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function execute(CommandContext $context){
        try {
            if(!UserStatus::isAdmin() || !\Current_User::allow('hms', 'assign_by_floor')){
                throw new PermissionException('You do not have permission to assign by floor!');
            }
Severity: Minor
Found in class/Command/GetBedAssignmentInfoCommand.php - About 1 hr to fix

Method execute has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function execute(CommandContext $context)
    {
        $requestId = $context->get('requestId');

        $publicReason   = $context->get('deny-reason-public');
Severity: Minor
Found in class/Command/RoomChangeDenyCommand.php - About 1 hr to fix

Function render has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    render() {
        var residentList = '';
        if (this.props.residents !== undefined) {
            this.props.residents.map(function(val){
                residentList = residentList.length ? residentList + ', ' + val.name : val.name;
Severity: Minor
Found in javascript/CheckOut/CheckOut.jsx - About 1 hr to fix

Function render has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    render() {
        var icon = React.createElement('img', {
            src: this.props.sourceHttp + 'mod/hms/img/loading.gif',
            width: '200px'
        });
Severity: Minor
Found in javascript/AssignByFloor/AssignByFloor.jsx - About 1 hr to fix

Method doSearch has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function doSearch()
    {
        // Clear all the caches
        StudentDataProvider::clearAllCache();

Severity: Minor
Found in class/WithdrawnSearch.php - About 1 hr to fix

Method show has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function show()
    {
        $tpl = array();

        if ($this->halls == NULL) {
Severity: Minor
Found in class/SelectFloorView.php - About 1 hr to fix

Method can_change_gender has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function can_change_gender($target_gender, $ignore_upper = false)
    {
        // Ignore upper is true, we're trying to change a hall's gender
        if($ignore_upper) {
            // If ignore upper is true and the target gender is coed, then
Severity: Minor
Found in class/Floor.php - About 1 hr to fix

Method show has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public function show()
    {
        $username = UserStatus::getUsername();
        $currentTerm = Term::getCurrentTerm();
        $student = StudentFactory::getStudentByUsername($username, $currentTerm);
Severity: Minor
Found in class/ContactFormView.php - About 1 hr to fix

Method listReserveReasons has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function listReserveReasons()
    {
        $athletics[] = array('NAME' => 'Football', 'VALUE' => 'football');
        $athletics[] = array('NAME' => 'Basketball', 'VALUE' => 'basketball');
        $athletics[] = array('NAME' => 'Baseball', 'VALUE' => 'baseball');
Severity: Minor
Found in class/Room.php - About 1 hr to fix

Method countGrossApplicationsByClassGender has 26 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    public static function countGrossApplicationsByClassGender($term, $class = null, $gender = null)
    {
        $term_year = Term::getTermYear($term);

        $query = "SELECT count(*) from hms_new_application JOIN hms_lottery_application ON hms_new_application.id = hms_lottery_application.id
Severity: Minor
Found in class/LotteryProcess.php - About 1 hr to fix
Severity
Category
Status
Source
Language