Skip to content

Commit

Permalink
Ensure license text persists linting
Browse files Browse the repository at this point in the history
Closes CycloneDX#305: In the JavaScript ecosystem, it is common to bundle or
minify code. During these processes, it is common to remove code
comments. Prefix license comment blocks with “/*!” to signal to these
tools that the license comment block should not be removed.

Signed-off-by: William E Little Jr <git@bmo.dev>
  • Loading branch information
bmodotdev committed Sep 4, 2022
1 parent 77a1242 commit ad78224
Show file tree
Hide file tree
Showing 27 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion bin/make-bom.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env node
/* eslint-env node */

/*
/*!
* This file is part of CycloneDX Node Module.
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*!
* This file is part of CycloneDX Node Module.
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 1 addition & 1 deletion model/AttachmentText.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*!
* This file is part of CycloneDX Node Module.
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 1 addition & 1 deletion model/Bom.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*!
* This file is part of CycloneDX Node Module.
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 1 addition & 1 deletion model/Component.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*!
* This file is part of CycloneDX Node Module.
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 1 addition & 1 deletion model/CycloneDXObject.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*!
* This file is part of CycloneDX Node Module.
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 1 addition & 1 deletion model/Dependency.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*!
* This file is part of CycloneDX Node Module.
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 1 addition & 1 deletion model/ExternalReference.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*!
* This file is part of CycloneDX Node Module.
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 1 addition & 1 deletion model/ExternalReferenceList.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*!
* This file is part of CycloneDX Node Module.
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 1 addition & 1 deletion model/Hash.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*!
* This file is part of CycloneDX Node Module.
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 1 addition & 1 deletion model/HashList.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*!
* This file is part of CycloneDX Node Module.
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 1 addition & 1 deletion model/License.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*!
* This file is part of CycloneDX Node Module.
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 1 addition & 1 deletion model/LicenseChoice.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*!
* This file is part of CycloneDX Node Module.
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 1 addition & 1 deletion model/Metadata.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*!
* This file is part of CycloneDX Node Module.
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 1 addition & 1 deletion model/OrganizationalContact.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*!
* This file is part of CycloneDX Node Module.
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 1 addition & 1 deletion model/OrganizationalEntity.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*!
* This file is part of CycloneDX Node Module.
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 1 addition & 1 deletion model/Swid.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*!
* This file is part of CycloneDX Node Module.
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 1 addition & 1 deletion model/Tool.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*!
* This file is part of CycloneDX Node Module.
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/complex.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-env jest */

/*
/*!
* This file is part of CycloneDX Node Module.
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/index.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-env jest */

/*
/*!
* This file is part of CycloneDX Node Module.
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 1 addition & 1 deletion tests/integration/setup.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/*
/*!
* This file is part of CycloneDX Node Module.
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 1 addition & 1 deletion tests/model/Bom.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-env jest */

/*
/*!
* This file is part of CycloneDX Node Module.
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 1 addition & 1 deletion tests/model/Component.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-env jest */

/*
/*!
* This file is part of CycloneDX Node Module.
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 1 addition & 1 deletion tests/model/ExternalReference.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-env jest */

/*
/*!
* This file is part of CycloneDX Node Module.
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 1 addition & 1 deletion tests/model/ExternalReferenceList.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-env jest */

/*
/*!
* This file is part of CycloneDX Node Module.
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 1 addition & 1 deletion tests/model/Metadata.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-env jest */

/*
/*!
* This file is part of CycloneDX Node Module.
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
2 changes: 1 addition & 1 deletion tests/model/OrganizationalContact.test.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-env jest */

/*
/*!
* This file is part of CycloneDX Node Module.
*
* Licensed under the Apache License, Version 2.0 (the "License");
Expand Down

0 comments on commit ad78224

Please sign in to comment.