code0-license 0.1.0.pre.release.testing

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: a873c8ebbcf3823d0172aefb63983db2a55313e3b6427b77e21fcebd0140bba6
4
+ data.tar.gz: '0459751c4df8fea3f7f1ee7fad190a9ae6db9841b7eed8281c316ff986afac57'
5
+ SHA512:
6
+ metadata.gz: 71ec932d10edbd3085691e257b6c0b6817a5baa8fd7fc88a6d362a2b72d9efb2afbd5ba1d17c15517c4f1d43608155a208a6191bf521bed70a95dba524357871
7
+ data.tar.gz: 60cc0049743b50bcd25705a95cb4627062ed498a9ad2b19f06780c2eb529aca5276d6fe939ea6b33cfa22e2357e6c91da43d255a9a299a8f89512f863aa387bf
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.rubocop.yml ADDED
@@ -0,0 +1,33 @@
1
+ require:
2
+ - rubocop-rake
3
+ - rubocop-rspec
4
+
5
+ AllCops:
6
+ TargetRubyVersion: 3.0.0
7
+ NewCops: enable
8
+
9
+ Gemspec/DevelopmentDependencies:
10
+ EnforcedStyle: gemspec
11
+
12
+ Metrics/AbcSize:
13
+ Enabled: false
14
+
15
+ Metrics/MethodLength:
16
+ Enabled: false
17
+
18
+ Metrics/CyclomaticComplexity:
19
+ Enabled: false
20
+
21
+ Metrics/PerceivedComplexity:
22
+ Enabled: false
23
+
24
+ Style/StringLiterals:
25
+ Enabled: true
26
+ EnforcedStyle: double_quotes
27
+
28
+ Style/StringLiteralsInInterpolation:
29
+ Enabled: true
30
+ EnforcedStyle: double_quotes
31
+
32
+ Layout/LineLength:
33
+ Max: 120
data/.tool-versions ADDED
@@ -0,0 +1 @@
1
+ ruby 3.2.2
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ source "https://rubygems.org"
4
+
5
+ # Specify your gem's dependencies in code0-license.gemspec
6
+ gemspec
data/Gemfile.lock ADDED
@@ -0,0 +1,76 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ code0-license (0.1.0)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ ast (2.4.2)
10
+ diff-lcs (1.5.1)
11
+ json (2.7.2)
12
+ language_server-protocol (3.17.0.3)
13
+ parallel (1.24.0)
14
+ parser (3.3.1.0)
15
+ ast (~> 2.4.1)
16
+ racc
17
+ racc (1.7.3)
18
+ rainbow (3.1.1)
19
+ rake (13.2.1)
20
+ regexp_parser (2.9.0)
21
+ rexml (3.2.6)
22
+ rspec (3.13.0)
23
+ rspec-core (~> 3.13.0)
24
+ rspec-expectations (~> 3.13.0)
25
+ rspec-mocks (~> 3.13.0)
26
+ rspec-core (3.13.0)
27
+ rspec-support (~> 3.13.0)
28
+ rspec-expectations (3.13.0)
29
+ diff-lcs (>= 1.2.0, < 2.0)
30
+ rspec-support (~> 3.13.0)
31
+ rspec-mocks (3.13.0)
32
+ diff-lcs (>= 1.2.0, < 2.0)
33
+ rspec-support (~> 3.13.0)
34
+ rspec-support (3.13.1)
35
+ rubocop (1.63.4)
36
+ json (~> 2.3)
37
+ language_server-protocol (>= 3.17.0)
38
+ parallel (~> 1.10)
39
+ parser (>= 3.3.0.2)
40
+ rainbow (>= 2.2.2, < 4.0)
41
+ regexp_parser (>= 1.8, < 3.0)
42
+ rexml (>= 3.2.5, < 4.0)
43
+ rubocop-ast (>= 1.31.1, < 2.0)
44
+ ruby-progressbar (~> 1.7)
45
+ unicode-display_width (>= 2.4.0, < 3.0)
46
+ rubocop-ast (1.31.3)
47
+ parser (>= 3.3.1.0)
48
+ rubocop-capybara (2.20.0)
49
+ rubocop (~> 1.41)
50
+ rubocop-factory_bot (2.25.1)
51
+ rubocop (~> 1.41)
52
+ rubocop-rake (0.6.0)
53
+ rubocop (~> 1.0)
54
+ rubocop-rspec (2.29.1)
55
+ rubocop (~> 1.40)
56
+ rubocop-capybara (~> 2.17)
57
+ rubocop-factory_bot (~> 2.22)
58
+ rubocop-rspec_rails (~> 2.28)
59
+ rubocop-rspec_rails (2.28.3)
60
+ rubocop (~> 1.40)
61
+ ruby-progressbar (1.13.0)
62
+ unicode-display_width (2.5.0)
63
+
64
+ PLATFORMS
65
+ x86_64-linux
66
+
67
+ DEPENDENCIES
68
+ code0-license!
69
+ rake (~> 13.0)
70
+ rspec (~> 3.0)
71
+ rubocop (~> 1.21)
72
+ rubocop-rake (~> 0.6)
73
+ rubocop-rspec (~> 2.29)
74
+
75
+ BUNDLED WITH
76
+ 2.4.12
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2024 Niklas van Schrick
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # Code0::License
2
+
3
+ `Code0::License` can create and validate software licenses.
4
+
5
+ ## Installation
6
+
7
+ Install the gem and add to the application's Gemfile by executing:
8
+
9
+ $ bundle add code0-license
10
+
11
+ If bundler is not being used to manage dependencies, install the gem by executing:
12
+
13
+ $ gem install code0-license
14
+
15
+ ## Usage
16
+
17
+ To start using the gem, you need to have a public and private RSA key.
data/Rakefile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ require "rubocop/rake_task"
9
+
10
+ RuboCop::RakeTask.new
11
+
12
+ task default: %i[spec rubocop]
@@ -0,0 +1,37 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "lib/code0/license/version"
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = "code0-license"
7
+ spec.version = Code0::License::VERSION
8
+ spec.authors = ["Niklas van Schrick"]
9
+ spec.email = ["mc.taucher2003@gmail.com"]
10
+
11
+ spec.summary = "code0-license is used to validate software licenses"
12
+ spec.homepage = "https://github.com/code0-tech/code0-license"
13
+ spec.license = "MIT"
14
+ spec.required_ruby_version = ">= 3.0.0"
15
+
16
+ spec.metadata["homepage_uri"] = spec.homepage
17
+ spec.metadata["source_code_uri"] = spec.homepage
18
+ spec.metadata["changelog_uri"] = "#{spec.homepage}/releases"
19
+
20
+ # Specify which files should be added to the gem when it is released.
21
+ # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
22
+ spec.files = Dir.chdir(__dir__) do
23
+ `git ls-files -z`.split("\x0").reject do |f|
24
+ (File.expand_path(f) == __FILE__) || f.start_with?(*%w[bin/ spec/ .git .github])
25
+ end
26
+ end
27
+ spec.bindir = "exe"
28
+ spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
29
+ spec.require_paths = ["lib"]
30
+
31
+ spec.add_development_dependency "rake", "~> 13.0"
32
+ spec.add_development_dependency "rspec", "~> 3.0"
33
+ spec.add_development_dependency "rubocop", "~> 1.21"
34
+ spec.add_development_dependency "rubocop-rake", "~> 0.6"
35
+ spec.add_development_dependency "rubocop-rspec", "~> 2.29"
36
+ spec.metadata["rubygems_mfa_required"] = "true"
37
+ end
@@ -0,0 +1,41 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Code0
4
+ class License
5
+ # Responsible for adding and removing boundaries of strings
6
+ module Boundary
7
+ BOUNDARY_START = /(\A|\r?\n)-*BEGIN .+? LICENSE-*\r?\n/
8
+ BOUNDARY_END = /\r?\n-*END .+? LICENSE-*(\r?\n|\z)/
9
+
10
+ class << self
11
+ def add_boundary(data, license_name)
12
+ data = remove_boundary(data)
13
+
14
+ [
15
+ pad("BEGIN #{license_name} LICENSE", 60),
16
+ data.strip,
17
+ pad("END #{license_name} LICENSE", 60)
18
+ ].join("\n")
19
+ end
20
+
21
+ def remove_boundary(data)
22
+ after_boundary = data.split(BOUNDARY_START).last
23
+ after_boundary.split(BOUNDARY_END).first
24
+ end
25
+
26
+ private
27
+
28
+ def pad(str, length)
29
+ total_padding = [length - str.length, 0].max
30
+
31
+ padding = total_padding / 2.0
32
+ [
33
+ "-" * padding.ceil,
34
+ str,
35
+ "-" * padding.floor
36
+ ].join
37
+ end
38
+ end
39
+ end
40
+ end
41
+ end
@@ -0,0 +1,95 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Code0
4
+ class License
5
+ # Contains the encryption logic. Decoupled from actual license logic
6
+ class Encryptor
7
+ class Error < Code0::License::Error; end
8
+ class KeyError < Error; end
9
+ class DecryptionError < Error; end
10
+
11
+ attr_accessor :key
12
+
13
+ def initialize(key)
14
+ raise KeyError, "No RSA encryption key provided." if key && !key.is_a?(OpenSSL::PKey::RSA)
15
+
16
+ @key = key
17
+ end
18
+
19
+ def encrypt(data)
20
+ raise KeyError, "Provided key is not a private key." unless key.private?
21
+
22
+ # Encrypt the data using symmetric AES encryption.
23
+ cipher = OpenSSL::Cipher.new("aes-128-cbc")
24
+ cipher.encrypt
25
+ aes_key = cipher.random_key
26
+ aes_iv = cipher.random_iv
27
+
28
+ encrypted_data = cipher.update(data) + cipher.final
29
+
30
+ # Encrypt the AES key using asymmetric RSA encryption.
31
+ encrypted_key = key.private_encrypt(aes_key)
32
+
33
+ encryption_data = {
34
+ "data" => Base64.encode64(encrypted_data),
35
+ "key" => Base64.encode64(encrypted_key),
36
+ "iv" => Base64.encode64(aes_iv)
37
+ }
38
+
39
+ json_data = JSON.dump(encryption_data)
40
+ Base64.encode64(json_data)
41
+ end
42
+
43
+ def decrypt(data)
44
+ raise KeyError, "Provided key is not a public key." unless key.public?
45
+
46
+ json_data = Base64.decode64(data.chomp)
47
+
48
+ begin
49
+ encryption_data = JSON.parse(json_data)
50
+ rescue JSON::ParserError
51
+ raise DecryptionError, "Encryption data is invalid JSON."
52
+ end
53
+
54
+ unless %w[data key iv].all? { |key| encryption_data[key] }
55
+ raise DecryptionError, "Required field missing from encryption data."
56
+ end
57
+
58
+ encrypted_data = Base64.decode64(encryption_data["data"])
59
+ encrypted_key = Base64.decode64(encryption_data["key"])
60
+ aes_iv = Base64.decode64(encryption_data["iv"])
61
+
62
+ begin
63
+ # Decrypt the AES key using asymmetric RSA encryption.
64
+ aes_key = self.key.public_decrypt(encrypted_key)
65
+ rescue OpenSSL::PKey::RSAError
66
+ raise DecryptionError, "AES encryption key could not be decrypted."
67
+ end
68
+
69
+ # Decrypt the data using symmetric AES encryption.
70
+ cipher = OpenSSL::Cipher.new("aes-128-cbc")
71
+ cipher.decrypt
72
+
73
+ begin
74
+ cipher.key = aes_key
75
+ rescue OpenSSL::Cipher::CipherError
76
+ raise DecryptionError, "AES encryption key is invalid."
77
+ end
78
+
79
+ begin
80
+ cipher.iv = aes_iv
81
+ rescue OpenSSL::Cipher::CipherError
82
+ raise DecryptionError, "AES IV is invalid."
83
+ end
84
+
85
+ begin
86
+ data = cipher.update(encrypted_data) + cipher.final
87
+ rescue OpenSSL::Cipher::CipherError
88
+ raise DecryptionError, "Data could not be decrypted."
89
+ end
90
+
91
+ data
92
+ end
93
+ end
94
+ end
95
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Code0
4
+ class License
5
+ VERSION = "0.1.0.pre.release.testing"
6
+ end
7
+ end
@@ -0,0 +1,105 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "openssl"
4
+ require "base64"
5
+ require "date"
6
+ require "json"
7
+
8
+ require_relative "license/boundary"
9
+ require_relative "license/version"
10
+
11
+ module Code0
12
+ # Logic relating to license. Delegates encryption to Encryptor
13
+ class License
14
+ class Error < StandardError; end
15
+ class ValidationError < Error; end
16
+
17
+ class << self
18
+ def encryption_key=(key)
19
+ raise Error, "No RSA key provided." if key && !key.is_a?(OpenSSL::PKey::RSA)
20
+
21
+ @encryption_key = key
22
+ end
23
+
24
+ def load(data)
25
+ raise ValidationError, "No data" if data.nil?
26
+
27
+ data = Boundary.remove_boundary(data)
28
+
29
+ decrypted_license = encryptor.decrypt(data)
30
+
31
+ new(JSON.parse(decrypted_license))
32
+ rescue JSON::ParserError
33
+ raise ValidationError, "License data is invalid JSON"
34
+ end
35
+
36
+ def export(license, license_name)
37
+ license_data = JSON.dump(license.data)
38
+ encrypted_license = encryptor.encrypt(license_data)
39
+ Boundary.add_boundary(encrypted_license, license_name)
40
+ end
41
+
42
+ def encryptor
43
+ Encryptor.new(@encryption_key)
44
+ end
45
+ end
46
+
47
+ ATTRIBUTES = %i[
48
+ start_date
49
+ end_date
50
+ licensee
51
+ restrictions
52
+ options
53
+ ].freeze
54
+ attr_reader(*ATTRIBUTES)
55
+
56
+ def initialize(data)
57
+ assign_attributes(data)
58
+ end
59
+
60
+ def valid?
61
+ return false if !licensee || !licensee.is_a?(Hash) || licensee.empty?
62
+ return false if !start_date || !start_date.is_a?(Date)
63
+ return false if (!end_date || !end_date.is_a?(Date)) && !options["allow_missing_end_date"]
64
+
65
+ true
66
+ end
67
+
68
+ def in_active_time?
69
+ return false if start_date > Date.today
70
+ return true if !end_date && options["allow_missing_end_date"]
71
+ return false if !end_date && !options["allow_missing_end_date"]
72
+
73
+ end_date >= Date.today
74
+ end
75
+
76
+ def data
77
+ ATTRIBUTES.map { |attr| [attr, send(attr)] }.to_h
78
+ end
79
+
80
+ private
81
+
82
+ attr_writer(*ATTRIBUTES)
83
+
84
+ def assign_attributes(data)
85
+ %w[start_date end_date].each do |property|
86
+ value = data[property]
87
+ value = parse_date(data[property]) unless data[property].is_a?(Date)
88
+ send("#{property}=", value)
89
+ end
90
+
91
+ send("licensee=", data["licensee"])
92
+ send("restrictions=", data["restrictions"] || {})
93
+ send("options=", data["options"] || {})
94
+ end
95
+
96
+ def parse_date(str)
97
+ Date.parse(str)
98
+ rescue StandardError
99
+ nil
100
+ end
101
+ end
102
+ end
103
+
104
+ # this depends on constants defined in this class
105
+ require_relative "license/encryptor"
@@ -0,0 +1,16 @@
1
+ module Code0
2
+ class License
3
+ module Boundary
4
+ BOUNDARY_END: Regexp
5
+ BOUNDARY_START: Regexp
6
+
7
+ def self.add_boundary: (String, String) -> String
8
+
9
+ def self.pad: (String, Integer) -> String
10
+
11
+ private
12
+
13
+ def self.remove_boundary: (String) -> String
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,13 @@
1
+ module Code0
2
+ class License
3
+ class Encryptor
4
+ @key: OpenSSL::PKey::RSA
5
+ attr_accessor key: OpenSSL::PKey::RSA
6
+
7
+ def initialize: (OpenSSL::PKey::RSA) -> Encryptor
8
+
9
+ def decrypt: (String) -> String
10
+ def encrypt: (String) -> String
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,29 @@
1
+ module Code0
2
+ class License
3
+ ATTRIBUTES: Array[Symbol]
4
+ VERSION: String
5
+
6
+ self.@encryption_key: OpenSSL::PKey::RSA
7
+ @data: Hash[String, any]
8
+
9
+ def self.encryption_key=: (OpenSSL::PKey::RSA) -> void
10
+
11
+ def self.export: (License, String) -> String
12
+
13
+ def self.load: (String) -> License
14
+
15
+ def self.encryptor: -> Encryptor
16
+
17
+ attr_reader data: Hash[String, any]
18
+
19
+ def in_active_time?: -> bool
20
+
21
+ def valid?: -> bool
22
+
23
+ private
24
+
25
+ def assign_attributes: (Hash[String, any]) -> void
26
+
27
+ def parse_date: (String) -> Date?
28
+ end
29
+ end
metadata ADDED
@@ -0,0 +1,133 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: code0-license
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0.pre.release.testing
5
+ platform: ruby
6
+ authors:
7
+ - Niklas van Schrick
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2024-05-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rake
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '13.0'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '13.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '3.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '3.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rubocop
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.21'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.21'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rubocop-rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '0.6'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '0.6'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop-rspec
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '2.29'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '2.29'
83
+ description:
84
+ email:
85
+ - mc.taucher2003@gmail.com
86
+ executables: []
87
+ extensions: []
88
+ extra_rdoc_files: []
89
+ files:
90
+ - ".rspec"
91
+ - ".rubocop.yml"
92
+ - ".tool-versions"
93
+ - Gemfile
94
+ - Gemfile.lock
95
+ - LICENSE.txt
96
+ - README.md
97
+ - Rakefile
98
+ - code0-license.gemspec
99
+ - lib/code0/license.rb
100
+ - lib/code0/license/boundary.rb
101
+ - lib/code0/license/encryptor.rb
102
+ - lib/code0/license/version.rb
103
+ - sig/code0/license.rbs
104
+ - sig/code0/license/boundary.rbs
105
+ - sig/code0/license/encryptor.rbs
106
+ homepage: https://github.com/code0-tech/code0-license
107
+ licenses:
108
+ - MIT
109
+ metadata:
110
+ homepage_uri: https://github.com/code0-tech/code0-license
111
+ source_code_uri: https://github.com/code0-tech/code0-license
112
+ changelog_uri: https://github.com/code0-tech/code0-license/releases
113
+ rubygems_mfa_required: 'true'
114
+ post_install_message:
115
+ rdoc_options: []
116
+ require_paths:
117
+ - lib
118
+ required_ruby_version: !ruby/object:Gem::Requirement
119
+ requirements:
120
+ - - ">="
121
+ - !ruby/object:Gem::Version
122
+ version: 3.0.0
123
+ required_rubygems_version: !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - - ">"
126
+ - !ruby/object:Gem::Version
127
+ version: 1.3.1
128
+ requirements: []
129
+ rubygems_version: 3.4.10
130
+ signing_key:
131
+ specification_version: 4
132
+ summary: code0-license is used to validate software licenses
133
+ test_files: []