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

Extend license check to automatically insert it #2706

Closed
sfackler opened this issue May 15, 2018 · 1 comment
Closed

Extend license check to automatically insert it #2706

sfackler opened this issue May 15, 2018 · 1 comment

Comments

@sfackler
Copy link
Member

Rustfmt can currently be told to check for a license header at the top of all files, but ideally it would insert it for you automatically.

While the current implementation supports regex parsers for things like the current year, we'd need to extend that so that rustfmt would understand what to expand to. Intellij uses a syntax like ${today.year} for that: https://www.jetbrains.com/help/idea/copyright-profiles.html.

@calebcartwright
Copy link
Member

Closing as we're going to drop the license related features. License management is certainly a useful feature, but think this would be best served in dedicated tooling instead of an incomplete aside in rustfmt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants