microsoft / powerquery-parser
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 102 files with 15,065 lines of code.
    • 2 very long files (3,435 lines of code)
    • 3 long files (1,899 lines of code)
    • 19 medium size files (5,468 lines of codeclsfd_ftr_w_mp_ins)
    • 19 small files (2,831 lines of code)
    • 59 very small files (1,432 lines of code)
22% | 12% | 36% | 18% | 9%
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
ts22% | 12% | 36% | 18% | 9%
py0% | 0% | 0% | 0% | 100%
File Size per Logical Decomposition
primary
1001+
501-1000
201-500
101-200
1-100
src/powerquery-parser/parser42% | 0% | 30% | 18% | 8%
src/powerquery-parser/lexer67% | 0% | 23% | 8% | <1%
src/powerquery-parser/language0% | 33% | 44% | 18% | 3%
src/powerquery-parser/localization0% | 0% | 91% | 0% | 8%
src/powerquery-parser/task0% | 0% | 81% | 0% | 18%
src/powerquery-parser/common0% | 0% | 0% | 54% | 45%
src0% | 0% | 0% | 0% | 100%
src/powerquery-parser/settings0% | 0% | 0% | 0% | 100%
scripts0% | 0% | 0% | 0% | 100%
src/powerquery-parser0% | 0% | 0% | 0% | 100%
Longest Files (Top 50)
File# lines# units
naive.ts
in src/powerquery-parser/parser/parsers
2404 78
lexer.ts
in src/powerquery-parser/lexer
1031 59
categorize.ts
in src/powerquery-parser/language/type/typeUtils
742 24
assert.ts
in src/powerquery-parser/language/type/typeUtils
588 74
ast.ts
in src/powerquery-parser/language/ast
569 -
isCompatible.ts
in src/powerquery-parser/language/type/typeUtils
425 24
type.ts
in src/powerquery-parser/language/type
416 2
assert.ts
in src/powerquery-parser/language/ast/astUtils
408 115
nodeIdMapIterator.ts
in src/powerquery-parser/parser/nodeIdMap
362 20
lexerSnapshot.ts
in src/powerquery-parser/lexer
358 12
localization.ts
in src/powerquery-parser/localization
357 8
disambiguationUtils.ts
in src/powerquery-parser/parser/disambiguation
332 12
contextUtils.ts
in src/powerquery-parser/parser/context
298 12
parseStateUtils.ts
in src/powerquery-parser/parser/parseState
292 27
combinatorialParser.ts
in src/powerquery-parser/parser/parsers
239 5
typeGuards.ts
in src/powerquery-parser/language/ast/astUtils
237 60
templates.ts
in src/powerquery-parser/localization
233 -
taskUtils.ts
in src/powerquery-parser/task
232 29
xorNodeUtils.ts
in src/powerquery-parser/parser/nodeIdMap
228 37
isEqualType.ts
in src/powerquery-parser/language/type/typeUtils
221 23
constantUtils.ts
in src/powerquery-parser/language/constant
211 20
typeCheck.ts
in src/powerquery-parser/language/type/typeUtils
209 9
constant.ts
in src/powerquery-parser/language/constant
207 -
factories.ts
in src/powerquery-parser/language/type/typeUtils
203 16
childSelectors.ts
in src/powerquery-parser/parser/nodeIdMap/nodeIdMapUtils
193 20
ancestryUtils.ts
in src/powerquery-parser/parser/nodeIdMap
185 28
typeUtils.ts
in src/powerquery-parser/language/type/typeUtils
177 7
token.ts
in src/powerquery-parser/language
171 -
error.ts
in src/powerquery-parser/parser
167 8
traversal.ts
in src/powerquery-parser/common
163 1
isType.ts
in src/powerquery-parser/language/type/typeUtils
161 39
arrayUtils.ts
in src/powerquery-parser/common
160 18
simplify.ts
in src/powerquery-parser/language/type/typeUtils
157 13
textUtils.ts
in src/powerquery-parser/language
149 10
idUtils.ts
in src/powerquery-parser/parser/nodeIdMap/nodeIdMapUtils
147 4
primitive.ts
in src/powerquery-parser/language/type/typeUtils
145 3
stringUtils.ts
in src/powerquery-parser/common
143 10
parserUtils.ts
in src/powerquery-parser/parser/parser
133 7
specializedSelectors.ts
in src/powerquery-parser/parser/nodeIdMap/nodeIdMapUtils
131 5
error.ts
in src/powerquery-parser/lexer
127 11
trace.ts
in src/powerquery-parser/common
112 15
parser.ts
in src/powerquery-parser/parser/parser
108 -
astUtils.ts
in src/powerquery-parser/language/ast/astUtils
102 4
parentSelectors.ts
in src/powerquery-parser/parser/nodeIdMap/nodeIdMapUtils
97 12
leafSelectors.ts
in src/powerquery-parser/parser/nodeIdMap/nodeIdMapUtils
93 6
keyword.ts
in src/powerquery-parser/language/keyword
87 -
nameOf.ts
in src/powerquery-parser/language/type/typeUtils
82 7
nodeIdMapUtils.ts
in src/powerquery-parser/parser/nodeIdMap/nodeIdMapUtils
77 3
assert.ts
in src/powerquery-parser/common
75 13
orderedMap.ts
in src/powerquery-parser/common
71 9
Files With Most Units (Top 20)
File# lines# units
assert.ts
in src/powerquery-parser/language/ast/astUtils
408 115
naive.ts
in src/powerquery-parser/parser/parsers
2404 78
assert.ts
in src/powerquery-parser/language/type/typeUtils
588 74
typeGuards.ts
in src/powerquery-parser/language/ast/astUtils
237 60
lexer.ts
in src/powerquery-parser/lexer
1031 59
isType.ts
in src/powerquery-parser/language/type/typeUtils
161 39
xorNodeUtils.ts
in src/powerquery-parser/parser/nodeIdMap
228 37
taskUtils.ts
in src/powerquery-parser/task
232 29
ancestryUtils.ts
in src/powerquery-parser/parser/nodeIdMap
185 28
parseStateUtils.ts
in src/powerquery-parser/parser/parseState
292 27
categorize.ts
in src/powerquery-parser/language/type/typeUtils
742 24
isCompatible.ts
in src/powerquery-parser/language/type/typeUtils
425 24
isEqualType.ts
in src/powerquery-parser/language/type/typeUtils
221 23
constantUtils.ts
in src/powerquery-parser/language/constant
211 20
nodeIdMapIterator.ts
in src/powerquery-parser/parser/nodeIdMap
362 20
childSelectors.ts
in src/powerquery-parser/parser/nodeIdMap/nodeIdMapUtils
193 20
arrayUtils.ts
in src/powerquery-parser/common
160 18
factories.ts
in src/powerquery-parser/language/type/typeUtils
203 16
trace.ts
in src/powerquery-parser/common
112 15
assert.ts
in src/powerquery-parser/common
75 13
Files With Long Lines (Top 4)

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

File# lines# units# long lines
localization_drop.py
in scripts
38 - 1
lexer.ts
in src/powerquery-parser/lexer
1031 59 1
disambiguationUtils.ts
in src/powerquery-parser/parser/disambiguation
332 12 1
specializedSelectors.ts
in src/powerquery-parser/parser/nodeIdMap/nodeIdMapUtils
131 5 1