Skip to content

Commit

Permalink
Correct false positive in CocoaLumberjack
Browse files Browse the repository at this point in the history
This project has an odd licensing with a complicated history

Reference: CocoaLumberjack/CocoaLumberjack#1116
Reference: CocoaLumberjack/CocoaLumberjack#936
Reference: CocoaLumberjack/CocoaLumberjack#696
Reference: #2551
Reference: #2603
Reported-by: Marcel Bochtler <[email protected]>
Signed-off-by: Philippe Ombredanne <[email protected]>
  • Loading branch information
pombredanne committed Mar 11, 2022
1 parent d4ec867 commit 90056f2
Show file tree
Hide file tree
Showing 18 changed files with 172 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/licensedcode/data/rules/bsd-new_1144.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
BSD 3-Clause License

Copyright (c) 2010-2021, Deusty, LLC
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

3. Neither the name of Deusty nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission of Deusty, LLC.
7 changes: 7 additions & 0 deletions src/licensedcode/data/rules/bsd-new_1144.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
license_expression: bsd-new
is_license_text: yes
minimum_coverage: 95
ignorable_copyrights:
- Copyright (c) 2010-2021, Deusty, LLC
ignorable_holders:
- Deusty, LLC
14 changes: 14 additions & 0 deletions src/licensedcode/data/rules/bsd-new_1145.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
BSD 3-Clause License

Copyright (c) 2010-2021, Deusty, LLC
All rights reserved.

Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

3. Neither the name of Deusty nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission of Deusty, LLC.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
7 changes: 7 additions & 0 deletions src/licensedcode/data/rules/bsd-new_1145.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
license_expression: bsd-new
is_license_text: yes
minimum_coverage: 95
ignorable_copyrights:
- Copyright (c) 2010-2021, Deusty, LLC
ignorable_holders:
- Deusty, LLC
9 changes: 9 additions & 0 deletions src/licensedcode/data/rules/bsd-new_1146.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.

3. Neither the name of Deusty nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission of Deusty, LLC.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3 changes: 3 additions & 0 deletions src/licensedcode/data/rules/bsd-new_1146.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
license_expression: bsd-new
is_license_text: yes
minimum_coverage: 95
14 changes: 14 additions & 0 deletions src/licensedcode/data/rules/bsd-source-code_21.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Software License Agreement {{(BSD License)}}

Copyright (c) {{Deusty, LLC}}
All rights reserved.

// Redistribution and use of this software in source and binary forms,
// with or without modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
//
// * Neither the name of Deusty nor the names of its contributors may be used
// to endorse or promote products derived from this software without specific
// prior written permission of Deusty, LLC.
3 changes: 3 additions & 0 deletions src/licensedcode/data/rules/bsd-source-code_21.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
license_expression: bsd-source-code
is_license_text: yes
minimum_coverage: 95
13 changes: 13 additions & 0 deletions src/licensedcode/data/rules/bsd-source-code_22.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Software License Agreement (BSD License)

Redistribution and use of this software in source and binary forms,
with or without modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above
copyright notice, this list of conditions and the
following disclaimer.

* Neither the name of Deusty LLC nor the names of its
contributors may be used to endorse or promote products
derived from this software without specific prior
written permission of Deusty LLC.
3 changes: 3 additions & 0 deletions src/licensedcode/data/rules/bsd-source-code_22.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
license_expression: bsd-source-code
is_license_text: yes
minimum_coverage: 95
24 changes: 24 additions & 0 deletions src/licensedcode/data/rules/bsd-source-code_23.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
Software License Agreement (BSD License)

Redistribution and use of this software in source and binary forms,
with or without modification, are permitted provided that the following conditions are met:

* Redistributions of source code must retain the above
copyright notice, this list of conditions and the
following disclaimer.

* Neither the name of Deusty LLC nor the names of its
contributors may be used to endorse or promote products
derived from this software without specific prior
written permission of Deusty LLC.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
3 changes: 3 additions & 0 deletions src/licensedcode/data/rules/bsd-source-code_23.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
license_expression: bsd-source-code
is_license_text: yes
minimum_coverage: 95
11 changes: 11 additions & 0 deletions src/licensedcode/data/rules/bsd-source-code_24.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
// Software License Agreement {{(BSD License)}}
//
// Redistribution and use of this software in source and binary forms,
// with or without modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
//
// * Neither the name of Deusty nor the names of its contributors may be used
// to endorse or promote products derived from this software without specific
// prior written permission of Deusty, LLC.
3 changes: 3 additions & 0 deletions src/licensedcode/data/rules/bsd-source-code_24.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
license_expression: bsd-source-code
is_license_text: yes
minimum_coverage: 95
14 changes: 14 additions & 0 deletions src/licensedcode/data/rules/bsd-source-code_25.RULE
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
// Software License Agreement (BSD License)
//
// Copyright (c) 2010-2021, Deusty, LLC
// All rights reserved.
//
// Redistribution and use of this software in source and binary forms,
// with or without modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
//
// * Neither the name of Deusty nor the names of its contributors may be used
// to endorse or promote products derived from this software without specific
// prior written permission of Deusty, LLC.
7 changes: 7 additions & 0 deletions src/licensedcode/data/rules/bsd-source-code_25.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
license_expression: bsd-source-code
is_license_text: yes
minimum_coverage: 95
ignorable_copyrights:
- Copyright (c) 2010-2021, Deusty, LLC
ignorable_holders:
- Deusty, LLC
23 changes: 23 additions & 0 deletions tests/licensedcode/data/datadriven/lic4/DDOSLogger.m
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Software License Agreement (BSD License)
//
// Copyright (c) 2010-2021, Deusty, LLC
// All rights reserved.
//
// Redistribution and use of this software in source and binary forms,
// with or without modification, are permitted provided that the following conditions are met:
//
// * Redistributions of source code must retain the above copyright notice,
// this list of conditions and the following disclaimer.
//
// * Neither the name of Deusty nor the names of its contributors may be used
// to endorse or promote products derived from this software without specific
// prior written permission of Deusty, LLC.

#import <os/log.h>

#import <CocoaLumberjack/DDOSLogger.h>

@interface DDOSLogger () {
NSString *_subsystem;
NSString *_category;
}
2 changes: 2 additions & 0 deletions tests/licensedcode/data/datadriven/lic4/DDOSLogger.m.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
license_expressions:
- bsd-source-code

0 comments on commit 90056f2

Please sign in to comment.