Skip to content

Commit 0353563

Browse files
committed
update GitHub action
1 parent 5dada66 commit 0353563

File tree

2 files changed

+21
-1
lines changed

2 files changed

+21
-1
lines changed

.github/workflows/build-zip.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@ jobs:
4747
rm -fr build
4848
rm -fr releases
4949
rm -fr languages
50-
rm -fr changelog.md
5150
rm -fr svn
51+
rm changelog.md
5252
rm readme.md
5353
cd ..
5454
zip -r -q ${{ github.event.repository.name }}_${{ github.ref_name }}.zip ${{ github.event.repository.name }}/* -x "*/.git/*" "*/.github/*" "*/blocks/*/src/*" "*/doc/*" "*/phpcs.xml" "*/composer.json" "*/composer.lock" "*/package.json" "*/package-lock.json" "*/.gitignore" "*/vendor/*" "*/node_modules/*" "/.editorconfig"

ruleset.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
<?xml version="1.0"?>
2+
<ruleset xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="AutoCategoryForPosts" namespace="AutoCategoryForPosts\AutoCategoryForPosts" xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/squizlabs/PHP_CodeSniffer/master/phpcs.xsd">
3+
4+
<description>Auto Category For Posts Coding Standards</description>
5+
6+
<rule ref="WordPress-Docs"/>
7+
<rule ref="WordPress-Extra"/>
8+
<rule ref="WordPress">
9+
<!-- Excluded in favour to match PSR-4-namings of classes. -->
10+
<exclude name="WordPress.Files.FileName"/>
11+
<!-- Exclude slow query -->
12+
<exclude name="WordPress.DB.SlowDBQuery.slow_db_query_meta_query"/>
13+
<exclude name="WordPress.DB.SlowDBQuery.slow_db_query_meta_key"/>
14+
<exclude name="WordPress.DB.SlowDBQuery.slow_db_query_tax_query"/>
15+
<!-- Exclude override of globals -->
16+
<exclude name="WordPress.WP.GlobalVariablesOverride"/>
17+
<!-- Exclude direkt db query warnings -->
18+
<exclude name="WordPress.DB.DirectDatabaseQuery"/>
19+
</rule>
20+
</ruleset>

0 commit comments

Comments
 (0)