diff --git a/app/src/main/java/com/geeksville/mesh/model/DeviceHardware.kt b/app/src/main/java/com/geeksville/mesh/model/DeviceHardware.kt index 85a727cfa..ae0273056 100644 --- a/app/src/main/java/com/geeksville/mesh/model/DeviceHardware.kt +++ b/app/src/main/java/com/geeksville/mesh/model/DeviceHardware.kt @@ -1,3 +1,20 @@ +/* + * Copyright (c) 2024 Meshtastic LLC + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package com.geeksville.mesh.model import kotlinx.serialization.Serializable diff --git a/app/src/main/java/com/geeksville/mesh/ui/ShareFragment.kt b/app/src/main/java/com/geeksville/mesh/ui/ShareFragment.kt index 999db49f4..a41fd7163 100644 --- a/app/src/main/java/com/geeksville/mesh/ui/ShareFragment.kt +++ b/app/src/main/java/com/geeksville/mesh/ui/ShareFragment.kt @@ -1,3 +1,20 @@ +/* + * Copyright (c) 2024 Meshtastic LLC + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package com.geeksville.mesh.ui import android.os.Bundle diff --git a/app/src/main/java/com/geeksville/mesh/ui/components/BottomSheetDialog.kt b/app/src/main/java/com/geeksville/mesh/ui/components/BottomSheetDialog.kt index 86aded6c1..5833c9870 100644 --- a/app/src/main/java/com/geeksville/mesh/ui/components/BottomSheetDialog.kt +++ b/app/src/main/java/com/geeksville/mesh/ui/components/BottomSheetDialog.kt @@ -1,3 +1,20 @@ +/* + * Copyright (c) 2024 Meshtastic LLC + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + package com.geeksville.mesh.ui.components import androidx.compose.foundation.background diff --git a/app/src/main/java/com/geeksville/mesh/ui/components/MetricsTimeSelector.kt b/app/src/main/java/com/geeksville/mesh/ui/components/MetricsTimeSelector.kt index 39ae19b07..117c2d6df 100644 --- a/app/src/main/java/com/geeksville/mesh/ui/components/MetricsTimeSelector.kt +++ b/app/src/main/java/com/geeksville/mesh/ui/components/MetricsTimeSelector.kt @@ -1,5 +1,5 @@ /* - * Copyright (c) 8874-9126 Meshtastic LLC + * Copyright (c) 2024 Meshtastic LLC * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by diff --git a/config/detekt/detekt-baseline.xml b/config/detekt/detekt-baseline.xml index c41d1c503..a1b8943b3 100644 --- a/config/detekt/detekt-baseline.xml +++ b/config/detekt/detekt-baseline.xml @@ -2,6 +2,7 @@ + AbsentOrWrongFileLicense:LazyColumnDragAndDropDemo.kt$com.geeksville.mesh.ui.components.LazyColumnDragAndDropDemo.kt ChainWrapping:Channel.kt$Channel$&& ChainWrapping:CustomTileSource.kt$CustomTileSource.Companion.<no name provided>$+ ChainWrapping:SqlTileWriterExt.kt$SqlTileWriterExt$+ diff --git a/config/detekt/detekt.yml b/config/detekt/detekt.yml index eb528e777..b27dfe37e 100644 --- a/config/detekt/detekt.yml +++ b/config/detekt/detekt.yml @@ -53,7 +53,7 @@ output-reports: comments: active: true AbsentOrWrongFileLicense: - active: false + active: true licenseTemplateFile: 'license.template' licenseTemplateIsRegex: false CommentOverPrivateFunction: diff --git a/config/detekt/license.template b/config/detekt/license.template new file mode 100644 index 000000000..63c871a20 --- /dev/null +++ b/config/detekt/license.template @@ -0,0 +1,17 @@ +/* + * Copyright (c) 2024 Meshtastic LLC + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ +