Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Skip generated files from showing up in diffs.
**/*.g.dart linguist-generated=true
**/*.freezed.dart linguist-generated=true
**/*.pb.dart linguist-generated=true
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not sure about pb files. They don't change often - only when regenerated and then we do want to see them in diff.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean we can't really identify any issues in a generated code, unless we run it locally. It's also skipped from analyzer.

https://github.com/GetStream/stream-video-flutter/blob/main/analysis_options.yaml#L15

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

True, and the analyzer makes sense. The thing is that we have some manual changes there that should be reapplied after regeneration. So it's good to have it in diff so that another pair of eyes can check if. by accident, some manual change wasn't removed.

**/*.pbenum.dart linguist-generated=true
**/*.pbjson.dart linguist-generated=true
**/*.pbserver.dart linguist-generated=true
**/*.pbtwirp.dart linguist-generated=true