bin/review-check in review-4.2.0 vs bin/review-check in review-5.0.0

- old
+ new

@@ -29,13 +29,11 @@ exit 0 end def main @config = ReVIEW::Configure.values - @book = ReVIEW::Book::Base.load - @book.config = @config - + @book = ReVIEW::Book::Base.new(config: @config) @logger = ReVIEW.logger modes = nil files = ARGV unless ARGV.empty? opts = OptionParser.new @@ -85,10 +83,10 @@ File.open(path) do |f| each_paragraph(f) do |para, lineno| s = para.join m = re.match(s) next if m.nil? || m[0] == @review_utils_word_ok - next if neg and neg =~ s + next if neg && neg =~ s str, offset = find_line(para, re) out = sprintf("%s:%d: %s\n", path, lineno + offset, str) print out end end