Skip to content

Commit 554d52b

Browse files
[CI] Remove unused sonar arguments (#747)
1 parent 64f4a89 commit 554d52b

File tree

1 file changed

+1
-14
lines changed

1 file changed

+1
-14
lines changed

fastlane/Sonarfile

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -16,24 +16,11 @@ lane :sonar_upload do
1616
"-Dsonar.coverageReportPaths='reports/sonarqube-generic-coverage.xml'")
1717
end
1818

19-
next if sonar_args.empty? || ENV['GITHUB_EVENT_NAME'] == 'pull_request' || current_branch !~ /main|develop/
19+
next if ENV['GITHUB_EVENT_NAME'] == 'pull_request' || current_branch !~ /main|develop/
2020

2121
slack_sonarcloud_metrics(version_number: version_number)
2222
end
2323

24-
desc 'Gets Sonar options'
25-
private_lane :sonar_options do |options|
26-
default_options = { sonar_login: ENV.fetch('SONAR_TOKEN', nil), sonar_runner_args: options[:sonar_args] }
27-
28-
if ENV['GITHUB_EVENT_NAME'] == 'pull_request'
29-
default_options.merge(pull_request_branch: ENV.fetch('GITHUB_HEAD_REF', nil),
30-
pull_request_base: ENV.fetch('GITHUB_BASE_REF', nil),
31-
pull_request_key: ENV.fetch('GITHUB_PR_NUM', nil))
32-
else
33-
default_options.merge(branch_name: current_branch, project_version: options[:version_number])
34-
end
35-
end
36-
3724
desc 'Creates a report in Slack with SonarCloud analysis details'
3825
private_lane :slack_sonarcloud_metrics do |options|
3926
project_key = 'GetStream_stream-chat-swiftui'

0 commit comments

Comments
 (0)