Showing 25 of 39 total issues
Function renderCurrentState
has 161 lines of code (exceeds 150 allowed). Consider refactoring. Open
const renderCurrentState = () => {
switch (displayState) {
case 'ProjectUrl':
return (
<>
- Create a ticketCreate a ticket
Function Faq
has a Cognitive Complexity of 13 (exceeds 8 allowed). Consider refactoring. Open
const Faq = () => {
const classes = useStyles();
const theme = useTheme();
const largeScreen = useMediaQuery(theme.breakpoints.up('sm'), {
noSsr: true,
- Read upRead up
- Create a ticketCreate a ticket
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 IndvPageContainer
has a Cognitive Complexity of 12 (exceeds 8 allowed). Consider refactoring. Open
export const IndvPageContainer = (props) => {
const classes = useStyles();
const projectsPerPage = 4;
const inputSortMethodList = ['best match', 'updated', 'stars'];
- Read upRead up
- Create a ticketCreate a ticket
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 SortDropdown
has a Cognitive Complexity of 11 (exceeds 8 allowed). Consider refactoring. Open
export const SortDropdown = ({
inputSortMethodList,
defaultSortMethod,
setSortMethod,
}) => {
- Read upRead up
- Create a ticketCreate a ticket
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 OrgChange
has a Cognitive Complexity of 11 (exceeds 8 allowed). Consider refactoring. Open
export const OrgChange = ({
value,
orgName,
setOrgName,
setOrgTags,
- Read upRead up
- Create a ticketCreate a ticket
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"