Skip to content

Commit

Permalink
[MegaLinter] Apply linters fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
nvuillam authored and megalinter-bot committed Jan 24, 2024
1 parent 95a94ca commit 00440c4
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion megalinter/reporters/AzureCommentReporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class AzureCommentReporter(Reporter):
scope = "mega-linter"

def manage_activation(self):
if not config.exists(self.master.request_id,"SYSTEM_COLLECTIONURI"):
if not config.exists(self.master.request_id, "SYSTEM_COLLECTIONURI"):
self.is_active = False
elif (
config.get(self.master.request_id, "AZURE_COMMENT_REPORTER", "true")
Expand Down
4 changes: 2 additions & 2 deletions megalinter/reporters/BitbucketCommentReporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,11 @@ class BitbucketCommentReporter(Reporter):
BITBUCKET_API = "https://api.bitbucket.org/2.0"

def manage_activation(self):
if not config.exists(self.master.request_id,"BITBUCKET_REPO_FULL_NAME"):
if not config.exists(self.master.request_id, "BITBUCKET_REPO_FULL_NAME"):
self.is_active = False
elif (
config.get(self.master.request_id, "BITBUCKET_COMMENT_REPORTER", "true")
== "true"
== "true"
):
self.is_active = True
else:
Expand Down
2 changes: 1 addition & 1 deletion megalinter/reporters/GithubCommentReporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class GithubCommentReporter(Reporter):

def manage_activation(self):
if not config.exists(self.master.request_id, "GITHUB_REPOSITORY"):
self.is_active = False
self.is_active = False
elif (
config.get(self.master.request_id, "GITHUB_COMMENT_REPORTER", "true")
!= "true"
Expand Down
2 changes: 1 addition & 1 deletion megalinter/reporters/GitlabCommentReporter.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class GitlabCommentReporter(Reporter):
gitlab_server_url = "https://gitlab.com"

def manage_activation(self):
if not config.exists(self.master.request_id,"CI_JOB_TOKEN"):
if not config.exists(self.master.request_id, "CI_JOB_TOKEN"):
self.is_active = False
if (
config.get(self.master.request_id, "GITLAB_COMMENT_REPORTER", "true")
Expand Down

0 comments on commit 00440c4

Please sign in to comment.