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

source-academy / js-slang / 15237418122

25 May 2025 11:31AM UTC coverage: 77.048% (-3.5%) from 80.538%
15237418122

push

github

web-flow
Rewrite: Stepper (#1742)

3433 of 4826 branches covered (71.14%)

Branch coverage included in aggregate %.

1032 of 1260 new or added lines in 27 files covered. (81.9%)

440 existing lines in 29 files now uncovered.

10099 of 12737 relevant lines covered (79.29%)

142411.96 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

91.67
/src/parser/source/rules/noSpreadInArray.ts
1
import type { SpreadElement } from 'estree'
2
import { RuleError } from '../../errors'
77✔
3
import type { Rule } from '../../types'
4

5
export class NoSpreadInArray extends RuleError<SpreadElement> {
77✔
6
  public explain() {
7
    return 'Spread syntax is not allowed in arrays.'
1✔
8
  }
9

10
  public elaborate() {
UNCOV
11
    return ''
×
12
  }
13
}
14

15
const noSpreadInArray: Rule<SpreadElement> = {
77✔
16
  name: 'no-assignment-expression',
17

18
  checkers: {
19
    SpreadElement(node, ancestors) {
20
      const parent = ancestors[ancestors.length - 2]
12✔
21

22
      if (parent.type === 'CallExpression') {
12✔
23
        return []
11✔
24
      } else {
25
        return [new NoSpreadInArray(node)]
1✔
26
      }
27
    }
28
  }
29
}
30

31
export default noSpreadInArray
77✔
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

© 2025 Coveralls, Inc