linting the project

This commit is contained in:
Arne Teuke
2025-03-02 13:15:07 +01:00
parent 74b0684ae1
commit 95848273ba
10 changed files with 24 additions and 166 deletions

View File

@@ -1,3 +0,0 @@
all
rule 'MD013', :line_length => 1000
exclude_rule 'MD036'

2
.mdlrc
View File

@@ -1,2 +0,0 @@
style '.mdl_style.rb'

110
.spelling
View File

@@ -1,110 +0,0 @@
# markdown-spellcheck spelling configuration file
# Format - lines begining # are comments
# global dictionary is at the start, file overrides afterwards
# one word per line, to define a file override use ' - filename'
# where filename is relative to this configuration file
Readme.md
httpd
sudo
selinux
site.pp
nodes.pp
cd_apache
::
params
Foreman
cd_resources
CentOS
Puppet
ConfDroid
nagios
vHosts
vHost
phpMyAdmin
phpPgAdmin
parameterized
erb
Confdroid.com
UTF_Files
Elasticsearch
cd_firewall
puppetlabs
cd_elasticsearch
cd_fail2ban
Fail2Ban
intrusion
fail2ban
firewalld
prevention
management
CentOS7
auto-installed
filebeat
Elastic
installer
Foreman
postgresql
TLS
cd_foreman
install.sh
git
cd_git
Gitlab
gitlab
gitlab-ce
gitlab.rb
psql
setup
service
user
optional
postgresql
database
via
tls
encryption
certbot
cd_postgresql
cd_certbot
cd_gitlab
sourcecode
pg_hba.conf
hiera
cd_tls
ca_chain
config
gitlab-ctl
haproxy
cd_concat
concat
cd_haproxy
haproxy.cfg
fqdn
ACLs
contineous
Jenkinsfiles
Jenkinsfile
SEEDjob
Github
job-dsl
community
providing
API
REGEX
plugins
cd_jenkins
cd_java
cd_nagios
cd_kibana
Kibana
Elastic
Stack
elasticsearch
cd_kubernetes
Kubernetes
kubeadm
kubeadmin
kubecfg
Grafana
Alloy
params.pp

19
Jenkinsfile vendored
View File

@@ -64,23 +64,6 @@ pipeline {
}
}
stage('markdown-lint') {
steps {
sh '''
source /opt/rh/rh-ruby27/enable
mdl README.md
'''
}
}
stage('spell check') {
steps {
sh '''
mdspell -r -n -a "**/*.md"
'''
}
}
stage('SonarScan') {
steps {
sh '''
@@ -93,7 +76,7 @@ pipeline {
}
}
stage('create Puppet documention') {
stage('create Puppet documentation') {
steps {
sh '/opt/puppetlabs/bin/puppet strings'
}

View File

@@ -73,9 +73,6 @@ All files and directories are configured with correct selinux context. If selinu
* `--no-arrow_alignment-check`: this check leads to actually not having am easily readable arrow alignment, as this checks `per block`, not per class.
* Puppet Parser
* ERB Template Parser
* Test for unwanted UTF8 files in the Puppet code (see tests/UTF_Files)
* Markdown-lint
* Spellcheck
* Sonar Quality Gate
## Contact Us

View File

@@ -6,7 +6,5 @@
class cd_alloy::main::config (
) inherits cd_alloy::params {
include cd_alloy::main::service
}

View File

@@ -6,7 +6,6 @@
class cd_alloy::main::dirs (
) inherits cd_alloy::params {
require cd_alloy::main::install
# main config dir

View File

@@ -6,7 +6,6 @@
class cd_alloy::main::files (
) inherits cd_alloy::params {
require cd_alloy::main::dirs
# Ensure log_targets is always an array
@@ -24,5 +23,4 @@ class cd_alloy::main::files (
content => template('cd_alloy/config.alloy.erb'),
notify => Service[$ay_service],
}
}

View File

@@ -1,12 +1,11 @@
## cd_alloy::main::install.pp
# Module name: cd_alloy
# Author: Arne Teuke (arne_teuke@confdroid.com)
# @summary Class manages module logic for the cd_alloy module
# @summary Class installs packages for the cd_alloy module
###############################################################################
class cd_alloy::main::install (
) inherits cd_alloy::params {
require cd_alloy::main::yumrepo
package { $reqpackages:

View File

@@ -6,7 +6,6 @@
class cd_alloy::main::service (
) inherits cd_alloy::params {
require cd_alloy::main::files
service { $ay_service: