# File checktype.rb, line 95 def validate() # First gather the list of bad files badlist = Array.new change.each_file do |file| # Ignore files not open for add next unless ( file.revisions[ 0 ].action == "add" ) type = filetype( file.depot_file ) next unless type basetype = file.revisions[ 0 ].type.sub( /\+.*/, "" ) if ( ! type.match( basetype ) ) badlist.push( file ) end end # Now report any problems to the user report( badlist ) if ( ! badlist.empty? ) return badlist.empty? end