Skip to content

Commit

Permalink
Make sure config files have unique values (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
faissaloux authored Oct 26, 2024
1 parent f2ef766 commit 6aa4b10
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 10 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
]
},
"require-dev": {
"faissaloux/pest-plugin-inside": "^1.2",
"faissaloux/pest-plugin-inside": "^1.5.1",
"pestphp/pest-dev-tools": "^2.9"
},
"minimum-stability": "dev",
Expand Down
2 changes: 0 additions & 2 deletions src/Config/profanities/ar.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
return [
'عاهرة',
'قواد',
'قواد',
'ملاوي',
'الخرا',
'خرية',
Expand All @@ -29,5 +28,4 @@
'dor t9awd',
'wjh lkhra',
'3ahira',
'lmlawi',
];
4 changes: 0 additions & 4 deletions src/Config/profanities/it.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,6 @@
'porno dio',
'dio merda',
'diocane',
'diomerda',
'madonna assassina',
'madonna bandita',
'madonna bastarda',
Expand Down Expand Up @@ -223,11 +222,8 @@
'diovaffanculo',
'dioverginello',
'diozerbino',
'diomerda',
'porcodio',
'pornodio',
'diomerda',
'diomerda',
'diomorto',
'madonnaassassina',
'madonnabandita',
Expand Down
6 changes: 3 additions & 3 deletions tests/configFiles.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

declare(strict_types=1);

test('config files return all lowercase', function ($files) {
expect($files)->toReturnLowercase();
})->with(['src/Config/profanities', 'src/Config/tolerated.php']);
test('config files return all lowercase', function () {
expect('src/Config')->toReturnLowercase()->toReturnUnique();
});

0 comments on commit 6aa4b10

Please sign in to comment.