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

DanielXMoore / Civet / 24354788939
96%

Build:
DEFAULT BRANCH: main
Ran 13 Apr 2026 04:34PM UTC
Jobs 1
Files 42
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

13 Apr 2026 04:32PM UTC coverage: 95.377% (+0.007%) from 95.37%
24354788939

push

github

web-flow
Add jsCompat flag with jsArrowFunction option (#1949)

* Add jsCompat flag with jsArrowFunction option (issue #270)

Adds a `jsCompat` meta-flag and `jsArrowFunction` option to make Civet
closer to ECMAScript compatibility:

- `jsArrowFunction: true` allows single bare identifier as fat/thin arrow
  parameter without parentheses: `x => x + 1` → `(x) => x + 1`
- In jsArrowFunction mode, implicit zero-argument arrow functions without
  parens (`=> body`) are disabled (use `() => body` instead)
- `jsCompat` expands to enable `jsArrowFunction` (and future flags)

Closes #270

Co-authored-by: Daniel X Moore <STRd6@users.noreply.github.com>

* Rename jsCompat/jsArrowFunction to esCompat/esArrowFunction

Co-authored-by: Daniel X Moore <STRd6@users.noreply.github.com>

* Rename jsCompat/jsArrowFunction → esCompat/esArrowFunction, fix guard pattern, add async test

- Rename `jsCompat` → `esCompat` and `jsArrowFunction` → `esArrowFunction` throughout
- Rename test file `js-arrow-function.civet` → `es-arrow-function.civet`
- Refactor grammar rules to use `ESArrowFunctionEnabled` zero-consuming guard rule
  following the established `CoffeeBooleansEnabled`/`CoffeeDoEnabled` pattern
- Use `!ESArrowFunctionEnabled` prefix for `ImplicitArrowParameters` instead of
  inline config check
- Add missing test for `async => body` throwing in esArrowFunction mode
- Add ECMAScript Compatibility section to `reference.md` to fix broken anchor links

Co-authored-by: Daniel X Moore <STRd6@users.noreply.github.com>

---------

Co-authored-by: claude[bot] <41898282+claude[bot]@users.noreply.github.com>
Co-authored-by: Daniel X Moore <STRd6@users.noreply.github.com>

4251 of 4634 branches covered (91.74%)

Branch coverage included in aggregate %.

55 of 55 new or added lines in 2 files covered. (100.0%)

20426 of 21239 relevant lines covered (96.17%)

47186.42 hits per line

Jobs
ID Job ID Ran Files Coverage
1 24354788939.1 13 Apr 2026 04:34PM UTC 42
95.38
GitHub Action Run
Source Files on build 24354788939
  • Tree
  • List 42
  • Changed 14
  • Source Changed 2
  • Coverage Changed 14
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #24354788939
  • b0bd3a50 on github
  • Prev Build on main (#24348318984)
  • Next Build on main (#24354838295)
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