Skip to content

Commit

Permalink
change: copyright year is set dynamically
Browse files Browse the repository at this point in the history
  • Loading branch information
daniele-mng authored and bjoernricks committed Jan 3, 2025
1 parent 01da4b8 commit 6aadc71
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import allowedSnakeCase from './allowedSnakeCase.js';

pluginHeader.rules.header.meta.schema = false; // /~https://github.com/Stuk/eslint-plugin-header/issues/57

const year = new Date().getFullYear();

export default [
pluginJs.configs.recommended,
pluginReact.configs.flat?.recommended,
Expand Down Expand Up @@ -88,7 +90,7 @@ export default [
[
{
pattern: ' SPDX-FileCopyrightText: \\d{4} Greenbone AG',
template: ' SPDX-FileCopyrightText: 2024 Greenbone AG',
template: ` SPDX-FileCopyrightText: ${year} Greenbone AG`,
},
' *',
' * SPDX-License-Identifier: AGPL-3.0-or-later',
Expand Down
2 changes: 1 addition & 1 deletion src/web/components/structure/footer.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ const Footer = styled.footer`
const GreenboneFooter = () => {
return (
<Footer>
Copyright © 2009-2024 by Greenbone AG,&nbsp;
Copyright © 2009-2025 by Greenbone AG,&nbsp;
<Link
href="http://www.greenbone.net"
rel="noopener noreferrer"
Expand Down

0 comments on commit 6aadc71

Please sign in to comment.