INNER CODE UNIT · JavaScript

Base

flayerlabs/flaunchgg-contracts · lib/optimism/packages/contracts-bedrock/lib/openzeppelin-contracts-v5/scripts/solhint-custom/index.js:7

class Base {
  constructor(reporter, config, source, fileName) {
    this.reporter = reporter;
    this.ignored = this.constructor.global || ignore.some(p => minimatch(path.normalize(fileName), p));
    this.ruleId = this.constructor.ruleId;
    if (this.ruleId === undefined) {
      throw Error('missing ruleId static property');
    }
  }

  error(node, message) {
    if (!this.ignored) {
      this.reporter.error(node, this.ruleId, message);
    }
  }
}

module.exports = [

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…