amaurymartiny/shoot-i-smoke

View on GitHub

Showing 27 of 27 total issues

Similar blocks of code found in 2 locations. Consider refactoring.
Open

credits: {
borderTopColor: theme.iconBackgroundColor,
borderTopWidth: 1,
marginBottom: theme.spacing.normal,
paddingTop: theme.spacing.big,
Severity: Minor
Found in App/Screens/About/About.tsx and 1 other location - About 35 mins to fix
App/Screens/About/About.tsx on lines 118..123

Similar blocks of code found in 2 locations. Consider refactoring.
Open

style={[
styles.butt,
orientation === 'horizontal'
? {
height: '100%',
Severity: Minor
Found in App/components/Cigarettes/Cigarette/Cigarette.tsx and 1 other location - About 35 mins to fix
App/components/Cigarettes/Cigarette/Cigarette.tsx on lines 143..154

Similar blocks of code found in 2 locations. Consider refactoring.
Open

style={[
styles.inner,
orientation === 'horizontal'
? {
height: '100%',
Severity: Minor
Found in App/components/Cigarettes/Cigarette/Cigarette.tsx and 1 other location - About 35 mins to fix
App/components/Cigarettes/Cigarette/Cigarette.tsx on lines 162..173

Avoid too many return statements within this function.
Open

return <Text style={styles.noResults}>Waiting for results.</Text>;
Severity: Major
Found in App/Screens/Search/Search.tsx - About 30 mins to fix

    Avoid too many return statements within this function.
    Open

    return <Text style={styles.noResults}>No results.</Text>;
    Severity: Major
    Found in App/Screens/Search/Search.tsx - About 30 mins to fix

      Function Banner has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
      Open

      export function Banner({
      asTouchable,
      children,
      elevated,
      onClick,
      Severity: Minor
      Found in App/components/Banner/Banner.tsx - About 25 mins to fix

      Function Footer has a Cognitive Complexity of 6 (exceeds 5 allowed). Consider refactoring.
      Open

      export function Footer(props: FooterProps): React.ReactElement {
      const { api } = useContext(ApiContext);
      const { currentLocation } = useContext(CurrentLocationContext);
      // eslint-disable-next-line @typescript-eslint/no-unused-vars
      const { navigation, style, ...rest } = props;
      Severity: Minor
      Found in App/Screens/Home/Footer/Footer.tsx - About 25 mins to fix
      Severity
      Category
      Status
      Source
      Language