Showing 44 of 67 total issues
Function AppContextProvider
has 171 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const AppContextProvider = props => {
const {
children,
code,
configurationID,
Function reducer
has 147 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function reducer(state, action) {
const {
payload,
type,
} = action
Function FieldInput
has 135 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function FieldInput(props) {
const {
alignment,
autocomplete,
className,
Function GithubExplorer
has 134 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function GithubExplorer(props) {
const {
onSelect,
projectID,
title,
File AppContext.js
has 382 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
// Module imports
import {
createContext,
useCallback,
useContext,
Function FieldRadioGroup
has 119 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function FieldRadioGroup(props) {
const {
className,
id,
isDisabled,
Function handler
has 116 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const handler = async (request, response) => {
const errors = []
const responseJSON = {
accessToken: null,
projects: {},
Function ProjectConfiguration
has 104 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ProjectConfiguration(props) {
const {
projectID,
isOpen,
onClose,
Function FieldColor
has 101 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function FieldColor(props) {
const {
className,
id,
isDisabled,
Function ProjectConfigurationSidebar
has 99 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function ProjectConfigurationSidebar(props) {
const { projectID } = props
const {
data: { projects },
} = useAppContext()
Function SetupServiceAccountFields
has 95 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function SetupServiceAccountFields(props) {
const { projectID } = props
const { changeStepCompletion } = useAppContext()
const {
updateValidity,
Function SetupFirestoreFields
has 81 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function SetupFirestoreFields(props) {
const { projectID } = props
const { changeStepCompletion } = useAppContext()
const {
updateValue,
Function Form
has 70 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
const Form = props => {
const {
children,
className,
initialValues,
Function Field
has 68 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function Field(props) {
const {
children,
className,
helperText,
Function FieldInput
has a Cognitive Complexity of 19 (exceeds 5 allowed). Consider refactoring. Open
Open
function FieldInput(props) {
const {
alignment,
autocomplete,
className,
- 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 FieldFile
has 64 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function FieldFile(props) {
const {
accept,
className,
filename,
Function ProjectConfigurationFooter
has 62 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ProjectConfigurationFooter(props) {
const { projectID } = props
const {
data: { projects },
goBack,
Function FieldRadioGroup
has a Cognitive Complexity of 18 (exceeds 5 allowed). Consider refactoring. Open
Open
function FieldRadioGroup(props) {
const {
className,
id,
isDisabled,
- 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 Installer
has 55 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export function Installer() {
const {
cancelConfiguration,
data: { projects },
finishConfiguration,
Function ProjectSummary
has 53 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function ProjectSummary(props) {
const {
projectID,
onOpen,
} = props