Skip to content

Commit

Permalink
remove 'get_rule'
Browse files Browse the repository at this point in the history
  • Loading branch information
shijl0925 committed Jun 5, 2023
1 parent 1e5621d commit 08ec9fc
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
1 change: 0 additions & 1 deletion CHANGELOG.md
Expand Up @@ -18,7 +18,6 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- get one issue use 'get_issue' instead.
- get one project use 'get_project' instead.
- get one group use 'get_user_group' instead.
- get one rule use 'get_rule' instead.
- get one user use 'get_user' instead.
- get one view use 'get_view' instead.
- Search for projects associated (or not) to a quality gate, with parameter 'gateName', not 'gateId'.
Expand Down
8 changes: 0 additions & 8 deletions sonarqube/rest/rules.py
Expand Up @@ -21,14 +21,6 @@ def __init__(self, **kwargs):
"""
super(SonarQubeRules, self).__init__(**kwargs)

def get_rule(self, key, organization=None):
result = self.search_rules(organization=organization, rule_key=key)
rules = result.get("rules", [])

for rule in rules:
if rule["key"] == key:
return rule

@GET(API_RULES_SEARCH_ENDPOINT)
def search_rules(
self,
Expand Down

0 comments on commit 08ec9fc

Please sign in to comment.