Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions transforms/ember-object/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,7 @@ const Foo7 = EmberObject.extend({
/*
Expect error:
ValidationError: Validation errors for class 'Foo7':
[actions]: Transform not supported - [click]: action name matches one of the lifecycle hooks. Rename and try again. See https://github.com/scalvert/ember-native-class-codemod/issues/34 for more details
[actions]: Transform not supported - [click]: action name matches one of the lifecycle hooks. Rename and try again. See https://github.com/ember-codemods/ember-native-class-codemod/issues/34 for more details
*/

// Do not transform as action name matches lifecycle hook
Expand Down Expand Up @@ -1012,7 +1012,7 @@ class Foo1 extends EmberObject {
// class's actions to be safe. This should be refactored to call a normal method
// on the parent class. If the parent class has not been converted to native
// classes, it may need to be refactored as well. See
// https://github.com/scalvert/ember-native-class-codemod/blob/master/README.md
// https://github.com/ember-codemods/ember-native-class-codemod/blob/master/README.md
// for more details.
super.actions.baz.call(this, ...arguments);
}
Expand Down Expand Up @@ -2071,7 +2071,7 @@ export default class _Runtime extends Runtime.extend(MyMixin) {
// class's actions to be safe. This should be refactored to call a normal method
// on the parent class. If the parent class has not been converted to native
// classes, it may need to be refactored as well. See
// https://github.com/scalvert/ember-native-class-codemod/blob/master/README.md
// https://github.com/ember-codemods/ember-native-class-codemod/blob/master/README.md
// for more details.
super.actions.overriddenActionMethod.call(this, ...arguments) && this.boolProp;
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
Expect error:
ValidationError: Validation errors for class 'Foo7':
[actions]: Transform not supported - [click]: action name matches one of the lifecycle hooks. Rename and try again. See https://github.com/scalvert/ember-native-class-codemod/issues/34 for more details
[actions]: Transform not supported - [click]: action name matches one of the lifecycle hooks. Rename and try again. See https://github.com/ember-codemods/ember-native-class-codemod/issues/34 for more details
*/

// Do not transform as action name matches lifecycle hook
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ class Foo1 extends EmberObject {
// class's actions to be safe. This should be refactored to call a normal method
// on the parent class. If the parent class has not been converted to native
// classes, it may need to be refactored as well. See
// https://github.com/scalvert/ember-native-class-codemod/blob/master/README.md
// https://github.com/ember-codemods/ember-native-class-codemod/blob/master/README.md
// for more details.
super.actions.baz.call(this, ...arguments);
}
Expand Down
2 changes: 1 addition & 1 deletion transforms/ember-object/__testfixtures__/runtime.output.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export default class _Runtime extends Runtime.extend(MyMixin) {
// class's actions to be safe. This should be refactored to call a normal method
// on the parent class. If the parent class has not been converted to native
// classes, it may need to be refactored as well. See
// https://github.com/scalvert/ember-native-class-codemod/blob/master/README.md
// https://github.com/ember-codemods/ember-native-class-codemod/blob/master/README.md
// for more details.
super.actions.overriddenActionMethod.call(this, ...arguments) && this.boolProp;
}
Expand Down
4 changes: 2 additions & 2 deletions transforms/helpers/eo-prop/private/actions/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export default class EOActionsProp extends AbstractEOProp<
/**
* Iterate over actions and verify that the action name does not match the lifecycle hooks
* The transformation is not supported if an action has the same name as lifecycle hook
* Reference: https://github.com/scalvert/ember-native-class-codemod/issues/34
* Reference: https://github.com/ember-codemods/ember-native-class-codemod/issues/34
*/
private get lifecycleHookErrors(): string[] {
const { actions } = this;
Expand All @@ -99,7 +99,7 @@ export default class EOActionsProp extends AbstractEOProp<
errors.push(
this.makeActionError(
name,
'action name matches one of the lifecycle hooks. Rename and try again. See https://github.com/scalvert/ember-native-class-codemod/issues/34 for more details'
'action name matches one of the lifecycle hooks. Rename and try again. See https://github.com/ember-codemods/ember-native-class-codemod/issues/34 for more details'
)
);
}
Expand Down
2 changes: 1 addition & 1 deletion transforms/helpers/eo-prop/private/actions/method.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ import type { Action } from './index';
* // class's actions to be safe. This should be refactored to call a normal method
* // on the parent class. If the parent class has not been converted to native
* // classes, it may need to be refactored as well. See
* // https://github.com/scalvert/ember-native-class-codemod/blob/master/README.md
* // https://github.com/ember-codemods/ember-native-class-codemod/blob/master/README.md
* // for more details.
* super.actions.baz.call(this, ...arguments);
* }
Expand Down
2 changes: 1 addition & 1 deletion transforms/helpers/transform-helper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ function replaceSuperExpressions(
* // class's actions to be safe. This should be refactored to call a normal method
* // on the parent class. If the parent class has not been converted to native
* // classes, it may need to be refactored as well. See
* // https://github.com/scalvert/ember-native-class-codemod/blob/master/README.md
* // https://github.com/ember-codemods/ember-native-class-codemod/blob/master/README.md
* // for more details.
* super.actions.baz.call(this, ...arguments);
* ```
Expand Down
2 changes: 1 addition & 1 deletion transforms/helpers/util/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ export const ACTION_SUPER_EXPRESSION_COMMENT = [
" class's actions to be safe. This should be refactored to call a normal method",
' on the parent class. If the parent class has not been converted to native',
' classes, it may need to be refactored as well. See',
' https://github.com/scalvert/ember-native-class-codemod/blob/master/README.md',
' https://github.com/ember-codemods/ember-native-class-codemod/blob/master/README.md',
' for more details.',
];

Expand Down