Skip to content

Commit

Permalink
Use expression-bodied members
Browse files Browse the repository at this point in the history
  • Loading branch information
Kapil Borle committed Jul 20, 2017
1 parent 4fdd8b8 commit 43fa8d4
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions Engine/Settings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,12 @@ public class Settings
private List<string> customRulePath;
private Dictionary<string, Dictionary<string, object>> ruleArguments;

// todo use 'lambda' expression type getter
public string FilePath { get { return filePath; } }
public IEnumerable<string> IncludeRules { get { return includeRules; } }
public IEnumerable<string> ExcludeRules { get { return excludeRules; } }
public IEnumerable<string> Severities { get { return severities; } }
public string FilePath => filePath;
public IEnumerable<string> IncludeRules => includeRules;
public IEnumerable<string> ExcludeRules => excludeRules;
public IEnumerable<string> Severities => severities;
public IEnumerable<string> CustomRulePath => customRulePath;
public Dictionary<string, Dictionary<string, object>> RuleArguments { get { return ruleArguments; } }
public Dictionary<string, Dictionary<string, object>> RuleArguments => ruleArguments;

/// <summary>
/// Create a settings object from the input object.
Expand Down

0 comments on commit 43fa8d4

Please sign in to comment.