Skip to content

Commit

Permalink
.editorconfig added (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
jschwind authored Nov 18, 2024
1 parent a678d77 commit 8ed2219
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# This is the top-most .editorconfig file; do not search in parent directories.
root = true

# All files.
[*]
end_of_line = lf
indent_style = space
indent_size = 4
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.md]
trim_trailing_whitespace = false

[*.json]
indent_size = 2

[composer.json]
indent_size = 4

[config-schema.json]
indent_size = 4
5 changes: 4 additions & 1 deletion rector.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
use Rector\Config\RectorConfig;
use Rector\Set\ValueObject\LevelSetList;
use Rector\Symfony\Set\SymfonySetList;
use Rector\TypeDeclaration\Rector\StmtsAwareInterface\DeclareStrictTypesRector;

return static function (RectorConfig $rectorConfig): void {
$rectorConfig->paths([
Expand All @@ -15,11 +16,13 @@

$rectorConfig->rule(InlineConstructorDefaultToPropertyRector::class);

$rectorConfig->rule(DeclareStrictTypesRector::class);

// define sets of rules
$rectorConfig->sets([
SymfonySetList::SYMFONY_71,
SymfonySetList::SYMFONY_CODE_QUALITY,
SymfonySetList::SYMFONY_CONSTRUCTOR_INJECTION,
LevelSetList::UP_TO_PHP_82
]);
};
};

0 comments on commit 8ed2219

Please sign in to comment.