From ce8487e394952b3c0b92185ff692f31e5f7c6f25 Mon Sep 17 00:00:00 2001
From: Rafael Guterres Jeffman <rjeffman@redhat.com>
Date: Tue, 14 Dec 2021 12:52:53 -0300
Subject: [PATCH] pylint: Enable pylint for ansible-freeipa roles.

This patch enables pylint evaluation for ansible-freeipa roles in
both the local script 'utils/lint-check.sh' and in upstream CI.
---
 .github/workflows/lint.yml | 2 +-
 utils/lint_check.sh        | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml
index 96b7f9a8..7ae8562d 100644
--- a/.github/workflows/lint.yml
+++ b/.github/workflows/lint.yml
@@ -75,7 +75,7 @@ jobs:
       - name: Run pylint
         run: |
             pip install pylint==2.10.2
-            pylint plugins --disable=import-error
+            pylint plugins roles --disable=import-error
 
   shellcheck:
     name: Shellcheck
diff --git a/utils/lint_check.sh b/utils/lint_check.sh
index c84a75b5..a32b6499 100755
--- a/utils/lint_check.sh
+++ b/utils/lint_check.sh
@@ -13,7 +13,7 @@ flake8 plugins utils roles setup.py
 echo -e "${INFO}Running 'pydocstyle'...${RST}"
 pydocstyle plugins utils roles setup.py
 echo -e "${INFO}Running 'pylint'...${RST}"
-pylint plugins setup.py
+pylint plugins roles setup.py
 
 ANSIBLE_LIBRARY="${ANSIBLE_LIBRARY:-plugins/modules}"
 ANSIBLE_MODULE_UTILS="${ANSIBLE_MODULE_UTILS:-plugins/module_utils}"
-- 
GitLab