Skip to content

Commit

Permalink
Maintenance: git, codesniffer, phpstan
Browse files Browse the repository at this point in the history
  • Loading branch information
f3l1x committed Dec 18, 2023
1 parent 4bc7205 commit 1f35cc8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Expand Up @@ -11,6 +11,6 @@ indent_style = tab
indent_size = tab
tab_width = 4

[{*.json,*.yml,*.yaml,*.md}]
[*.{json,yaml,yml,md}]
indent_style = space
indent_size = 2
7 changes: 3 additions & 4 deletions .gitattributes
@@ -1,11 +1,10 @@
# Not archived
.docs export-ignore
tests export-ignore
.github export-ignore
.editorconfig export-ignore
.gitattributes export-ignore
.gitignore export-ignore
.travis.yml export-ignore
Makefile export-ignore
phpstan.neon export-ignore
README.md export-ignore
phpstan.neon export-ignore
ruleset.xml export-ignore
tests export-ignore
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -15,7 +15,7 @@ endif

.PHONY: csf
csf:
vendor/bin/phpcbf --standard=ruleset.xml --encoding=utf-8 --colors -nsp src tests
vendor/bin/phpcbf --standard=ruleset.xml --encoding=utf-8 --extensions="php,phpt" --colors -nsp src tests

.PHONY: phpstan
phpstan:
Expand Down
4 changes: 4 additions & 0 deletions ruleset.xml
Expand Up @@ -10,6 +10,10 @@
<element key="src" value="Contributte\Nella"/>
<element key="tests" value="Tests"/>
</property>
<property name="extensions" type="array">
<element key="php" value="php"/>
<element key="phpt" value="phpt"/>
</property>
</properties>
</rule>

Expand Down

0 comments on commit 1f35cc8

Please sign in to comment.