awslabs / graphql-schema-utilities
File Size

The distribution of size of files (measured in lines of code).

Intro
  • File size measurements show the distribution of size of files.
  • Files are classified in four categories based on their size (lines of code): 1-100 (very small files), 101-200 (small files), 201-500 (medium size files), 501-1000 (long files), 1001+(very long files).
  • It is a good practice to keep files small. Long files may become "bloaters", code that have increased to such gargantuan proportions that they are hard to work with.
Learn more...
File Size Overall
  • There are 36 files with 1,173 lines of code.
    • 0 very long files (0 lines of code)
    • 0 long files (0 lines of code)
    • 1 medium size files (336 lines of codeclsfd_ftr_w_mp_ins)
    • 2 small files (221 lines of code)
    • 33 very small files (616 lines of code)
0% | 0% | 28% | 18% | 52%
Legend:
1001+
501-1000
201-500
101-200
1-100


explore: zoomable circles | sunburst | 3D view
File Size per Extension
1001+
501-1000
201-500
101-200
1-100
ts0% | 0% | 43% | 28% | 28%
graphql0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src0% | 0% | 43% | 28% | 28%
fixtures/invalidSchemas/dataTypes0% | 0% | 0% | 0% | 100%
fixtures/schema/dataTypes0% | 0% | 0% | 0% | 100%
fixtures/expectedOutput/directiveSchemas0% | 0% | 0% | 0% | 100%
fixtures/expectedOutput/helloWorld0% | 0% | 0% | 0% | 100%
fixtures/directiveSchemas0% | 0% | 0% | 0% | 100%
fixtures/helloWorld0% | 0% | 0% | 0% | 100%
fixtures/invalidSchemas0% | 0% | 0% | 0% | 100%
fixtures/schema0% | 0% | 0% | 0% | 100%
fixtures/queries0% | 0% | 0% | 0% | 100%
fixtures/queries/invalid0% | 0% | 0% | 0% | 100%
Longest Files (Top 36)
File# lines# units
printers.ts
in src
336 31
index.ts
in src
111 5
validate-schema.ts
in src
110 3
cli-launcher.ts
in src
93 1
cli.ts
in src
86 3
expectedOutput.graphql
in fixtures/expectedOutput/helloWorld
33 -
printedWithDirectives.graphql
in fixtures/expectedOutput/directiveSchemas
27 -
printedDefault.graphql
in fixtures/expectedOutput/directiveSchemas
27 -
starship.graphql
in fixtures/invalidSchemas/dataTypes/ships
20 -
starship.graphql
in fixtures/schema/dataTypes/ships
20 -
rootQuery.graphql
in fixtures/invalidSchemas
19 -
utilities.ts
in src
19 2
people.graphql
in fixtures/invalidSchemas/dataTypes/characters
18 -
vehicle.graphql
in fixtures/invalidSchemas/dataTypes/ships
18 -
people.graphql
in fixtures/schema/dataTypes/characters
18 -
vehicle.graphql
in fixtures/schema/dataTypes/ships
18 -
rootQuery.graphql
in fixtures/schema
18 -
logger.ts
in src
18 3
species.graphql
in fixtures/invalidSchemas/dataTypes/characters
17 -
baseTypes.graphql
in fixtures/directiveSchemas
17 -
species.graphql
in fixtures/schema/dataTypes/characters
17 -
planet.graphql
in fixtures/invalidSchemas/dataTypes
16 -
film.graphql
in fixtures/invalidSchemas/dataTypes
16 -
planet.graphql
in fixtures/schema/dataTypes
16 -
film.graphql
in fixtures/schema/dataTypes
16 -
mutations.graphql
in fixtures/helloWorld
11 -
queries.graphql
in fixtures/helloWorld
8 -
directives.graphql
in fixtures/directiveSchemas
6 -
subscriptions.graphql
in fixtures/helloWorld
6 -
types.ts
in src
5 -
extendedTypes.graphql
in fixtures/directiveSchemas
4 -
schema.graphql
in fixtures/invalidSchemas
3 -
schema.graphql
in fixtures/schema
3 -
allFilms.graphql
in fixtures/queries
1 -
allFilms.graphql
in fixtures/queries/invalid
1 -
allPeople.graphql
in fixtures/queries
1 -
Files With Most Units (Top 7)
File# lines# units
printers.ts
in src
336 31
index.ts
in src
111 5
logger.ts
in src
18 3
validate-schema.ts
in src
110 3
cli.ts
in src
86 3
utilities.ts
in src
19 2
cli-launcher.ts
in src
93 1
Files With Long Lines (Top 9)

There are 9 files with lines longer than 120 characters. In total, there are 12 long lines.

File# lines# units# long lines
printedWithDirectives.graphql
in fixtures/expectedOutput/directiveSchemas
27 - 3
queries.graphql
in fixtures/helloWorld
8 - 2
baseTypes.graphql
in fixtures/directiveSchemas
17 - 1
directives.graphql
in fixtures/directiveSchemas
6 - 1
extendedTypes.graphql
in fixtures/directiveSchemas
4 - 1
printedDefault.graphql
in fixtures/expectedOutput/directiveSchemas
27 - 1
expectedOutput.graphql
in fixtures/expectedOutput/helloWorld
33 - 1
subscriptions.graphql
in fixtures/helloWorld
6 - 1
mutations.graphql
in fixtures/helloWorld
11 - 1