Sha256: c88eace777d2f187ea166c902298dfb5f46490452f5cb01713272e556862398c
Contents?: true
Size: 345 Bytes
Versions: 1
Compression:
Stored size: 345 Bytes
Contents
module Pluginscan # Responsible for deciding whether usages of a variable in a string are in a comment module CommentChecker COMMENT_REGEXPS = [ %r{^\s*//}, # line comment /^\s*\*/, # block comment ].freeze def self.commented?(content) COMMENT_REGEXPS.any? { |regexp| content.match(regexp) } end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pluginscan-0.9.0 | lib/pluginscan/reports/issues_report/issue_checks/comment_checker.rb |