Showing 59 of 182 total issues
Function finanzas4Controller
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function finanzas4Controller($scope,$http,$location,$aside,$attrs){
Function finanzas6Controller
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function finanzas6Controller($scope,$http,$location,$aside,$attrs){
Function tipoCargosController
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function tipoCargosController($scope,$http,$location,$aside,$attrs){
Function finanzas5Controller
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function finanzas5Controller($scope,$http,$location,$aside,$attrs){
Function afiliacionsController
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function afiliacionsController($scope,$http,$location,$aside,$attrs){
Function sedesController
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function sedesController($scope,$http,$location,$aside,$attrs){
Function cargosController
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function cargosController($scope,$http,$location,$aside,$attrs){
Function finanzas7Controller
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function finanzas7Controller($scope,$http,$location,$aside,$attrs){
Function finanzas1Controller
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function finanzas1Controller($scope,$http,$location,$aside,$attrs){
Function finanzas2Controller
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function finanzas2Controller($scope,$http,$location,$aside,$attrs){
Function personasController
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function personasController($scope,$http,$location,$aside,$attrs){
Function actividad_publicasController
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
function actividad_publicasController($scope,$http,$location,$aside,$attrs){
Method regiones
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def regiones
rangos = [[14,17],[18,24],[25,29],[30,34],[35,39],[40,44],[45,49],[50,54],[55,59],[60,64],[65,69],[70,100]]
@datos_region = []
@datos_nacional = []
@rangos_edad = []
- 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"
Further reading
Method representantes
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def representantes
@representantes = []
t_cargos = @partido.tipo_cargos.where(representante: true)
by_gender = []
t_cargos.each do |tc|
- 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"
Further reading
Method publicacion_candidatos
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def publicacion_candidatos
@publicacion_candidatos = []
tc_candidatos = @partido.tipo_cargos.where(candidato:true)
tc_candidatos.each do |tc|
filter_by = @partido.cargos.where(tipo_cargo_id:tc)
- 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"
Further reading
Function personasController
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
function personasController($scope,$http,$location,$aside,$attrs){
$scope.persona = {};
$scope.personas = [];
$scope.partido_id = $location.path().split("/")[2];
$scope.pageSize = 5;
- 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"
Further reading
Method autoridades
has a Cognitive Complexity of 7 (exceeds 5 allowed). Consider refactoring. Open
def autoridades
@autoridades = []
t_cargos = @partido.tipo_cargos.where(autoridad: true)
t_cargos.each do |tc|
cargos = @partido.cargos.where(tipo_cargo_id: tc)
- 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"
Further reading
Method set_comparison_params
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
def set_comparison_params
@partido_ids = params[:partido_ids].nil? ? Partido.ids : params[:partido_ids]
@category = params[:category].nil? ? 'category_1' : params[:category]
@fecha_param = params[:fecha_datos].blank? ? nil : Date.new(params[:fecha_datos].split("-")[0].to_i, params[:fecha_datos].split("-")[1].to_i, params[:fecha_datos].split("-")[2].to_i)
end
- 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"
Further reading
Function actividad_publicasController
has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring. Open
function actividad_publicasController($scope,$http,$location,$aside,$attrs){
$scope.actividad_publicas = [];
$scope.partido_id = $location.path().split("/")[2];
var save_or_update_actividad_publica = function() {
- 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"