text: const util = require('util');
  const glob = require('glob');
  
  const sub_rules = [];
  const sub_rules_names = glob.sync(__dirname+"/sub_rule_*.js", '');
  sub_rules_names.forEach((file_name)=>{
      sub_rules.push(require(file_name));  
  });
  
  module.exports = (() => {
      return {
          name: 'seo_rule_3',
          version: '1',
          description: 'SEO Rule 3: use to detect <title>, <meta name="descriptions" />, and <meta name="keywords" />',
          detect: ($) => {
              results = [];
  
              sub_rules.forEach(((sub_rule)=>{
                  let ret = sub_rule.detect($);
                  if (ret && ret.need_report) {
                      results.push({
                          name: sub_rule.name,
                          description: sub_rule.description,
                          value: ret.value
                      });
                  }
              }));
  
              return results;
          }
      }
  })();