Skip to content

Commit

Permalink
Add license headers, licensure.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdwn committed Mar 26, 2024
1 parent d5ee926 commit b9bb907
Show file tree
Hide file tree
Showing 25 changed files with 340 additions and 1 deletion.
13 changes: 12 additions & 1 deletion .github/workflows/mtrack.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,15 @@ jobs:
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Test mtrack
run: cargo test --all --verbose
run: cargo test --all --verbose

licensure:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Install licensure
run: cargo install licensure
- uses: Swatinem/rust-cache@v2
- name: Check for licenses
run: licensure --check -p
29 changes: 29 additions & 0 deletions .licensure.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
change_in_place: true
excludes:
- \.gitignore
- .*lock
- \.git/.*
- \.licensure\.yml
- README.*
- LICENSE.*
- .*\.(md|rst|txt)
- Cargo.toml
- .*\.yaml
- .*\.wav
- .*\.mid
licenses:
- files: any
ident: GPL-3.0
authors:
- name: Michael Wilson
email: [email protected]
auto_template: true

comments:
- columns: 80
extensions:
- rs
commenter:
type: line
comment_char: "//"
trailing_lines: 0
13 changes: 13 additions & 0 deletions src/audio.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
// Copyright (C) 2024 Michael Wilson <[email protected]>
//
// 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, version 3.
//
// 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 <https://www.gnu.org/licenses/>.
//
use std::{error::Error, fmt, sync::Arc};

use crate::playsync::CancelHandle;
Expand Down
13 changes: 13 additions & 0 deletions src/audio/alsa.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
// Copyright (C) 2024 Michael Wilson <[email protected]>
//
// 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, version 3.
//
// 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 <https://www.gnu.org/licenses/>.
//
use std::{collections::HashMap, error::Error, fmt};

use cpal::traits::{DeviceTrait, HostTrait};
Expand Down
13 changes: 13 additions & 0 deletions src/audio/cpal.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
// Copyright (C) 2024 Michael Wilson <[email protected]>
//
// 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, version 3.
//
// 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 <https://www.gnu.org/licenses/>.
//
use super::alsa;
use std::{
any::type_name,
Expand Down
13 changes: 13 additions & 0 deletions src/audio/mock.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
// Copyright (C) 2024 Michael Wilson <[email protected]>
//
// 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, version 3.
//
// 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 <https://www.gnu.org/licenses/>.
//
use std::{
error::Error,
fmt,
Expand Down
13 changes: 13 additions & 0 deletions src/config.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
// Copyright (C) 2024 Michael Wilson <[email protected]>
//
// 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, version 3.
//
// 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 <https://www.gnu.org/licenses/>.
//
use std::collections::HashMap;
use std::error::Error;
use std::fs;
Expand Down
13 changes: 13 additions & 0 deletions src/config/controller.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
// Copyright (C) 2024 Michael Wilson <[email protected]>
//
// 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, version 3.
//
// 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 <https://www.gnu.org/licenses/>.
//
use std::{error::Error, sync::Arc};

use serde::Deserialize;
Expand Down
13 changes: 13 additions & 0 deletions src/config/midi.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
// Copyright (C) 2024 Michael Wilson <[email protected]>
//
// 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, version 3.
//
// 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 <https://www.gnu.org/licenses/>.
//
use std::error::Error;

use midly::{
Expand Down
13 changes: 13 additions & 0 deletions src/config/player.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
// Copyright (C) 2024 Michael Wilson <[email protected]>
//
// 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, version 3.
//
// 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 <https://www.gnu.org/licenses/>.
//
use serde::Deserialize;

use super::controller::Controller;
Expand Down
13 changes: 13 additions & 0 deletions src/config/playlist.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
// Copyright (C) 2024 Michael Wilson <[email protected]>
//
// 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, version 3.
//
// 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 <https://www.gnu.org/licenses/>.
//
use serde::Deserialize;

/// The configuration for a playlist.
Expand Down
13 changes: 13 additions & 0 deletions src/config/song.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
// Copyright (C) 2024 Michael Wilson <[email protected]>
//
// 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, version 3.
//
// 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 <https://www.gnu.org/licenses/>.
//
use std::{
error::Error,
path::{Path, PathBuf},
Expand Down
13 changes: 13 additions & 0 deletions src/config/track.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
// Copyright (C) 2024 Michael Wilson <[email protected]>
//
// 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, version 3.
//
// 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 <https://www.gnu.org/licenses/>.
//
use std::{error::Error, path::Path};

use serde::Deserialize;
Expand Down
13 changes: 13 additions & 0 deletions src/controller.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
// Copyright (C) 2024 Michael Wilson <[email protected]>
//
// 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, version 3.
//
// 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 <https://www.gnu.org/licenses/>.
//
use std::error::Error;
use std::io;
use std::sync::Arc;
Expand Down
13 changes: 13 additions & 0 deletions src/controller/keyboard.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
// Copyright (C) 2024 Michael Wilson <[email protected]>
//
// 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, version 3.
//
// 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 <https://www.gnu.org/licenses/>.
//
use std::io::{self, Write};

use tokio::{sync::mpsc::Sender, task::JoinHandle};
Expand Down
13 changes: 13 additions & 0 deletions src/controller/midi.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
// Copyright (C) 2024 Michael Wilson <[email protected]>
//
// 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, version 3.
//
// 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 <https://www.gnu.org/licenses/>.
//
use std::{io, sync::Arc};

use midly::live::LiveEvent;
Expand Down
13 changes: 13 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
// Copyright (C) 2024 Michael Wilson <[email protected]>
//
// 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, version 3.
//
// 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 <https://www.gnu.org/licenses/>.
//
mod audio;
mod config;
mod controller;
Expand Down
13 changes: 13 additions & 0 deletions src/midi.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
// Copyright (C) 2024 Michael Wilson <[email protected]>
//
// 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, version 3.
//
// 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 <https://www.gnu.org/licenses/>.
//
use std::{error::Error, fmt, sync::Arc};

use tokio::sync::mpsc::Sender;
Expand Down
13 changes: 13 additions & 0 deletions src/midi/midir.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
// Copyright (C) 2024 Michael Wilson <[email protected]>
//
// 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, version 3.
//
// 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 <https://www.gnu.org/licenses/>.
//
use std::{
collections::HashMap,
error::Error,
Expand Down
13 changes: 13 additions & 0 deletions src/midi/mock.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
// Copyright (C) 2024 Michael Wilson <[email protected]>
//
// 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, version 3.
//
// 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 <https://www.gnu.org/licenses/>.
//
use std::{
error::Error,
fmt,
Expand Down
13 changes: 13 additions & 0 deletions src/player.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
// Copyright (C) 2024 Michael Wilson <[email protected]>
//
// 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, version 3.
//
// 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 <https://www.gnu.org/licenses/>.
//
use std::{
error::Error,
sync::{
Expand Down
13 changes: 13 additions & 0 deletions src/playlist.rs
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
// Copyright (C) 2024 Michael Wilson <[email protected]>
//
// 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, version 3.
//
// 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 <https://www.gnu.org/licenses/>.
//
use tracing::{info, span, Level, Span};

use crate::songs::{Song, Songs};
Expand Down
Loading

0 comments on commit b9bb907

Please sign in to comment.