loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Exclude `routers/private/tests` from air (#29949)

Exclude this and reformat the toml option to multiline.

I wasn't able to get `exclude_regex` to work so it would include a
`tests` directory anywhere. I think that option only works on files.

(cherry picked from commit 3ee39db34efd532626d710de6717bf3c6255c10e)

authored by

silverwind and committed by
Earl Warren
6dabb411 01f729f7

+10 -1
+10 -1
.air.toml
··· 8 8 include_ext = ["go", "tmpl"] 9 9 include_file = ["main.go"] 10 10 include_dir = ["cmd", "models", "modules", "options", "routers", "services"] 11 - exclude_dir = ["modules/git/tests", "services/gitdiff/testdata", "modules/avatar/testdata", "models/fixtures", "models/migrations/fixtures", "modules/migration/file_format_testdata", "modules/avatar/identicon/testdata"] 11 + exclude_dir = [ 12 + "models/fixtures", 13 + "models/migrations/fixtures", 14 + "modules/avatar/identicon/testdata", 15 + "modules/avatar/testdata", 16 + "modules/git/tests", 17 + "modules/migration/file_format_testdata", 18 + "routers/private/tests", 19 + "services/gitdiff/testdata", 20 + ] 12 21 exclude_regex = ["_test.go$", "_gen.go$"] 13 22 stop_on_error = true