Skip to content

Commit 8743d39

Browse files
committed
[ci] add typos workflow
1 parent 26f01b6 commit 8743d39

10 files changed

Lines changed: 37 additions & 6 deletions

File tree

.github/typos.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
[default.extend-words]
2+
Symplify = "Symplify"
3+
4+
# doctrine behavior
5+
Deleteable = "Deleteable"
6+
7+
# fixing typo in code
8+
"Fullfilled" = "Fullfilled"
9+

.github/workflows/typos.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# see https://github.com/crate-ci/typos
2+
name: "Typos"
3+
4+
on:
5+
pull_request:
6+
push:
7+
branches:
8+
- "main"
9+
10+
jobs:
11+
typos:
12+
name: "Check for typos"
13+
runs-on: "ubuntu-latest"
14+
15+
steps:
16+
- uses: actions/checkout@v4
17+
18+
19+
20+
- name: "Check for typos"
21+
uses: "crate-ci/typos@v1.40.0"
22+
with:
23+
config: .github/typos.toml
24+
files: "README.md src config rules tests rules-tests"

rules-tests/CodeQuality/Rector/Class_/MoveCurrentDateTimeDefaultInEntityToConstructorRector/Fixture/already_consturctor.php.inc renamed to rules-tests/CodeQuality/Rector/Class_/MoveCurrentDateTimeDefaultInEntityToConstructorRector/Fixture/already_constructor.php.inc

File renamed without changes.

rules-tests/CodeQuality/Rector/Class_/YamlToAttributeDoctrineMappingRector/config/yaml_mapping/embdded_mapping.yml renamed to rules-tests/CodeQuality/Rector/Class_/YamlToAttributeDoctrineMappingRector/config/yaml_mapping/embedded_mapping.yml

File renamed without changes.

rules-tests/CodeQuality/Rector/Class_/YamlToAttributeDoctrineMappingRector/config/yaml_mapping/embdded_mapping_prefix_false.yml renamed to rules-tests/CodeQuality/Rector/Class_/YamlToAttributeDoctrineMappingRector/config/yaml_mapping/embedded_mapping_prefix_false.yml

File renamed without changes.

rules-tests/CodeQuality/Rector/Property/TypedPropertyFromToOneRelationTypeRector/Fixture/do_no_preprend_slash.php.inc renamed to rules-tests/CodeQuality/Rector/Property/TypedPropertyFromToOneRelationTypeRector/Fixture/do_no_prepend_slash.php.inc

File renamed without changes.

rules-tests/Dbal40/Rector/StmtsAwareInterface/ExecuteQueryParamsToBindValueRector/Fixture/some_file_with_execture.php.inc renamed to rules-tests/Dbal40/Rector/StmtsAwareInterface/ExecuteQueryParamsToBindValueRector/Fixture/some_file_with_execute.php.inc

File renamed without changes.

rules-tests/Orm28/Rector/MethodCall/IterateToToIterableRector/Fixture/skip_already_using_correct_function.php.inc

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,6 @@ class SkipAlreadyUsingCorrectFunction
66
{
77
public function getResults(): iterable
88
{
9-
return $this->getEnityManager()->select('e')->from('entity')->getQuery()->toIterable();
9+
return $this->getEntityManager()->select('e')->from('entity')->getQuery()->toIterable();
1010
}
1111
}
12-
13-
?>

rules-tests/TypedCollections/Rector/MethodCall/AssertSameCountOnCollectionToAssertCountRector/Fixture/skip_assert_count_on_somethign_else.php.inc renamed to rules-tests/TypedCollections/Rector/MethodCall/AssertSameCountOnCollectionToAssertCountRector/Fixture/skip_assert_count_on_something_else.php.inc

File renamed without changes.

rules/DoctrineFixture/Rector/MethodCall/AddGetReferenceTypeRector.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,13 +104,13 @@ public function refactor(Node $node): MethodCall|null
104104
return null;
105105
}
106106

107-
$callerParameterObjetType = $this->parameterTypeResolver->resolveCallerFirstParameterObjectType($node);
108-
if (! $callerParameterObjetType instanceof ObjectType) {
107+
$callerParameterObjectType = $this->parameterTypeResolver->resolveCallerFirstParameterObjectType($node);
108+
if (! $callerParameterObjectType instanceof ObjectType) {
109109
return null;
110110
}
111111

112112
$nestedMethodCall->args[] = new Arg(new ClassConstFetch(new FullyQualified(
113-
$callerParameterObjetType->getClassName()
113+
$callerParameterObjectType->getClassName()
114114
), 'class'));
115115
return $node;
116116
}

0 commit comments

Comments
 (0)