Skip to content

Commit

Permalink
Use proper Nadystyle and suppress useless errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Nadyita committed Apr 28, 2024
1 parent b129d62 commit 2b83d15
Show file tree
Hide file tree
Showing 11 changed files with 99 additions and 2,429 deletions.
15 changes: 15 additions & 0 deletions .phpcs.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0"?>
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="NadybotCustom" xsi:noNamespaceSchemaLocation="../../../phpcs.xsd">
<description>The custom Nadybot coding standard.</description>
<rule ref="vendor/nadybot/nadystyle/style/Nadybot/ruleset.xml" />
<rule ref="Nadybot.Files.TypeNameMatchesFileName">
<properties>
<property name="rootNamespaces" type="array">
<element key="src" value="AO"/>
</property>
<property name="skipDirs" type="array">
<element value="vendor"/>
</property>
</properties>
</rule>
</ruleset>
13 changes: 5 additions & 8 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,31 +26,28 @@
}
},
"repositories": [
{
"type": "git",
"url": "https://github.com/Nadybot/Nadystyle.git"
},
{
"type": "git",
"url": "https://github.com/Nadybot/leaky-bucket.git"
}
],

"require-dev": {
"nadybot/nadystyle": "dev-main",
"nadybot/nadystyle": "^1.0.0",
"composer-phar/php-cs-fixer": "^3.51.0",
"squizlabs/php_codesniffer": "^3.8",
"composer-phar/phpstan": "^1.10",
"thecodingmachine/phpstan-safe-rule": "^1.2",
"phpunit/phpunit": "^10.0",
"beste/psr-testlogger": "^1.0"
},
"license": ["AGPL-3.0-or-later"],
"license": [
"AGPL-3.0-or-later"
],
"scripts": {
"tests": [
"phpunit -c phpunit.xml",
"phpstan analyse --memory-limit 512M --no-progress --no-ansi -c phpstan.neon",
"phpcs --no-colors --report=checkstyle --standard=style/Nadybot/ruleset.xml -q src tests"
]
}
}
}
Loading

0 comments on commit 2b83d15

Please sign in to comment.