Passed
Push — master ( edfc1e...a26bd7 )
by Vitor
59s queued 10s
created

src/providers/getHomepageMetadataProvider.js   A

Complexity

Total Complexity 1
Complexity/F 1

Size

Lines of Code 21
Function Count 1

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 0
wmc 1
eloc 3
nc 1
mnd 0
bc 0
fnc 1
dl 0
loc 21
bpm 0
cpm 1
noi 0
c 0
b 0
f 0
rs 10

1 Function

Rating   Name   Duplication   Size   Complexity  
A getHomepageMetadataProvider.js ➔ ??? 0 19 1
1
import { useStaticQuery, graphql } from 'gatsby';
2
3
export const getHomepageMetadataProvider = () => (
4
    useStaticQuery(graphql`
5
        {
6
            intro: homepageYaml(slug: {eq: "intro" }) {
7
                title
8
                description
9
                biography
10
            }
11
            expertise: homepageYaml(slug: {eq: "expertise" }) {
12
                title
13
                description
14
                items {
15
                    title
16
                    description
17
                }
18
            }
19
        }
20
    `)
21
);
22