INNER CODE UNIT · JavaScript
Base
flayerlabs/flaunchgg-contracts · lib/openzeppelin-contracts/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 = [