# frozen_string_literal: true require "neeto_compliance/verifiers/sync_neeto_commons_verifier/bin_files_verifier" require "neeto_compliance/verifiers/sync_neeto_commons_verifier/formatter_files_verifier" require "neeto_compliance/verifiers/sync_neeto_commons_verifier/husky_files_verifier" require "neeto_compliance/verifiers/sync_neeto_commons_verifier/misc_files_verifier" require "neeto_compliance/verifiers/sync_neeto_commons_verifier/test_support_files_verifier" module NeetoCompliance class SyncNeetoCommonsVerifier < Base def valid? verifiers = [ BinFilesVerifier, FormatterFilesVerifier, HuskyFilesVerifier, MiscFilesVerifier, TestSupportFilesVerifier ] results = verifiers.map do |verifier| verifier.new.process end success = results.all? end def autofix_command "bundle exec sync-with-neeto-commons" end end end