• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

forst-lang / forst / 24005706569
76%

Build:
DEFAULT BRANCH: main
Ran 05 Apr 2026 04:33PM UTC
Jobs 1
Files 168
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Apr 2026 04:31PM UTC coverage: 58.349% (-1.2%) from 59.561%
24005706569

push

github

haveyaseen
feat(fmt): add pretty-printer, forst fmt, and LSP formatting

Introduce internal/printer for lex/parse → pretty-print plus whitespace normalization,
shared by `forst fmt` and LSP textDocument/formatting. Preserve line and block comments
via ast.CommentNode in the parser and emit go-style blank lines between top-level decls.
Add `forst fmt` with gofmt-like -l/-n and tab options, plus tests across printer, fmt,
and LSP.

Example:

```bash
forst fmt .
```

```forst
package main

// doc stays put
func f(): Int {
	// body comment
	return 1
}
```

320 of 986 new or added lines in 18 files covered. (32.45%)

2 existing lines in 1 file now uncovered.

13292 of 22780 relevant lines covered (58.35%)

11.1 hits per line

Uncovered Changes

Lines Coverage ∆ File
464
22.41
forst/internal/printer/printer.go
81
7.95
forst/internal/printer/typeprint.go
57
0.0
forst/internal/printer/ops.go
19
73.61
forst/cmd/forst/fmt.go
15
76.19
forst/internal/printer/whitespace.go
6
1.46
-0.04% forst/cmd/forst/main.go
6
59.61
-0.5% forst/internal/hasher/hasher.go
5
53.78
-1.15% forst/internal/transformer/go/typeguard.go
3
71.43
-0.89% forst/internal/typechecker/infer.go
2
84.96
-0.16% forst/cmd/forst/lsp/document.go
2
87.1
5.52% forst/cmd/forst/lsp/formatting.go
2
32.96
-0.06% forst/internal/transformer/go/statement.go
2
70.33
-0.78% forst/internal/typechecker/collect.go
1
93.75
-6.25% forst/internal/parser/block.go
1
60.5
-0.18% forst/internal/transformer/go/function.go

Coverage Regressions

Lines Coverage ∆ File
2
34.41
-0.36% forst/internal/transformer/go/shape.go
Subprojects
ID Flag name Job ID Ran Files Coverage
1 /jobs/179804801 24005706569.1 05 Apr 2026 04:33PM UTC 168
58.35
GitHub Action Run
Source Files on build 24005706569
  • Tree
  • List 168
  • Changed 14
  • Source Changed 0
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • cf9b098e on github
  • Prev Build on main (#24005313193)
  • Next Build on main (#24005727847)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc