Skip to content
Merged
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
8 changes: 8 additions & 0 deletions .github/typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[default.extend-words]
Symplify = "Symplify"

# collection of Boolean nodes
Ands = "Ands"

# regex purpose
Som = "Som"
24 changes: 24 additions & 0 deletions .github/workflows/typos.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# see https://github.com/crate-ci/typos
name: "Typos"

on:
pull_request:
push:
branches:
- "main"

jobs:
typos:
name: "Check for typos"
runs-on: "ubuntu-latest"

steps:
- uses: actions/checkout@v4



- name: "Check for typos"
uses: "crate-ci/typos@v1.40.0"
with:
config: .github/typos.toml
files: "README.md src config rules tests rules-tests"
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ namespace Rector\PHPUnit\Tests\CodeQuality\Rector\Class_\AddReturnTypeToDepended

use PHPUnit\Framework\TestCase;

final class VaribleAssigned extends TestCase
final class VariableAssigned extends TestCase
{
public function test()
{
Expand All @@ -22,7 +22,7 @@ namespace Rector\PHPUnit\Tests\CodeQuality\Rector\Class_\AddReturnTypeToDepended

use PHPUnit\Framework\TestCase;

final class VaribleAssigned extends TestCase
final class VariableAssigned extends TestCase
{
public function test(): int
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ final class ProvideDataWithSeveralNamedAndNotNamedArgs extends TestCase
yield [
'namedArg' => 100,
null,
fn() => 'G-EAZY',
fn() => 'G-EASY',
'Key' => fn() => 'Post Malone',
'another' => 'arg1',
new \Exception(),
Expand Down Expand Up @@ -50,7 +50,7 @@ final class ProvideDataWithSeveralNamedAndNotNamedArgs extends TestCase
yield [
100,
null,
fn() => 'G-EAZY',
fn() => 'G-EASY',
fn() => 'Post Malone',
'arg1',
new \Exception(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
use Symplify\RuleDocGenerator\ValueObject\RuleDefinition;

/**
* @deprecated as very specific and assumes test + class colocation. Better use custom rule isntead.
* @deprecated as very specific and assumes test + class colocation. Better use custom rule instead.
*/
final class AddCoversClassAttributeRector extends AbstractRector implements ConfigurableRectorInterface, DeprecatedInterface
{
Expand Down