6 Commits

Author SHA1 Message Date
Michael Goderbauer
5491c8c146
Auto-format Framework (#160545)
This auto-formats all *.dart files in the repository outside of the
`engine` subdirectory and enforces that these files stay formatted with
a presubmit check.

**Reviewers:** Please carefully review all the commits except for the
one titled "formatted". The "formatted" commit was auto-generated by
running `dev/tools/format.sh -a -f`. The other commits were hand-crafted
to prepare the repo for the formatting change. I recommend reviewing the
commits one-by-one via the "Commits" tab and avoiding Github's "Files
changed" tab as it will likely slow down your browser because of the
size of this PR.

---------

Co-authored-by: Kate Lovett <katelovett@google.com>
Co-authored-by: LongCatIsLooong <31859944+LongCatIsLooong@users.noreply.github.com>
2024-12-19 20:06:21 +00:00
Pierre-Louis
a0b7a6b692
Adjust repo config for VS Code formatting (#122758)
If someone's user settings include the following, the current workspace
level formatting settings don't apply since they aren't as specific.
```
"[dart]": {
  "editor.formatOnSave": true,
  "editor.formatOnType": true,
}
```

This PR handles this by turning off auto-formatting specifically for
Dart files.

This PR also adds `"files.trimTrailingWhitespace": true` to simplify
[contribution
guide](https://github.com/flutter/flutter/wiki/Setting-up-the-Framework-development-environment#set-up-your-environment).

Fixes https://github.com/flutter/flutter/issues/122050. This change is
test-exempt.

## Pre-launch Checklist

- [x] I read the [Contributor Guide] and followed the process outlined
there for submitting PRs.
- [x] I read the [Tree Hygiene] wiki page, which explains my
responsibilities.
- [x] I read and followed the [Flutter Style Guide], including [Features
we expect every widget to implement].
- [x] I signed the [CLA].
- [x] I listed at least one issue that this PR fixes in the description
above.
- [x] I updated/added relevant documentation (doc comments with `///`).
- [x] I added new tests to check the change I am making, or this PR is
[test-exempt].
- [x] All existing and new tests are passing.
2023-04-14 12:35:42 +02:00
Greg Spencer
c26d1de4a0
Remove the networked image from the example (#123728) 2023-03-29 18:58:25 -07:00
Tim Sneath
47c0723f26
Disable formatting on save for Dart and HTML files (#122048)
* Remove "format on save" and "format on type" from directory settings
* Also turn off HTML formatting
2023-03-14 11:08:59 -07:00
xster
7a2853012f
Revert "Add a simple convenience test task runner for VSCode (#15417)" (#15705)
This reverts commit c8fd99fb3313c73eb03210a3af037cd2d150ef51.
2018-03-19 13:43:34 -07:00
xster
c8fd99fb33
Add a simple convenience test task runner for VSCode (#15417) 2018-03-12 01:05:23 -07:00