701dfa233a
- Add `.g` suffix to generated filenames and export from the base file. - Rename `linter_lint_codes.dart` to just `lint_codes.dart` for simplicity. - Export `lint_codes.dart` from `src/analyzer.dart` to avoid importing it in every rule file, as they all need it. - Use pre-existing/shared `generateAll` method for generation. - Add some explanatory docs and comments. Bug: https://github.com/dart-lang/sdk/issues/56835 Change-Id: I605e39156bfcc5e3c19a01157426d26300eb877d Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/388058 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Auto-Submit: Parker Lougheed <parlough@gmail.com> Commit-Queue: Samuel Rawlins <srawlins@google.com> Reviewed-by: Phil Quitslund <pquitslund@google.com> Reviewed-by: Samuel Rawlins <srawlins@google.com>