mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Improve tidy's license validation logic
fixes https://github.com/servo/servo/issues/10716 I took the lazy way out and hardcoded the size of block we examine for licenses. fixes https://github.com/servo/servo/issues/10719 Includes tests for new functionality.
This commit is contained in:
parent
1f4dd8765f
commit
48ace17b54
7 changed files with 73 additions and 102 deletions
5
python/tidy/servo_tidy_tests/apache2_license.rs
Normal file
5
python/tidy/servo_tidy_tests/apache2_license.rs
Normal file
|
@ -0,0 +1,5 @@
|
|||
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
|
||||
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
|
||||
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
|
||||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
Loading…
Add table
Add a link
Reference in a new issue