lib/wcc/plugin.rb in danger-wcc-0.1.0 vs lib/wcc/plugin.rb in danger-wcc-0.1.1

- old
+ new

@@ -6,24 +6,27 @@ require_relative 'rubocop_exceptions' require_relative 'commit_lint' require_relative 'reek' require_relative 'jshint' require_relative 'dependencies' +require_relative 'yarn_deduplicate' -class Danger::DangerWCC < Danger::Plugin +class Danger::DangerWCC < Danger::Plugin # rubocop:disable Metrics/ClassLength include Utils include Github DEFAULT_OPTIONS = { rubocop_exceptions: true, - flay: true, todos: true, brakeman: true, + dependencies: true, + yarn_deduplicate: true, + commit_lint: false, reek: false, jshint: false, - dependencies: true + flay: false }.freeze # Runs all the included checks in the plugin def all(options = {}) options = DEFAULT_OPTIONS.merge(options) @@ -98,9 +101,14 @@ end def dependencies(options = {}) logger.info "dependencies: #{options}" Dependencies.new(self, options).perform + end + + def yarn_deduplicate(options = {}) + logger.info "yarn_deduplicate: #{options}" + YarnDeduplicate.new(self, options).perform end private def parse_flay_results