Skip to content

Commit

Permalink
fix: use record instead of struct
Browse files Browse the repository at this point in the history
  • Loading branch information
mrexox committed Jul 3, 2023
1 parent a2e96a1 commit d9ed406
Showing 1 changed file with 14 additions and 32 deletions.
46 changes: 14 additions & 32 deletions src/coverage_reporter/reporter.cr
Original file line number Diff line number Diff line change
Expand Up @@ -2,38 +2,20 @@ require "./*"

module CoverageReporter
class Reporter
struct Settings
getter base_path,
carryforward,
compare_ref,
compare_sha,
config_path,
coverage_files,
coverage_format,
dry_run,
fail_empty,
job_flag_name,
overrides,
parallel,
repo_token

def initialize(
@base_path : String? = nil,
@carryforward : String? = nil,
@compare_ref : String? = nil,
@compare_sha : String? = nil,
@config_path : String? = nil,
@coverage_files : Array(String) | Nil = nil,
@coverage_format : String? = nil,
@dry_run : Bool = false,
@fail_empty : Bool = false,
@job_flag_name : String? = nil,
@overrides : CI::Options? = nil,
@parallel : Bool = false,
@repo_token : String? = nil
)
end
end
record Settings,
base_path : String? = nil,
carryforward : String? = nil,
compare_ref : String? = nil,
compare_sha : String? = nil,
config_path : String? = nil,
coverage_files : Array(String) | Nil = nil,
coverage_format : String? = nil,
dry_run : Bool = false,
fail_empty : Bool = false,
job_flag_name : String? = nil,
overrides : CI::Options? = nil,
parallel : Bool = false,
repo_token : String? = nil

class NoSourceFiles < BaseException
def message
Expand Down

0 comments on commit d9ed406

Please sign in to comment.