Showing 204 of 204 total issues
File data.ts
has 1002 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import { data as countries } from 'emoji-flags';
import {
SingleSeries,
MultiSeries,
BubbleChartMultiSeries,
File chartTypes.ts
has 946 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
const chartGroups = [
{
name: 'Bar Charts',
charts: [
{
File app.component.ts
has 635 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
declare var APP_VERSION: string;
import { Component, OnInit, ViewEncapsulation } from '@angular/core';
import { Location, LocationStrategy, HashLocationStrategy } from '@angular/common';
import * as shape from 'd3-shape';
Function update
has a Cognitive Complexity of 49 (exceeds 5 allowed). Consider refactoring. Open
Open
update(): void {
this.updateTooltipSettings();
let width;
if (this.series.length) {
- 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
File combo-chart.component.ts
has 479 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import {
Component,
Input,
ViewEncapsulation,
Output,
File bar-vertical-2d-stacked.component.ts
has 465 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import {
Component,
Input,
Output,
ViewEncapsulation,
File line-chart.component.ts
has 457 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import {
Component,
Input,
Output,
EventEmitter,
File area-chart-stacked.component.ts
has 449 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import {
Component,
Input,
Output,
EventEmitter,
File area-chart.component.ts
has 444 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import {
Component,
Input,
Output,
EventEmitter,
File area-chart-normalized.component.ts
has 443 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import {
Component,
Input,
Output,
EventEmitter,
Function update
has a Cognitive Complexity of 43 (exceeds 5 allowed). Consider refactoring. Open
Open
update(): void {
this.updateTooltipSettings();
const d0 = {
[D0Types.positive]: 0,
[D0Types.negative]: 0
- 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
File polar-chart.component.ts
has 428 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import {
Component,
Input,
Output,
EventEmitter,
AppComponent
has 42 functions (exceeds 20 allowed). Consider refactoring. Open
Open
@Component({
selector: 'app',
providers: [Location, { provide: LocationStrategy, useClass: HashLocationStrategy }],
encapsulation: ViewEncapsulation.None,
styleUrls: ['../node_modules/@swimlane/ngx-ui/index.css', './app.component.scss'],
File bubble-chart.component.ts
has 363 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import {
Component,
Input,
Output,
EventEmitter,
Function update
has 117 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
update(): void {
this.updateTooltipSettings();
let width;
if (this.series.length) {
File bubble-chart-interactive.component.ts
has 354 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import {
Component,
Input,
Output,
EventEmitter,
File bar-horizontal-2d.component.ts
has 350 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import {
Component,
Input,
ViewEncapsulation,
Output,
File bar-vertical-2d.component.ts
has 343 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import {
Component,
Input,
Output,
ViewEncapsulation,
File bar-horizontal-stacked.component.ts
has 341 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import {
Component,
Input,
Output,
EventEmitter,
Function update
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
update(): void {
this.updateTooltipSettings();
const d0 = {
[D0Types.positive]: 0,
[D0Types.negative]: 0