maacpiash/KonSchool

View on GitHub

Showing 7 of 7 total issues

Method OnPost has 43 lines of code (exceeds 25 allowed). Consider refactoring.
Open

        public IActionResult OnPost()
        {
            if (!ModelState.IsValid)
                return Page();
            session.SetInt32("_Class", Convert.ToInt32(Class));
Severity: Minor
Found in src/Pages/Index.cshtml.cs - About 1 hr to fix

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

            public static (double, double, double)[,] ComparisonMatrix(int[] values)
            {
                int i;
    
                #region Validation
    Severity: Minor
    Found in src/Models/Inference.cs - About 1 hr to fix

      Method OnGet has 32 lines of code (exceeds 25 allowed). Consider refactoring.
      Open

              public void OnGet()
              {
                  _Query = new Query(SchoolService)
                  {
                      Class = session.GetInt32("_Class") ?? 10,
      Severity: Minor
      Found in src/Pages/Outputs.cshtml.cs - About 1 hr to fix

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

                [HttpGet("{numbers}")]
                public ActionResult<IEnumerable<double>> Get(string numbers)
                {
                    int[] values;
                    try
        Severity: Minor
        Found in src/ApiControllers/FAHPController.cs - About 1 hr to fix

          Method RunFAHP has 28 lines of code (exceeds 25 allowed). Consider refactoring.
          Open

                  private double[] RunFAHP()
                  {
                      (double, double, double) temp;
          
                      // Step 1 : Geometric Mean
          Severity: Minor
          Found in src/Models/FAHP.cs - About 1 hr to fix

            Avoid too many return statements within this method.
            Open

                            return false;
            Severity: Major
            Found in src/Models/Query.cs - About 30 mins to fix

              Avoid too many return statements within this method.
              Open

                          return true;
              Severity: Major
              Found in src/Models/Query.cs - About 30 mins to fix
                Severity
                Category
                Status
                Source
                Language