Skip to content

Commit

Permalink
ignore empty string lint warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
zilchms committed Aug 23, 2024
1 parent 47f6ac1 commit 32d1107
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 36 deletions.
8 changes: 4 additions & 4 deletions manifests/extractor/regex.pp
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
#
define graylog_api::extractor::regex (
Enum['present','absent'] $ensure = 'present',
String $input = '',
String $source_field = '',
String $target_field = '',
String $regex_value = '',
String $input = '', # lint:ignore:params_empty_string_assignment
String $source_field = '', # lint:ignore:params_empty_string_assignment
String $target_field = '', # lint:ignore:params_empty_string_assignment
String $regex_value = '', # lint:ignore:params_empty_string_assignment
Optional[String] $cut_or_copy = undef,
Optional[String] $condition_type = undef,
Optional[String] $condition_value = undef,
Expand Down
10 changes: 5 additions & 5 deletions manifests/extractor/regex_replace.pp
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@
#
define graylog_api::extractor::regex_replace (
Enum['present','absent'] $ensure = 'present',
String $input = '',
String $source_field = '',
String $target_field = '',
String $regex = '',
String $replacement = '',
String $input = '', # lint:ignore:params_empty_string_assignment
String $source_field = '', # lint:ignore:params_empty_string_assignment
String $target_field = '', # lint:ignore:params_empty_string_assignment
String $regex = '', # lint:ignore:params_empty_string_assignment
String $replacement = '', # lint:ignore:params_empty_string_assignment
Boolean $replace_all = false,
Optional[String] $cut_or_copy = undef,
Optional[String] $condition_type = undef,
Expand Down
8 changes: 4 additions & 4 deletions manifests/input/beats.pp
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@
Enum['global','local'] $scope = 'global',
Optional[Hash] $static_fields = undef,
Boolean $tcp_keepalive = false,
String $tls_cert_file = '',
String $tls_cert_file = '', # lint:ignore:params_empty_string_assignment
String $tls_client_auth = 'disabled',
String $tls_client_auth_cert_file = '',
String $tls_client_auth_cert_file = '', # lint:ignore:params_empty_string_assignment
Boolean $tls_enable = false,
String $tls_key_file = '',
String $tls_key_password = '',
String $tls_key_file = '', # lint:ignore:params_empty_string_assignment
String $tls_key_password = '', # lint:ignore:params_empty_string_assignment
) {
graylog_input { $name:
ensure => $ensure,
Expand Down
8 changes: 4 additions & 4 deletions manifests/input/beats2.pp
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@
Enum['global','local'] $scope = 'global',
Optional[Hash] $static_fields = undef,
Boolean $tcp_keepalive = false,
String $tls_cert_file = '',
String $tls_cert_file = '', # lint:ignore:params_empty_string_assignment
String $tls_client_auth = 'disabled',
String $tls_client_auth_cert_file = '',
String $tls_client_auth_cert_file = '', # lint:ignore:params_empty_string_assignment
Boolean $tls_enable = false,
String $tls_key_file = '',
String $tls_key_password = '',
String $tls_key_file = '', # lint:ignore:params_empty_string_assignment
String $tls_key_password = '', # lint:ignore:params_empty_string_assignment
) {
graylog_input { $name:
ensure => $ensure,
Expand Down
8 changes: 4 additions & 4 deletions manifests/input/cef_tcp.pp
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,12 @@
Optional[Hash] $static_fields = undef,
Boolean $tcp_keepalive = false,
String $timezone = 'UTC',
String $tls_cert_file = '',
String $tls_cert_file = '', # lint:ignore:params_empty_string_assignment
String $tls_client_auth = 'disabled',
String $tls_client_auth_cert_file = '',
String $tls_client_auth_cert_file = '', # lint:ignore:params_empty_string_assignment
Boolean $tls_enable = false,
String $tls_key_file = '',
String $tls_key_password = '',
String $tls_key_file = '', # lint:ignore:params_empty_string_assignment
String $tls_key_password = '', # lint:ignore:params_empty_string_assignment
Boolean $use_full_names = false,
Boolean $use_null_delimiter = false,
) {
Expand Down
8 changes: 4 additions & 4 deletions manifests/input/gelf_http.pp
Original file line number Diff line number Diff line change
Expand Up @@ -88,12 +88,12 @@
Enum['global','local'] $scope = 'global',
Optional[Hash] $static_fields = undef,
Boolean $tcp_keepalive = false,
String $tls_cert_file = '',
String $tls_cert_file = '', # lint:ignore:params_empty_string_assignment
String $tls_client_auth = 'disabled',
String $tls_client_auth_cert_file = '',
String $tls_client_auth_cert_file = '', # lint:ignore:params_empty_string_assignment
Boolean $tls_enable = false,
String $tls_key_file = '',
String $tls_key_password = '',
String $tls_key_file = '', # lint:ignore:params_empty_string_assignment
String $tls_key_password = '', # lint:ignore:params_empty_string_assignment
) {
graylog_input { $name:
ensure => $ensure,
Expand Down
8 changes: 4 additions & 4 deletions manifests/input/gelf_tcp.pp
Original file line number Diff line number Diff line change
Expand Up @@ -80,12 +80,12 @@
Enum['global','local'] $scope = 'global',
Optional[Hash] $static_fields = undef,
Boolean $tcp_keepalive = false,
String $tls_cert_file = '',
String $tls_cert_file = '', # lint:ignore:params_empty_string_assignment
String $tls_client_auth = 'disabled',
String $tls_client_auth_cert_file = '',
String $tls_client_auth_cert_file = '', # lint:ignore:params_empty_string_assignment
Boolean $tls_enable = false,
String $tls_key_file = '',
String $tls_key_password = '',
String $tls_key_file = '', # lint:ignore:params_empty_string_assignment
String $tls_key_password = '', # lint:ignore:params_empty_string_assignment
Boolean $use_null_delimiter = true,
) {
graylog_input { $name:
Expand Down
8 changes: 4 additions & 4 deletions manifests/input/syslog_tcp.pp
Original file line number Diff line number Diff line change
Expand Up @@ -70,12 +70,12 @@
Enum['global','local'] $scope = 'global',
Optional[Hash] $static_fields = undef,
Boolean $tcp_keepalive = false,
String $tls_cert_file = '',
String $tls_cert_file = '', # lint:ignore:params_empty_string_assignment
String $tls_client_auth = 'disabled',
String $tls_client_auth_cert_file = '',
String $tls_client_auth_cert_file = '', # lint:ignore:params_empty_string_assignment
Boolean $tls_enable = false,
String $tls_key_file = '',
String $tls_key_password = ''
String $tls_key_file = '', # lint:ignore:params_empty_string_assignment
String $tls_key_password = '' # lint:ignore:params_empty_string_assignment
) {
graylog_input { $name:
ensure => $ensure,
Expand Down
2 changes: 1 addition & 1 deletion manifests/pipeline.pp
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@
# processing time will be the 'All messages' stream.
define graylog_api::pipeline (
Array[Graylog_api::Pipeline::Stage::Loose] $stages,
String $description = '',
String $description = '', # lint:ignore:params_empty_string_assignment
Variant[String,Array[String]] $streams = [],
) {
$stage_bodies = $stages.map |$index,$stage| {
Expand Down
4 changes: 2 additions & 2 deletions manifests/pipeline/rule.pp
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@
# The action to take if the rule matches. Defaults to the empty string (e.g.
# no action is taken when the rule matches).
define graylog_api::pipeline::rule (
String $description = '',
String $description = '', # lint:ignore:params_empty_string_assignment
String $condition = 'true', # lint:ignore:quoted_booleans
String $action = '',
String $action = '', # lint:ignore:params_empty_string_assignment
) {
$rule_body = @("END_OF_RULE")
rule "${title}"
Expand Down

0 comments on commit 32d1107

Please sign in to comment.