Sha256: 4d9c9f38006975ca6f57d9a5325682efbe874fbf4143fb59efb1be7b9a6a6713
Contents?: true
Size: 936 Bytes
Versions: 1
Compression:
Stored size: 936 Bytes
Contents
require 'codesake/engine/core' module Codesake module Engine class Text include Codesake::Utils::Files include Codesake::Utils::Secrets include Codesake::Engine::Core attr_reader :reserved_keywords def initialize(filename) @filename = filename @raw_results = nil read_file load_secrets end def analyse ret = [] @reserved_keywords = find_reserved_keywords @reserved_keywords.each do |secret| ret << "reserved keyword found: \"#{secret[:matcher]}\" (#{@filename}@#{secret[:line]})" end ret end def self.is_txt?(filename) (File.extname(filename).empty? or File.extname(filename) == ".txt" or File.extname(filename) == ".conf" or File.extname(filename) == ".rc" or File.extname(filename) == ".bak" or File.extname(filename) == ".old" ) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
codesake-0.15.1 | lib/codesake/engine/text.rb |