Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove questionable default targets #634

Merged
merged 6 commits into from
Jul 2, 2020

Conversation

nedtwigg
Copy link
Member

@nedtwigg nedtwigg commented Jul 2, 2020

There are a bunch of languages which don't have a well-established folder structure in the gradle or maven ecosystems (specifically C/C++, typescript, markdown/freshmark, and sql). Previously we had used heavy wildcards (e.g. **/*.md), which are wildly inefficient, and often cause subprojects to be formatted multiple times (possibly in conflicting ways).

For these languages, it would be better for the user to provide a hand-crafted target. For example, our current C/C++ default of **/*.h, **/*.hpp, **/*.c, **/*.cpp **/*.inc, ... can often be replaced by just src/**, which performs far better and requires less documentation.

This PR turns these defaults into an error message in maven, and a deprecation warning (soon to be error) in gradle. Although it is a breaking change to remove these defaults, it would not be a breaking change to add them back. So if you disagree with this change, please feel free to speak up here in this PR.

@nedtwigg nedtwigg force-pushed the feat/remove-questionable-defaults branch from 8459534 to d05f9ca Compare July 2, 2020 04:13
@nedtwigg nedtwigg merged commit fd07b20 into main Jul 2, 2020
@nedtwigg nedtwigg deleted the feat/remove-questionable-defaults branch July 2, 2020 04:19
nedtwigg added a commit that referenced this pull request Jul 2, 2020
…(continuation of #630 and #634). Preserve its eclipse-specific info in the EclipseCdtFormatterStep comments.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant