Skip to content

Commit 5c8be94

Browse files
committed
Enable PHPMD linting
1 parent 7ad6b38 commit 5c8be94

3 files changed

Lines changed: 9 additions & 2 deletions

File tree

grumphp.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@ grumphp:
44
project: '7.0'
55
# phpcs:
66
# standard: ["WordPress"]
7-
# phpmd:
8-
# ruleset: ["cleancode", "naming"]
7+
phpmd:
8+
ruleset: ['cleancode', 'naming']
99
phpmnd:
1010
phpstan:
1111
memory_limit: 512M

includes/class-protected-video.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ private function load_dependencies()
6969

7070
/**
7171
* Register hooks related to the admin area functionality.
72+
*
73+
* @SuppressWarnings(PHPMD.MissingImport)
7274
*/
7375
private function define_admin_hooks()
7476
{
@@ -98,6 +100,8 @@ private function define_admin_hooks()
98100

99101
/**
100102
* Register hooks related to the public-facing functionality.
103+
*
104+
* @SuppressWarnings(PHPMD.MissingImport)
101105
*/
102106
private function define_public_hooks()
103107
{

protected-video.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@
3333

3434
/**
3535
* Begin plugin execution.
36+
*
37+
* @return void
38+
* @SuppressWarnings(PHPMD.MissingImport)
3639
*/
3740
function protected_video_init()
3841
{

0 commit comments

Comments
 (0)