lib/style_stats/cli.rb in style_stats-0.3.0 vs lib/style_stats/cli.rb in style_stats-0.4.0

- old
+ new

@@ -43,11 +43,24 @@ YAML.load_file(@options[:config]) when '.json' json = File.read(@options[:config]) JSON.parse(json) else - {} + @options[:number] ? number_config : {} end + end + + def number_config + { + published: false, + paths: false, + mostIdentifierSelector: false, + lowestCohesionSelector: false, + uniqueFontFamilies: false, + uniqueFontSizes: false, + uniqueColors: false, + propertiesCount: false + } end end end end