From 930537c82518a4df7098fd88dc02e28e390ad7f0 Mon Sep 17 00:00:00 2001 From: Laur Ivan Date: Sat, 29 Apr 2023 16:18:30 +0200 Subject: [PATCH] chore: Add SonarLint --- .gitignore | 1 + sonar-project.properties | 7 +++++++ tasks/config.yml | 6 +++--- 3 files changed, 11 insertions(+), 3 deletions(-) create mode 100644 sonar-project.properties diff --git a/.gitignore b/.gitignore index 2100e33..c1043c3 100644 --- a/.gitignore +++ b/.gitignore @@ -6,6 +6,7 @@ __pycache__ .molecule .cache .venv +.scannerwork *.iml .idea diff --git a/sonar-project.properties b/sonar-project.properties new file mode 100644 index 0000000..acebbfc --- /dev/null +++ b/sonar-project.properties @@ -0,0 +1,7 @@ +sonar.projectKey=ansible-role-sonarqube +sonar.projectVersion=main +sonar.projectName=ansible-role-sonarqube + +sonar.language=ansible,yaml +sonar.sources=. +sonar.host.url=http://10.0.0.27:39000 \ No newline at end of file diff --git a/tasks/config.yml b/tasks/config.yml index d0d5593..a2db596 100644 --- a/tasks/config.yml +++ b/tasks/config.yml @@ -40,7 +40,7 @@ name: fs.file-max value: "{{ sonarqube_fs_file_max }}" state: present - reload: yes + reload: true become: true - name: "SONARQUBE | Set up the VM max_map_count" @@ -48,5 +48,5 @@ name: vm.max_map_count value: "{{ sonarqube_vm_max_map_count }}" state: present - reload: yes - become: true \ No newline at end of file + reload: true + become: true