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

Add check for missing license header #16

Merged
merged 3 commits into from
Dec 14, 2020
Merged

Conversation

GuillaumeGomez
Copy link
Member

No description provided.

src/license.rs Outdated
let header: Vec<String> = f.lines().take(3).map(|x| x.unwrap()).collect();
Ok(header.len() == 3 &&
header[0].starts_with("// Copyright ") &&
header[0].ends_with(", The Gtk-rs Project Developers.") &&
Copy link
Member

Choose a reason for hiding this comment

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

That wouldn't allow me to run it on gstreamer-rs, and would be a bit strict anyway.

Also note that "The Gtk-rs Project Developers" as a copyright declaration is rather useless as that's not a legal entity. That's as useful as writing "Santa Clause" there :)

See also gtk-rs/gtk3-rs#60 . If we fix this now let's do it properly instead of adding more useless information everywhere.

src/license.rs Outdated Show resolved Hide resolved
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.

2 participants