Showing 12 of 25 total issues
Function render
has 201 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
render() {
return (
<ul className="timeline">
<TimelineItem
type="work"
Function render
has 161 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
render() {
return (
<Layout>
<div className="credits-container container">
<Metadata
Function render
has 120 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
render() {
return (
<div id="additional-information">
<div>
<h2>Additional information about Data collection and processing</h2>
Function render
has 118 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
render() {
const date = new Date()
return (
<Layout>
Function render
has 105 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
render() {
return (
<div id="mode-and-place-of-processing-data">
<h2>Mode and place of processing the Data</h2>
<h3>Methods of processing</h3>
Function render
has 101 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
render() {
return (
<ul className="timeline">
<TimelineItem
type="work"
Function render
has 81 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
render() {
return (
<ul className="timeline">
<TimelineItem
type="community"
Function render
has 77 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
render() {
const { active } = this.props
return (
Function render
has 74 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
render() {
return (
<div id="rights-of-users">
<h2>The rights of Users</h2>
<p>
Function render
has 64 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
render() {
return (
<div id="detailed-information">
<h2>Detailed information on the processing of Personal Data</h2>
<p>
Function render
has 59 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
render() {
return (
<ul className="timeline it-em">
<TimelineItem
type="work"
Function onCreateNode
has a Cognitive Complexity of 22 (exceeds 20 allowed). Consider refactoring. Open
Open
exports.onCreateNode = ({ node, actions, getNode }) => {
const { createNodeField } = actions
let slug
if (node.internal.type === "MarkdownRemark") {
const fileNode = getNode(node.parent)
- 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"