const BaseChecker = require('./../base-checker')

const ruleId = 'not-rely-on-time'
const meta = {
  type: 'security',

  docs: {
    description: `Avoid to make time-based decisions in your business logic.`,
    category: 'Security Rules'
  },

  isDefault: false,
  recommended: true,
  defaultSetup: 'warn',

  schema: []
}

class NotRelyOnTimeChecker extends BaseChecker {
  constructor(reporter) {
    super(reporter, ruleId, meta)
  }

  Identifier(node) {
    if (node.name === 'now') {
      this._warn(node)
    }
  }

  MemberAccess(node) {
    if (node.memberName === 'timestamp' && node.expression.name === 'block') {
      this._warn(node)
    }
  }

  _warn(node) {
    this.warn(node, 'Avoid to make time-based decisions in your business logic')
  }
}

module.exports = NotRelyOnTimeChecker

@@ -561,69 +561,69 @@
 ode.
-memberName === 'timestamp' && node.expression.name === 'block
+expression.name === 'block' && node.memberName === 'timestamp
 ') %7B

Update lib/rules/security/not-rely-on-time.js