[{"data":1,"prerenderedAt":1119,"buildId":1120},["ShallowReactive",2],{"docs:\u002Freference\u002Ffindings":3},{"page":4,"section":16,"document":17,"credits":10,"prev":10,"next":1115},{"id":5,"path":6,"file":7,"title":8,"sourceTitle":8,"description":9,"tagline":9,"eyebrow":10,"credits":10,"keywords":11,"icon":12,"layout":13,"sidebar":14,"toc":14,"kind":10,"group":10,"navigation":14,"order":15},"findings","\u002Freference\u002Ffindings","reference\u002Ffindings.md","Findings format","Reference for glosslint findings: JSON and tree output formats, every field, the three finding codes, fix.kind rules, and matcher output.",null,[],"i-lucide-list-checks","article",true,1,"reference",{"nodes":18,"toc":1107},[19,39,47,56,91,611,627,633,660,691,699,705,875,883,889,898,959,964,973,1006,1023,1029,1066],[20,21,22,23,27,28,33,34,38],"p",{},"Every time glosslint spots a wrong spelling, wrong capitals, or an avoid word, it produces a finding with the location, reason, replacement, and term context. Use this reference when you parse ",[24,25,26],"code",{},"glosslint check --format json"," in scripts or CI, apply findings as a ",[29,30,32],"a",{"href":31},"\u002Fguide\u002Fagents","coding agent",", or read matcher output from the ",[29,35,37],{"href":36},"\u002Freference\u002Fapi","JavaScript API",".",[40,41,46],"h2",{"id":42,"anchor":43},"json-output",{"label":44,"icon":45},"Section titled \"JSON output\"","#","JSON output",[20,48,49,51,52,55],{},[24,50,26],{}," prints ",[24,53,54],{},"{ findings, summary }",":",[57,58,62],"pre",{"language":59,"frame":60,"class":61},"sh","terminal","shiki shiki-themes github-light-default github-dark-default dark:github-dark-default",[24,63,65],{"class":64},"language-sh",[66,67,70,74,78,81,84,88],"span",{"class":68,"style":69},"line","display: inline",[66,71,73],{"style":72},"color:#953800;--shiki-dark:#FFA657","npx",[66,75,77],{"style":76},"color:#0A3069;--shiki-dark:#A5D6FF"," glosslint",[66,79,80],{"style":76}," check",[66,82,83],{"style":76}," docs\u002Fguide\u002Friding.md",[66,85,87],{"style":86},"color:#0550AE;--shiki-dark:#79C0FF"," --format",[66,89,90],{"style":76}," json",[57,92,94],{"language":93,"class":61},"json",[24,95,97,103,104,103,113,103,118,103,132,103,144,103,156,103,168,103,180,103,192,103,204,103,238,103,250,103,258,103,270,103,282,103,292,103,297,103,304,103,316,103,328,103,338,103,342,103,352,103,357,103,361,103,372,103,382,103,393,103,404,103,415,103,426,103,437,103,468,103,474,103,485,103,496,103,505,103,509,103,515,103,523,103,528,103,533,103,538,103,545,103,557,103,569,103,580,103,591,103,601,103,606],{"class":96},"language-json",[66,98,99],{"class":68,"style":69},[66,100,102],{"style":101},"color:#1F2328;--shiki-dark:#E6EDF3","{","\n",[66,105,106,110],{"class":68,"style":69},[66,107,109],{"style":108},"color:#116329;--shiki-dark:#7EE787","  \"findings\"",[66,111,112],{"style":101},": [",[66,114,115],{"class":68,"style":69},[66,116,117],{"style":101},"    {",[66,119,120,123,126,129],{"class":68,"style":69},[66,121,122],{"style":108},"      \"code\"",[66,124,125],{"style":101},": ",[66,127,128],{"style":76},"\"GLOSSLINT_AVOID\"",[66,130,131],{"style":101},",",[66,133,134,137,139,142],{"class":68,"style":69},[66,135,136],{"style":108},"      \"file\"",[66,138,125],{"style":101},[66,140,141],{"style":76},"\"docs\u002Fguide\u002Friding.md\"",[66,143,131],{"style":101},[66,145,146,149,151,154],{"class":68,"style":69},[66,147,148],{"style":108},"      \"line\"",[66,150,125],{"style":101},[66,152,153],{"style":86},"3",[66,155,131],{"style":101},[66,157,158,161,163,166],{"class":68,"style":69},[66,159,160],{"style":108},"      \"column\"",[66,162,125],{"style":101},[66,164,165],{"style":86},"56",[66,167,131],{"style":101},[66,169,170,173,175,178],{"class":68,"style":69},[66,171,172],{"style":108},"      \"start\"",[66,174,125],{"style":101},[66,176,177],{"style":86},"71",[66,179,131],{"style":101},[66,181,182,185,187,190],{"class":68,"style":69},[66,183,184],{"style":108},"      \"end\"",[66,186,125],{"style":101},[66,188,189],{"style":86},"75",[66,191,131],{"style":101},[66,193,194,197,199,202],{"class":68,"style":69},[66,195,196],{"style":108},"      \"text\"",[66,198,125],{"style":101},[66,200,201],{"style":76},"\"rack\"",[66,203,131],{"style":101},[66,205,206,209,211,214,218,221,223,226,228,231,233,236],{"class":68,"style":69},[66,207,208],{"style":108},"      \"message\"",[66,210,125],{"style":101},[66,212,213],{"style":76},"\"Use ",[66,215,217],{"style":216},"color:#CF222E;--shiki-dark:#FF7B72","\\\"",[66,219,220],{"style":76},"dock",[66,222,217],{"style":216},[66,224,225],{"style":76}," instead of ",[66,227,217],{"style":216},[66,229,230],{"style":76},"rack",[66,232,217],{"style":216},[66,234,235],{"style":76},". Racks are unpowered. Dock: A powered stand where one bike is locked. A station is a group of docks. See https:\u002F\u002Fexample.com\u002Fdocs\u002Fdocks\"",[66,237,131],{"style":101},[66,239,240,243,245,248],{"class":68,"style":69},[66,241,242],{"style":108},"      \"why\"",[66,244,125],{"style":101},[66,246,247],{"style":76},"\"Racks are unpowered.\"",[66,249,131],{"style":101},[66,251,252,255],{"class":68,"style":69},[66,253,254],{"style":108},"      \"fix\"",[66,256,257],{"style":101},": {",[66,259,260,263,265,268],{"class":68,"style":69},[66,261,262],{"style":108},"        \"kind\"",[66,264,125],{"style":101},[66,266,267],{"style":76},"\"suggestion\"",[66,269,131],{"style":101},[66,271,272,275,277,280],{"class":68,"style":69},[66,273,274],{"style":108},"        \"replace\"",[66,276,125],{"style":101},[66,278,279],{"style":76},"\"dock\"",[66,281,131],{"style":101},[66,283,284,287,289],{"class":68,"style":69},[66,285,286],{"style":108},"        \"result\"",[66,288,125],{"style":101},[66,290,291],{"style":76},"\"Unlock a bike at any station, then return it to a free dock when you finish.\"",[66,293,294],{"class":68,"style":69},[66,295,296],{"style":101},"      },",[66,298,299,302],{"class":68,"style":69},[66,300,301],{"style":108},"      \"term\"",[66,303,257],{"style":101},[66,305,306,309,311,314],{"class":68,"style":69},[66,307,308],{"style":108},"        \"term\"",[66,310,125],{"style":101},[66,312,313],{"style":76},"\"Dock\"",[66,315,131],{"style":101},[66,317,318,321,323,326],{"class":68,"style":69},[66,319,320],{"style":108},"        \"description\"",[66,322,125],{"style":101},[66,324,325],{"style":76},"\"A powered stand where one bike is locked.\"",[66,327,131],{"style":101},[66,329,330,333,335],{"class":68,"style":69},[66,331,332],{"style":108},"        \"nuance\"",[66,334,125],{"style":101},[66,336,337],{"style":76},"\"A station is a group of docks.\"",[66,339,340],{"class":68,"style":69},[66,341,296],{"style":101},[66,343,344,347,349],{"class":68,"style":69},[66,345,346],{"style":108},"      \"see\"",[66,348,125],{"style":101},[66,350,351],{"style":76},"\"https:\u002F\u002Fexample.com\u002Fdocs\u002Fdocks\"",[66,353,354],{"class":68,"style":69},[66,355,356],{"style":101},"    },",[66,358,359],{"class":68,"style":69},[66,360,117],{"style":101},[66,362,363,365,367,370],{"class":68,"style":69},[66,364,122],{"style":108},[66,366,125],{"style":101},[66,368,369],{"style":76},"\"GLOSSLINT_TERM\"",[66,371,131],{"style":101},[66,373,374,376,378,380],{"class":68,"style":69},[66,375,136],{"style":108},[66,377,125],{"style":101},[66,379,141],{"style":76},[66,381,131],{"style":101},[66,383,384,386,388,391],{"class":68,"style":69},[66,385,148],{"style":108},[66,387,125],{"style":101},[66,389,390],{"style":86},"4",[66,392,131],{"style":101},[66,394,395,397,399,402],{"class":68,"style":69},[66,396,160],{"style":108},[66,398,125],{"style":101},[66,400,401],{"style":86},"15",[66,403,131],{"style":101},[66,405,406,408,410,413],{"class":68,"style":69},[66,407,172],{"style":108},[66,409,125],{"style":101},[66,411,412],{"style":86},"107",[66,414,131],{"style":101},[66,416,417,419,421,424],{"class":68,"style":69},[66,418,184],{"style":108},[66,420,125],{"style":101},[66,422,423],{"style":86},"113",[66,425,131],{"style":101},[66,427,428,430,432,435],{"class":68,"style":69},[66,429,196],{"style":108},[66,431,125],{"style":101},[66,433,434],{"style":76},"\"e-bike\"",[66,436,131],{"style":101},[66,438,439,441,443,446,448,451,453,456,458,461,463,466],{"class":68,"style":69},[66,440,208],{"style":108},[66,442,125],{"style":101},[66,444,445],{"style":76},"\"",[66,447,217],{"style":216},[66,449,450],{"style":76},"e-bike",[66,452,217],{"style":216},[66,454,455],{"style":76}," is spelled ",[66,457,217],{"style":216},[66,459,460],{"style":76},"eBike",[66,462,217],{"style":216},[66,464,465],{"style":76},".\"",[66,467,131],{"style":101},[66,469,470,472],{"class":68,"style":69},[66,471,254],{"style":108},[66,473,257],{"style":101},[66,475,476,478,480,483],{"class":68,"style":69},[66,477,262],{"style":108},[66,479,125],{"style":101},[66,481,482],{"style":76},"\"autofix\"",[66,484,131],{"style":101},[66,486,487,489,491,494],{"class":68,"style":69},[66,488,274],{"style":108},[66,490,125],{"style":101},[66,492,493],{"style":76},"\"eBike\"",[66,495,131],{"style":101},[66,497,498,500,502],{"class":68,"style":69},[66,499,286],{"style":108},[66,501,125],{"style":101},[66,503,504],{"style":76},"\"Check out our eBike fleet if the hill feels long.\"",[66,506,507],{"class":68,"style":69},[66,508,296],{"style":101},[66,510,511,513],{"class":68,"style":69},[66,512,301],{"style":108},[66,514,257],{"style":101},[66,516,517,519,521],{"class":68,"style":69},[66,518,308],{"style":108},[66,520,125],{"style":101},[66,522,493],{"style":76},[66,524,525],{"class":68,"style":69},[66,526,527],{"style":101},"      }",[66,529,530],{"class":68,"style":69},[66,531,532],{"style":101},"    }",[66,534,535],{"class":68,"style":69},[66,536,537],{"style":101},"  ],",[66,539,540,543],{"class":68,"style":69},[66,541,542],{"style":108},"  \"summary\"",[66,544,257],{"style":101},[66,546,547,550,552,555],{"class":68,"style":69},[66,548,549],{"style":108},"    \"files\"",[66,551,125],{"style":101},[66,553,554],{"style":86},"1",[66,556,131],{"style":101},[66,558,559,562,564,567],{"class":68,"style":69},[66,560,561],{"style":108},"    \"findings\"",[66,563,125],{"style":101},[66,565,566],{"style":86},"2",[66,568,131],{"style":101},[66,570,571,574,576,578],{"class":68,"style":69},[66,572,573],{"style":108},"    \"GLOSSLINT_TERM\"",[66,575,125],{"style":101},[66,577,554],{"style":86},[66,579,131],{"style":101},[66,581,582,585,587,589],{"class":68,"style":69},[66,583,584],{"style":108},"    \"GLOSSLINT_AVOID\"",[66,586,125],{"style":101},[66,588,554],{"style":86},[66,590,131],{"style":101},[66,592,593,596,598],{"class":68,"style":69},[66,594,595],{"style":108},"    \"GLOSSLINT_CASE\"",[66,597,125],{"style":101},[66,599,600],{"style":86},"0",[66,602,603],{"class":68,"style":69},[66,604,605],{"style":101},"  }",[66,607,608],{"class":68,"style":69},[66,609,610],{"style":101},"}",[20,612,613,614,617,618,622,623,626],{},"The ",[24,615,616],{},"summary"," object holds the number of checked files, the total finding count, and a count per finding code. See ",[29,619,621],{"href":620},"\u002Fintegrations\u002Fcli","CLI"," for ",[24,624,625],{},"glosslint check"," flags and exit codes.",[40,628,632],{"id":629,"anchor":630},"tree-format",{"label":631,"icon":45},"Section titled \"Tree format\"","Tree format",[20,634,635,636,639,640,642,643,639,646,639,649,652,653,656,657,659],{},"Without ",[24,637,638],{},"--format json",", ",[24,641,625],{}," prints each finding as a tree with its code, reported text, file position, and branches for ",[24,644,645],{},"why",[24,647,648],{},"fix",[24,650,651],{},"term",", and ",[24,654,655],{},"see"," when present. Here is one finding from ",[24,658,625],{}," on the bike-share docs:",[57,661,663],{"language":662,"class":61},"txt",[24,664,666,103,671,103,676,103,681,103,686],{"class":665},"language-txt",[66,667,668],{"class":68,"style":69},[66,669,670],{},"[GLOSSLINT_AVOID] \"rack\" in docs\u002Fguide\u002Friding.md:3:56",[66,672,673],{"class":68,"style":69},[66,674,675],{},"├▶ why: Racks are unpowered.",[66,677,678],{"class":68,"style":69},[66,679,680],{},"├▶ fix: Use \"dock\": \"Unlock a bike at any station, then return it to a free dock when you finish.\"",[66,682,683],{"class":68,"style":69},[66,684,685],{},"├▶ term: Dock, a powered stand where one bike is locked.",[66,687,688],{"class":68,"style":69},[66,689,690],{},"╰▶ see: https:\u002F\u002Fexample.com\u002Fdocs\u002Fdocks",[20,692,613,693,695,696,38],{},[29,694,621],{"href":620}," prints a summary line after the last finding, such as ",[24,697,698],{},"6 findings in 2 of 2 files.",[40,700,704],{"id":701,"anchor":702},"finding-fields",{"label":703,"icon":45},"Section titled \"Finding fields\"","Finding fields",[706,707,708,721],"table",{},[709,710,711],"thead",{},[712,713,714,718],"tr",{},[715,716,717],"th",{},"Field",[715,719,720],{},"Meaning",[722,723,724,745,766,779,789,804,813,827,839,849,866],"tbody",{},[712,725,726,731],{},[727,728,729],"td",{},[24,730,24],{},[727,732,733,736,737,740,741,744],{},[24,734,735],{},"GLOSSLINT_TERM"," for other splits or hyphens, ",[24,738,739],{},"GLOSSLINT_AVOID"," for an avoid word, ",[24,742,743],{},"GLOSSLINT_CASE"," for wrong capitals.",[712,746,747,757],{},[727,748,749,639,752,639,754],{},[24,750,751],{},"file",[24,753,68],{},[24,755,756],{},"column",[727,758,759,760,762,763,765],{},"Where the text starts. ",[24,761,68],{}," and ",[24,764,756],{}," count from 1.",[712,767,768,776],{},[727,769,770,639,773],{},[24,771,772],{},"start",[24,774,775],{},"end",[727,777,778],{},"Offsets of the text in the file.",[712,780,781,786],{},[727,782,783],{},[24,784,785],{},"text",[727,787,788],{},"The reported text, as written.",[712,790,791,796],{},[727,792,793],{},[24,794,795],{},"message",[727,797,798,799,803],{},"The one-line message ",[29,800,802],{"href":801},"\u002Fintegrations\u002Feslint","ESLint"," prints.",[712,805,806,810],{},[727,807,808],{},[24,809,645],{},[727,811,812],{},"The avoid word's reason, or the term's nuance. Absent when there is neither.",[712,814,815,820],{},[727,816,817],{},[24,818,819],{},"fix.kind",[727,821,822,823,38],{},"What the fix may do. See ",[29,824,826],{"href":825},"#fix-kinds","Fix kinds",[712,828,829,834],{},[727,830,831],{},[24,832,833],{},"fix.replace",[727,835,836,837,38],{},"The text that replaces ",[24,838,785],{},[712,840,841,846],{},[727,842,843],{},[24,844,845],{},"fix.result",[727,847,848],{},"The line as it reads once fixed.",[712,850,851,855],{},[727,852,853],{},[24,854,651],{},[727,856,857,858,639,860,762,863,38],{},"The term's ",[24,859,651],{},[24,861,862],{},"description",[24,864,865],{},"nuance",[712,867,868,872],{},[727,869,870],{},[24,871,655],{},[727,873,874],{},"The term's first link.",[20,876,877,879,880,882],{},[24,878,648],{}," is omitted when a finding cannot be replaced safely in place, such as a match that spans a line break. In ",[29,881,802],{"href":801},", strings whose escapes the fix would break and YAML block scalars also report without a fix.",[40,884,888],{"id":885,"anchor":886},"finding-codes",{"label":887,"icon":45},"Section titled \"Finding codes\"","Finding codes",[20,890,891,892,894,895,38],{},"Every finding carries one of three stable codes. In ",[29,893,802],{"href":801},", the code is also the rule diagnostic's ",[24,896,897],{},"messageId",[706,899,900,910],{},[709,901,902],{},[712,903,904,907],{},[715,905,906],{},"Code",[715,908,909],{},"Reported when",[722,911,912,926,940],{},[712,913,914,918],{},[727,915,916],{},[24,917,735],{},[727,919,920,921,622,923,925],{},"A term is written with different word splits or hyphens, such as ",[24,922,434],{},[24,924,460],{},", or an avoid word shares a term's key, or an identifier splits a term wrongly.",[712,927,928,932],{},[727,929,930],{},[24,931,739],{},[727,933,934,935,225,937,38],{},"Text contains one of a term's avoid words, such as ",[24,936,201],{},[24,938,939],{},"Dock",[712,941,942,946],{},[727,943,944],{},[24,945,743],{},[727,947,948,949,952,953,622,956,38],{},"A term or abbreviation has the wrong capitals for its casing rule or text kind, such as ",[24,950,951],{},"\"day pass\""," in a label or ",[24,954,955],{},"\"Apple pay\"",[24,957,958],{},"Apple Pay",[40,960,826],{"id":961,"anchor":962},"fix-kinds",{"label":963,"icon":45},"Section titled \"Fix kinds\"",[20,965,966,968,969,972],{},[24,967,819],{}," tells tools, editors, and ",[29,970,971],{"href":31},"coding agents"," what is safe to change automatically:",[974,975,976,994,1000],"ul",{},[977,978,979,982,983,762,985,989,990,38],"li",{},[24,980,981],{},"autofix",": a spelling or casing fix. It is safe to apply without asking. ",[29,984,802],{"href":801},[29,986,988],{"href":987},"\u002Fintegrations\u002Fx18n","x18n"," offer it as a suggestion instead when only the text's shape decided its kind, as described in ",[29,991,993],{"href":992},"\u002Fguide\u002Fcasing","Casing rules",[977,995,996,999],{},[24,997,998],{},"suggestion",": the term to use instead of an avoid word. Someone has to check that the meaning fits.",[977,1001,1002,1005],{},[24,1003,1004],{},"rename",": a new name for an identifier. It touches every caller, so nothing applies it alone.",[1007,1008,1011],"github-callout",{"type":1009,"title":1010},"note","Note",[20,1012,613,1013,1015,1016,639,1018,652,1020,1022],{},[29,1014,621],{"href":620}," never modifies files. It reports ",[24,1017,819],{},[24,1019,833],{},[24,1021,845],{}," so you or an agent can apply changes yourself.",[40,1024,1028],{"id":1025,"anchor":1026},"findings-in-javascript",{"label":1027,"icon":45},"Section titled \"Findings in JavaScript\"","Findings in JavaScript",[20,1030,1031,1032,1035,1036,1039,1040,639,1042,639,1044,652,1046,652,1048,1050,1051,1054,1055,1058,1059,762,1061,1063,1064,38],{},"In code, ",[24,1033,1034],{},"createMatcher(corpus).check(text, kind)"," returns the findings for one string as ",[24,1037,1038],{},"Finding[]",". They have the same shape as the JSON output above without ",[24,1041,751],{},[24,1043,68],{},[24,1045,756],{},[24,1047,845],{},[24,1049,651],{}," is the whole ",[24,1052,1053],{},"Term"," object rather than the ",[24,1056,1057],{},"{ term, description, nuance }"," summary. ",[24,1060,772],{},[24,1062,775],{}," are character offsets in ",[24,1065,785],{},[20,1067,1068,1071,1072,1075,1076,1079,1080,1082,1083,1085,1086,225,1089,1092,1093,622,1095,639,1098,639,1101,652,1104,38],{},[24,1069,1070],{},"formatFindings(findings, options)"," prints an array of ",[24,1073,1074],{},"Finding"," or ",[24,1077,1078],{},"CliFinding"," objects in the tree format shown above, followed by a summary line. For plain ",[24,1081,1074],{}," objects without a ",[24,1084,751],{},", the headline prints ",[24,1087,1088],{},"at offset \u003Cstart>",[24,1090,1091],{},"in \u003Cfile>:\u003Cline>:\u003Ccolumn>",". See ",[29,1094,37],{"href":36},[24,1096,1097],{},"createMatcher",[24,1099,1100],{},"formatFinding",[24,1102,1103],{},"formatFindings",[24,1105,1106],{},"toJson",[1108,1110,1111,1112,1113,1114],{"id":42,"depth":1109,"text":46},2,{"id":629,"depth":1109,"text":632},{"id":701,"depth":1109,"text":704},{"id":885,"depth":1109,"text":888},{"id":961,"depth":1109,"text":826},{"id":1025,"depth":1109,"text":1028},{"path":1116,"title":1117,"description":1118},"\u002Freference\u002Fconfig-errors","Config errors","Reference for glosslint config errors: GlosslintConfigError fields, exit code 2, all error codes, and fixes for GLOSSLINT_C001 to GLOSSLINT_C011.",1795627930578,"94d466e2-147b-430f-b5f0-25c6a986e462"]