codeRIT/hackathon_manager

View on GitHub

Showing 147 of 151 total issues

Function applyAction has 44 lines of code (exceeds 25 allowed). Consider refactoring.
Open

var applyAction = function() {
$('[type=submit][data-bulk-row-edit]').prop('disabled', true);
 
var ids = [];
$('input[type=checkbox][data-bulk-row-edit]:checked').each(function() {
Severity: Minor
Found in app/assets/javascripts/manage/lib/jquery.bulkRowedit.js - About 1 hr to fix

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

    render() {
    return (
    <footer className="nav-footer" id="footer">
    <section className="sitemap">
    <a href={this.props.config.baseUrl} className="nav-home">
    Severity: Minor
    Found in website/core/Footer.js - About 1 hr to fix

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

      const SplashContainer = props => (
      <div className="homeContainer">
      <div className="homeSplashFade">
      <div className="wrapper homeWrapper">{props.children}</div>
      </div>
      Severity: Major
      Found in website/pages/en/index.js and 1 other location - About 1 hr to fix
      website/pages/en/index.js on lines 39..45

      Similar blocks of code found in 2 locations. Consider refactoring.
      Open

      const PromoSection = props => (
      <div className="section promoSection">
      <div className="promoRow">
      <div className="pluginRowBlock">{props.children}</div>
      </div>
      Severity: Major
      Found in website/pages/en/index.js and 1 other location - About 1 hr to fix
      website/pages/en/index.js on lines 24..30

      Function setupEmailEvents has 40 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

      var setupEmailEvents = function() {
      $('.email-events').each(function() {
      var events_container = this;
       
      $(events_container).html('<span class="fa fa-circle-o-notch fa-spin"></span>');
      Severity: Minor
      Found in app/assets/javascripts/manage/lib/emailEvents.js - About 1 hr to fix

        Method check_in has 37 lines of code (exceeds 25 allowed). Consider refactoring.
        Open

        def check_in
        respond_to do |format|
        format.json do
        if params[:check_in] == "true"
        check_in_attendee
        Severity: Minor
        Found in app/controllers/manage/questionnaires_controller.rb - About 1 hr to fix

          Method update has a Cognitive Complexity of 14 (exceeds 7 allowed). Consider refactoring.
          Open

          def update
          # save to check if bus status changes after rsvp
          bus = @questionnaire.bus_list_id
          acc_status = @questionnaire.acc_status
           
           
          Severity: Minor
          Found in app/controllers/rsvps_controller.rb - About 1 hr to fix

          Function Help has 34 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

          function Help(props) {
          const {config: siteConfig, language = ''} = props;
          const {baseUrl, docsUrl} = siteConfig;
          const docsPart = `${docsUrl ? `${docsUrl}/` : ''}`;
          const langPart = `${language ? `${language}/` : ''}`;
          Severity: Minor
          Found in website/pages/en/help.js - About 1 hr to fix

            Function validateAll has 34 lines of code (exceeds 25 allowed). Consider refactoring.
            Open

            var validateAll = function() {
            var success = true,
            invalid_inputs = [],
            first_input;
            $(this)
            Severity: Minor
            Found in app/assets/javascripts/validate.js - About 1 hr to fix

              Function ready has 34 lines of code (exceeds 25 allowed). Consider refactoring.
              Open

              function ready(error, us) {
              if (error) return console.error(error);
               
              svg
              .append('path')
              Severity: Minor
              Found in app/assets/javascripts/manage/map.js - About 1 hr to fix

                Similar blocks of code found in 3 locations. Consider refactoring.
                Open

                const BusLists = () => (
                <Block background="light">
                {[
                {
                content:
                Severity: Major
                Found in website/pages/en/index.js and 2 other locations - About 1 hr to fix
                website/pages/en/index.js on lines 131..143
                website/pages/en/index.js on lines 187..199

                Similar blocks of code found in 3 locations. Consider refactoring.
                Open

                const EmailCommunication = () => (
                <Block background="light">
                {[
                {
                content:
                Severity: Major
                Found in website/pages/en/index.js and 2 other locations - About 1 hr to fix
                website/pages/en/index.js on lines 131..143
                website/pages/en/index.js on lines 159..171

                Similar blocks of code found in 3 locations. Consider refactoring.
                Open

                const Applications = () => (
                <Block background="light">
                {[
                {
                content:
                Severity: Major
                Found in website/pages/en/index.js and 2 other locations - About 1 hr to fix
                website/pages/en/index.js on lines 159..171
                website/pages/en/index.js on lines 187..199

                Method update has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                Open

                def update
                # save to check if bus status changes after rsvp
                bus = @questionnaire.bus_list_id
                acc_status = @questionnaire.acc_status
                 
                 
                Severity: Minor
                Found in app/controllers/rsvps_controller.rb - About 1 hr to fix

                  Function setupHighcharts has 33 lines of code (exceeds 25 allowed). Consider refactoring.
                  Open

                  var setupHighcharts = function() {
                  Highcharts.setOptions({
                  global: {
                  useUTC: false,
                  },
                  Severity: Minor
                  Found in app/assets/javascripts/manage/lib/setupHighcharts.js - About 1 hr to fix

                    Method new has 30 lines of code (exceeds 25 allowed). Consider refactoring.
                    Open

                    def new
                    if current_user.questionnaire.present?
                    return redirect_to questionnaires_path
                    end
                    @questionnaire = Questionnaire.new
                    Severity: Minor
                    Found in app/controllers/questionnaires_controller.rb - About 1 hr to fix

                      Block has too many lines. [35/25]
                      Open

                      respond_to do |format|
                      format.json do
                      if params[:check_in] == "true"
                      check_in_attendee
                      elsif params[:check_in] == "false"

                      Function eventCalendar has 29 lines of code (exceeds 25 allowed). Consider refactoring.
                      Open

                      function eventCalendar() {
                      return $('#calendar').fullCalendar({
                      defaultView: 'listYear',
                      buttonText: {
                      today: 'Today'
                      Severity: Minor
                      Found in app/assets/javascripts/events.js - About 1 hr to fix

                        Function setupManageForms has 28 lines of code (exceeds 25 allowed). Consider refactoring.
                        Open

                        var setupManageForms = function() {
                        var disable = function($element) {
                        $element.hide();
                        $element.find('input').prop('disabled', true);
                        };
                        Severity: Minor
                        Found in app/assets/javascripts/manage/lib/forms.js - About 1 hr to fix

                          Similar blocks of code found in 3 locations. Consider refactoring.
                          Open

                          const StatisticsVisualization = () => (
                          <Block>
                          {[
                          {
                          content:
                          Severity: Major
                          Found in website/pages/en/index.js and 2 other locations - About 1 hr to fix
                          website/pages/en/index.js on lines 145..157
                          website/pages/en/index.js on lines 173..185
                          Severity
                          Category
                          Status
                          Source
                          Language