Skip to content

Commit

Permalink
Add support for list of languages
Browse files Browse the repository at this point in the history
  • Loading branch information
mgrebenets committed Mar 19, 2018
1 parent bc153ed commit a6c5669
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/fastlane/plugin/lizard/actions/lizard_action.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def self.forming_command(params)
command << 'lizard' unless params[:executable]
command << "python #{params[:executable]}" if params[:executable]
command << params[:source_folder].to_s if params[:source_folder]
command << "-l #{params[:language]}" if params[:language]
command << params[:language].split(",").map { |l| "-l #{l.strip}" }.join(" ") if params[:language]
command << "--#{params[:export_type]}" if params[:export_type]
command << "-C #{params[:ccn]}" if params[:ccn] # stands for cyclomatic complexity number
command << "-L #{params[:length]}" if params[:length]
Expand Down Expand Up @@ -81,7 +81,7 @@ def self.available_options
optional: true),
FastlaneCore::ConfigItem.new(key: :language,
env_name: "FL_LIZARD_LANGUAGE",
description: "List the programming languages you want to analyze",
description: "List the programming languages you want to analyze, e.g. 'swift,objectivec'",
default_value: "swift",
optional: true),
FastlaneCore::ConfigItem.new(key: :export_type,
Expand Down

0 comments on commit a6c5669

Please sign in to comment.