File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -69,6 +69,8 @@ The following configuration options are available:
69
69
+ `severity` - The minimum severity required to display an error or warning
70
70
+ `error_severity` - The minimum severity required to display an error
71
71
+ `warning_severity` - The minimum severity required to display a warning
72
+ + `ignore_warnings_on_exit` - Exit with a zero error code despite the presence of warnings (1 = true, default 0 = false).
73
+ + `ignore_errors_on_exit` - xit with a zero error code despite the presence of errors (1 = true, default 0 = false).
72
74
+ `args` - Extra arguments to pass to the phpcs binary
73
75
74
76
If you require other configurations of PHPMD, please request them in the [Github issue tracker].
Original file line number Diff line number Diff line change @@ -81,6 +81,14 @@ inputs:
81
81
description : The minimum severity required to display a warning
82
82
required : false
83
83
84
+ ignore_warnings_on_exit :
85
+ desctiption : Exit with a zero error code despite the presence of warnings (1 = true, default 0 = false).
86
+ required : false
87
+
88
+ ignore_errors_on_exit :
89
+ description : Exit with a zero error code despite the presence of errors (1 = true, default 0 = false).
90
+ required : false
91
+
84
92
args :
85
93
description : Extra arguments to pass to the phpcs binary
86
94
required : false
Original file line number Diff line number Diff line change 95
95
command_string+=(--warning-severity=" $ACTION_WARNING_SEVERITY " )
96
96
fi
97
97
98
+ if [ -n " $ACTION_IGNORE_WARNINGS_ON_EXIT " ]
99
+ then
100
+ command_string+=(--runtime-set ignore_warnings_on_exit " $ACTION_IGNORE_WARNINGS_ON_EXIT " )
101
+ fi
102
+
103
+ if [ -n " $ACTION_IGNORE_ERRORS_ON_EXIT " ]
104
+ then
105
+ command_string+=(--runtime-set ignore_errors_on_exit " $ACTION_IGNORE_ERRORS_ON_EXIT " )
106
+ fi
107
+
98
108
if [ -n " $ACTION_ARGS " ]
99
109
then
100
110
command_string+=($ACTION_ARGS )
You can’t perform that action at this time.
0 commit comments