Skip to content

Port 125 ember-template-lint rules for gjs/gts strict mode templates #3794

Port 125 ember-template-lint rules for gjs/gts strict mode templates

Port 125 ember-template-lint rules for gjs/gts strict mode templates #3794

Triggered via pull request January 30, 2026 23:12
Status Failure
Total duration 2m 16s
Artifacts

ci.yml

on: pull_request
self-lint
54s
self-lint
Matrix: build
Fit to window
Zoom out
Zoom in

Annotations

48 errors
self-lint: lib/rules/template-no-index-component-invocation.js#L51
Use report message placeholders instead of string concatenation
self-lint: lib/rules/template-no-index-component-invocation.js#L28
Use report message placeholders instead of string concatenation
self-lint: lib/rules/template-no-index-component-invocation.js#L19
Function 'lintIndexUsage' has a complexity of 23. Maximum allowed is 20
self-lint: lib/rules/template-no-curly-component-invocation.js#L176
Use report message placeholders instead of string concatenation
self-lint: lib/rules/template-no-curly-component-invocation.js#L155
Use report message placeholders instead of string concatenation
self-lint: lib/rules/template-modifier-name-case.js#L30
Move function 'isModifierHelper' to the outer scope
self-lint: lib/rules/template-modifier-name-case.js#L25
Move function 'generateErrorMessage' to the outer scope
self-lint: lib/rules/template-modifier-name-case.js#L19
The messageId "dasherized" is never used
self-lint: lib/rules/template-modifier-name-case.js#L2
Prefer `String#replaceAll()` over `String#replace()`
self-lint: lib/rules/template-inline-link-to.js#L59
Unexpected string concatenation
tests/lib/rules-preprocessor/gjs-gts-parser-test.js > template-vars > invalid > <template> {{noop}} </template> : tests/lib/rules-preprocessor/gjs-gts-parser-test.js#L514
AssertionError: expected [ { …(8) }, …(1) ] to have a length of 1 but got 2 - Expected + Received - 1 + 2 ❯ tests/lib/rules-preprocessor/gjs-gts-parser-test.js:514:30
tests/lib/rules-preprocessor/gjs-gts-parser-test.js > template-vars > invalid > const noop = () => {}; <template> {{on 'click' noop}} </template> : tests/lib/rules-preprocessor/gjs-gts-parser-test.js#L514
AssertionError: expected [ { …(8) }, …(1) ] to have a length of 1 but got 2 - Expected + Received - 1 + 2 ❯ tests/lib/rules-preprocessor/gjs-gts-parser-test.js:514:30
tests/lib/rules-preprocessor/gjs-gts-parser-test.js > template-vars > invalid > import Component from '@glimmer/component'; export default class MyComponent extends Component { <template>Hello!</template> }: tests/lib/rules-preprocessor/gjs-gts-parser-test.js#L514
AssertionError: expected [ { …(8) }, { …(8) } ] to have a length of 1 but got 2 - Expected + Received - 1 + 2 ❯ tests/lib/rules-preprocessor/gjs-gts-parser-test.js:514:30
tests/lib/rules-preprocessor/gjs-gts-parser-test.js > template-vars > invalid > import { on } from '@ember/modifier'; const noop = () => {}; <template> <div {{on 'click' noop}} /> </template> <template> <div {{on 'click' noop}} /> </template> : tests/lib/rules-preprocessor/gjs-gts-parser-test.js#L514
AssertionError: expected [ { …(8) }, { …(8) }, { …(10) } ] to have a length of 1 but got 3 - Expected + Received - 1 + 3 ❯ tests/lib/rules-preprocessor/gjs-gts-parser-test.js:514:30
tests/lib/rules-preprocessor/gjs-gts-parser-test.js > template-vars > valid > const Foo = <template>hi</template>; <template> <Foo /> </template> : tests/lib/rules-preprocessor/gjs-gts-parser-test.js#L497
AssertionError: expected [ { …(8) }, { …(8) } ] to have a length of +0 but got 2 - Expected + Received - 0 + 2 ❯ tests/lib/rules-preprocessor/gjs-gts-parser-test.js:497:38
tests/lib/rules-preprocessor/gjs-gts-parser-test.js > template-vars > valid > import { on } from '@ember/modifier'; const noop = () => {}; export default <template> <div {{on 'click' noop}} /> </template> : tests/lib/rules-preprocessor/gjs-gts-parser-test.js#L497
AssertionError: expected [ { …(8) } ] to have a length of +0 but got 1 - Expected + Received - 0 + 1 ❯ tests/lib/rules-preprocessor/gjs-gts-parser-test.js:497:38
tests/recommended.js > recommended rules > has the right list: tests/recommended.js#L14
Error: Snapshot `recommended rules > has the right list 1` mismatched - Expected + Received @@ -65,8 +65,18 @@ "require-return-from-computed", "require-super-in-lifecycle-hooks", "require-tagless-components", "require-valid-css-selector-in-test-helpers", "routes-segments-snake-case", + "template-no-curly-component-invocation", + "template-no-extra-mut-helper-argument", + "template-no-index-component-invocation", + "template-no-redundant-role", + "template-no-splattributes-with-class", + "template-no-yield-block-params-to-else-inverse", + "template-require-iframe-src-attribute", + "template-require-splattributes", + "template-require-valid-named-block-naming-format", + "template-simple-modifiers", "use-brace-expansion", "use-ember-data-rfc-395-imports", ] ❯ tests/recommended.js:14:20
build (ubuntu, 22.x)
The strategy configuration was canceled because "build.ubuntu_20_x" failed
tests/lib/rules-preprocessor/gjs-gts-parser-test.js > template-vars > invalid > <template> {{noop}} </template> : tests/lib/rules-preprocessor/gjs-gts-parser-test.js#L514
AssertionError: expected [ { …(8) }, …(1) ] to have a length of 1 but got 2 - Expected + Received - 1 + 2 ❯ tests/lib/rules-preprocessor/gjs-gts-parser-test.js:514:30
tests/lib/rules-preprocessor/gjs-gts-parser-test.js > template-vars > invalid > const noop = () => {}; <template> {{on 'click' noop}} </template> : tests/lib/rules-preprocessor/gjs-gts-parser-test.js#L514
AssertionError: expected [ { …(8) }, …(1) ] to have a length of 1 but got 2 - Expected + Received - 1 + 2 ❯ tests/lib/rules-preprocessor/gjs-gts-parser-test.js:514:30
tests/lib/rules-preprocessor/gjs-gts-parser-test.js > template-vars > invalid > import Component from '@glimmer/component'; export default class MyComponent extends Component { <template>Hello!</template> }: tests/lib/rules-preprocessor/gjs-gts-parser-test.js#L514
AssertionError: expected [ { …(8) }, { …(8) } ] to have a length of 1 but got 2 - Expected + Received - 1 + 2 ❯ tests/lib/rules-preprocessor/gjs-gts-parser-test.js:514:30
tests/lib/rules-preprocessor/gjs-gts-parser-test.js > template-vars > invalid > import { on } from '@ember/modifier'; const noop = () => {}; <template> <div {{on 'click' noop}} /> </template> <template> <div {{on 'click' noop}} /> </template> : tests/lib/rules-preprocessor/gjs-gts-parser-test.js#L514
AssertionError: expected [ { …(8) }, { …(8) }, { …(10) } ] to have a length of 1 but got 3 - Expected + Received - 1 + 3 ❯ tests/lib/rules-preprocessor/gjs-gts-parser-test.js:514:30
tests/lib/rules-preprocessor/gjs-gts-parser-test.js > template-vars > valid > const Foo = <template>hi</template>; <template> <Foo /> </template> : tests/lib/rules-preprocessor/gjs-gts-parser-test.js#L497
AssertionError: expected [ { …(8) }, { …(8) } ] to have a length of +0 but got 2 - Expected + Received - 0 + 2 ❯ tests/lib/rules-preprocessor/gjs-gts-parser-test.js:497:38
tests/lib/rules-preprocessor/gjs-gts-parser-test.js > template-vars > valid > import { on } from '@ember/modifier'; const noop = () => {}; export default <template> <div {{on 'click' noop}} /> </template> : tests/lib/rules-preprocessor/gjs-gts-parser-test.js#L497
AssertionError: expected [ { …(8) } ] to have a length of +0 but got 1 - Expected + Received - 0 + 1 ❯ tests/lib/rules-preprocessor/gjs-gts-parser-test.js:497:38
tests/recommended.js > recommended rules > has the right list: tests/recommended.js#L14
Error: Snapshot `recommended rules > has the right list 1` mismatched - Expected + Received @@ -65,8 +65,18 @@ "require-return-from-computed", "require-super-in-lifecycle-hooks", "require-tagless-components", "require-valid-css-selector-in-test-helpers", "routes-segments-snake-case", + "template-no-curly-component-invocation", + "template-no-extra-mut-helper-argument", + "template-no-index-component-invocation", + "template-no-redundant-role", + "template-no-splattributes-with-class", + "template-no-yield-block-params-to-else-inverse", + "template-require-iframe-src-attribute", + "template-require-splattributes", + "template-require-valid-named-block-naming-format", + "template-simple-modifiers", "use-brace-expansion", "use-ember-data-rfc-395-imports", ] ❯ tests/recommended.js:14:20
build (windows, 22.x)
The strategy configuration was canceled because "build.ubuntu_20_x" failed
build (windows, 22.x)
The operation was canceled.
build (windows, 20.x)
The strategy configuration was canceled because "build.ubuntu_20_x" failed
build (windows, 20.x)
The operation was canceled.
build (windows, 18.x)
The strategy configuration was canceled because "build.ubuntu_20_x" failed
build (windows, 18.x)
The operation was canceled.
build (ubuntu, 18.x)
The strategy configuration was canceled because "build.ubuntu_20_x" failed
tests/lib/rules-preprocessor/gjs-gts-parser-test.js > template-vars > invalid > <template> {{noop}} </template> : tests/lib/rules-preprocessor/gjs-gts-parser-test.js#L514
AssertionError: expected [ { …(8) }, …(1) ] to have a length of 1 but got 2 - Expected + Received - 1 + 2 ❯ tests/lib/rules-preprocessor/gjs-gts-parser-test.js:514:30
tests/lib/rules-preprocessor/gjs-gts-parser-test.js > template-vars > invalid > const noop = () => {}; <template> {{on 'click' noop}} </template> : tests/lib/rules-preprocessor/gjs-gts-parser-test.js#L514
AssertionError: expected [ { …(8) }, …(1) ] to have a length of 1 but got 2 - Expected + Received - 1 + 2 ❯ tests/lib/rules-preprocessor/gjs-gts-parser-test.js:514:30
tests/lib/rules-preprocessor/gjs-gts-parser-test.js > template-vars > invalid > import Component from '@glimmer/component'; export default class MyComponent extends Component { <template>Hello!</template> }: tests/lib/rules-preprocessor/gjs-gts-parser-test.js#L514
AssertionError: expected [ { …(8) }, { …(8) } ] to have a length of 1 but got 2 - Expected + Received - 1 + 2 ❯ tests/lib/rules-preprocessor/gjs-gts-parser-test.js:514:30
tests/lib/rules-preprocessor/gjs-gts-parser-test.js > template-vars > invalid > import { on } from '@ember/modifier'; const noop = () => {}; <template> <div {{on 'click' noop}} /> </template> <template> <div {{on 'click' noop}} /> </template> : tests/lib/rules-preprocessor/gjs-gts-parser-test.js#L514
AssertionError: expected [ { …(8) }, { …(8) }, { …(10) } ] to have a length of 1 but got 3 - Expected + Received - 1 + 3 ❯ tests/lib/rules-preprocessor/gjs-gts-parser-test.js:514:30
tests/lib/rules-preprocessor/gjs-gts-parser-test.js > template-vars > valid > const Foo = <template>hi</template>; <template> <Foo /> </template> : tests/lib/rules-preprocessor/gjs-gts-parser-test.js#L497
AssertionError: expected [ { …(8) }, { …(8) } ] to have a length of +0 but got 2 - Expected + Received - 0 + 2 ❯ tests/lib/rules-preprocessor/gjs-gts-parser-test.js:497:38
tests/lib/rules-preprocessor/gjs-gts-parser-test.js > template-vars > valid > import { on } from '@ember/modifier'; const noop = () => {}; export default <template> <div {{on 'click' noop}} /> </template> : tests/lib/rules-preprocessor/gjs-gts-parser-test.js#L497
AssertionError: expected [ { …(8) } ] to have a length of +0 but got 1 - Expected + Received - 0 + 1 ❯ tests/lib/rules-preprocessor/gjs-gts-parser-test.js:497:38
tests/recommended.js > recommended rules > has the right list: tests/recommended.js#L14
Error: Snapshot `recommended rules > has the right list 1` mismatched - Expected + Received @@ -65,8 +65,18 @@ "require-return-from-computed", "require-super-in-lifecycle-hooks", "require-tagless-components", "require-valid-css-selector-in-test-helpers", "routes-segments-snake-case", + "template-no-curly-component-invocation", + "template-no-extra-mut-helper-argument", + "template-no-index-component-invocation", + "template-no-redundant-role", + "template-no-splattributes-with-class", + "template-no-yield-block-params-to-else-inverse", + "template-require-iframe-src-attribute", + "template-require-splattributes", + "template-require-valid-named-block-naming-format", + "template-simple-modifiers", "use-brace-expansion", "use-ember-data-rfc-395-imports", ] ❯ tests/recommended.js:14:20