[BUG #6968] add support for #ignore in lint checking

- old #ignore hints were not honored in the new lint implementation
- add this to be backwards compatible with the old implementation,
  so that no new warnings pop up when migrating old code to 3.0
- (was confusing anyway when a lint run would complain about the same thing
  and a compile run would not)