Skip to content

Commit 8c5391b

Browse files
committed
reuse
1 parent a6f189b commit 8c5391b

18 files changed

+41
-231
lines changed

REUSE.toml

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ path = [
2222
".pdd",
2323
".texsc",
2424
".xcop",
25+
"bibcop.1",
2526
"DEPENDS.txt",
2627
"Gemfile.lock",
2728
"README.md",

bibcop.pl

+2-21
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,6 @@
11
#!/usr/bin/perl
2-
# (The MIT License)
3-
#
4-
# Copyright (c) 2022-2025 Yegor Bugayenko
5-
#
6-
# Permission is hereby granted, free of charge, to any person obtaining a copy
7-
# of this software and associated documentation files (the 'Software'), to deal
8-
# in the Software without restriction, including without limitation the rights
9-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10-
# copies of the Software, and to permit persons to whom the Software is
11-
# furnished to do so, subject to the following conditions:
12-
#
13-
# The above copyright notice and this permission notice shall be included in all
14-
# copies or substantial portions of the Software.
15-
#
16-
# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22-
# SOFTWARE.
2+
# SPDX-FileCopyrightText: Copyright (c) 2022-2025 Yegor Bugayenko
3+
# SPDX-License-Identifier: MIT
234

245
# 0000/00/00 0.0.0
256
package bibcop;

perl-tests/checking.pl

+2-21
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,6 @@
11
#!/usr/bin/perl
2-
# (The MIT License)
3-
#
4-
# Copyright (c) 2022-2025 Yegor Bugayenko
5-
#
6-
# Permission is hereby granted, free of charge, to any person obtaining a copy
7-
# of this software and associated documentation files (the 'Software'), to deal
8-
# in the Software without restriction, including without limitation the rights
9-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10-
# copies of the Software, and to permit persons to whom the Software is
11-
# furnished to do so, subject to the following conditions:
12-
#
13-
# The above copyright notice and this permission notice shall be included in all
14-
# copies or substantial portions of the Software.
15-
#
16-
# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22-
# SOFTWARE.
2+
# SPDX-FileCopyrightText: Copyright (c) 2022-2025 Yegor Bugayenko
3+
# SPDX-License-Identifier: MIT
234

245
package bibcop;
256

perl-tests/checks.pl

+2-21
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,6 @@
11
#!/usr/bin/perl
2-
# (The MIT License)
3-
#
4-
# Copyright (c) 2022-2025 Yegor Bugayenko
5-
#
6-
# Permission is hereby granted, free of charge, to any person obtaining a copy
7-
# of this software and associated documentation files (the 'Software'), to deal
8-
# in the Software without restriction, including without limitation the rights
9-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10-
# copies of the Software, and to permit persons to whom the Software is
11-
# furnished to do so, subject to the following conditions:
12-
#
13-
# The above copyright notice and this permission notice shall be included in all
14-
# copies or substantial portions of the Software.
15-
#
16-
# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22-
# SOFTWARE.
2+
# SPDX-FileCopyrightText: Copyright (c) 2022-2025 Yegor Bugayenko
3+
# SPDX-License-Identifier: MIT
234

245
package bibcop;
256

perl-tests/cli.pl

+2-21
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,6 @@
11
#!/usr/bin/perl
2-
# (The MIT License)
3-
#
4-
# Copyright (c) 2022-2025 Yegor Bugayenko
5-
#
6-
# Permission is hereby granted, free of charge, to any person obtaining a copy
7-
# of this software and associated documentation files (the 'Software'), to deal
8-
# in the Software without restriction, including without limitation the rights
9-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10-
# copies of the Software, and to permit persons to whom the Software is
11-
# furnished to do so, subject to the following conditions:
12-
#
13-
# The above copyright notice and this permission notice shall be included in all
14-
# copies or substantial portions of the Software.
15-
#
16-
# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22-
# SOFTWARE.
2+
# SPDX-FileCopyrightText: Copyright (c) 2022-2025 Yegor Bugayenko
3+
# SPDX-License-Identifier: MIT
234

245
package bibcop;
256

perl-tests/cli_fixing.pl

+2-21
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,6 @@
11
#!/usr/bin/perl
2-
# (The MIT License)
3-
#
4-
# Copyright (c) 2022-2025 Yegor Bugayenko
5-
#
6-
# Permission is hereby granted, free of charge, to any person obtaining a copy
7-
# of this software and associated documentation files (the 'Software'), to deal
8-
# in the Software without restriction, including without limitation the rights
9-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10-
# copies of the Software, and to permit persons to whom the Software is
11-
# furnished to do so, subject to the following conditions:
12-
#
13-
# The above copyright notice and this permission notice shall be included in all
14-
# copies or substantial portions of the Software.
15-
#
16-
# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22-
# SOFTWARE.
2+
# SPDX-FileCopyrightText: Copyright (c) 2022-2025 Yegor Bugayenko
3+
# SPDX-License-Identifier: MIT
234

245
package bibcop;
256

perl-tests/entry_fixing.pl

+2-21
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,6 @@
11
#!/usr/bin/perl
2-
# (The MIT License)
3-
#
4-
# Copyright (c) 2022-2025 Yegor Bugayenko
5-
#
6-
# Permission is hereby granted, free of charge, to any person obtaining a copy
7-
# of this software and associated documentation files (the 'Software'), to deal
8-
# in the Software without restriction, including without limitation the rights
9-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10-
# copies of the Software, and to permit persons to whom the Software is
11-
# furnished to do so, subject to the following conditions:
12-
#
13-
# The above copyright notice and this permission notice shall be included in all
14-
# copies or substantial portions of the Software.
15-
#
16-
# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22-
# SOFTWARE.
2+
# SPDX-FileCopyrightText: Copyright (c) 2022-2025 Yegor Bugayenko
3+
# SPDX-License-Identifier: MIT
234

245
package bibcop;
256

perl-tests/fixing-in-place.pl

+2-21
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,6 @@
11
#!/usr/bin/perl
2-
# (The MIT License)
3-
#
4-
# Copyright (c) 2022-2025 Yegor Bugayenko
5-
#
6-
# Permission is hereby granted, free of charge, to any person obtaining a copy
7-
# of this software and associated documentation files (the 'Software'), to deal
8-
# in the Software without restriction, including without limitation the rights
9-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10-
# copies of the Software, and to permit persons to whom the Software is
11-
# furnished to do so, subject to the following conditions:
12-
#
13-
# The above copyright notice and this permission notice shall be included in all
14-
# copies or substantial portions of the Software.
15-
#
16-
# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22-
# SOFTWARE.
2+
# SPDX-FileCopyrightText: Copyright (c) 2022-2025 Yegor Bugayenko
3+
# SPDX-License-Identifier: MIT
234

245
package bibcop;
256

perl-tests/fixing.pl

+2-21
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,6 @@
11
#!/usr/bin/perl
2-
# (The MIT License)
3-
#
4-
# Copyright (c) 2022-2025 Yegor Bugayenko
5-
#
6-
# Permission is hereby granted, free of charge, to any person obtaining a copy
7-
# of this software and associated documentation files (the 'Software'), to deal
8-
# in the Software without restriction, including without limitation the rights
9-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10-
# copies of the Software, and to permit persons to whom the Software is
11-
# furnished to do so, subject to the following conditions:
12-
#
13-
# The above copyright notice and this permission notice shall be included in all
14-
# copies or substantial portions of the Software.
15-
#
16-
# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22-
# SOFTWARE.
2+
# SPDX-FileCopyrightText: Copyright (c) 2022-2025 Yegor Bugayenko
3+
# SPDX-License-Identifier: MIT
234

245
package bibcop;
256

perl-tests/functions.pl

+2-21
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,6 @@
11
#!/usr/bin/perl
2-
# (The MIT License)
3-
#
4-
# Copyright (c) 2022-2025 Yegor Bugayenko
5-
#
6-
# Permission is hereby granted, free of charge, to any person obtaining a copy
7-
# of this software and associated documentation files (the 'Software'), to deal
8-
# in the Software without restriction, including without limitation the rights
9-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10-
# copies of the Software, and to permit persons to whom the Software is
11-
# furnished to do so, subject to the following conditions:
12-
#
13-
# The above copyright notice and this permission notice shall be included in all
14-
# copies or substantial portions of the Software.
15-
#
16-
# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22-
# SOFTWARE.
2+
# SPDX-FileCopyrightText: Copyright (c) 2022-2025 Yegor Bugayenko
3+
# SPDX-License-Identifier: MIT
234

245
package bibcop;
256

perl-tests/parsing.pl

+2-21
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,6 @@
11
#!/usr/bin/perl
2-
# (The MIT License)
3-
#
4-
# Copyright (c) 2022-2025 Yegor Bugayenko
5-
#
6-
# Permission is hereby granted, free of charge, to any person obtaining a copy
7-
# of this software and associated documentation files (the 'Software'), to deal
8-
# in the Software without restriction, including without limitation the rights
9-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10-
# copies of the Software, and to permit persons to whom the Software is
11-
# furnished to do so, subject to the following conditions:
12-
#
13-
# The above copyright notice and this permission notice shall be included in all
14-
# copies or substantial portions of the Software.
15-
#
16-
# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22-
# SOFTWARE.
2+
# SPDX-FileCopyrightText: Copyright (c) 2022-2025 Yegor Bugayenko
3+
# SPDX-License-Identifier: MIT
234

245
package bibcop;
256

test-files/fixes/duplicates/before.bib

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
% SPDX-FileCopyrightText: Copyright (c) 2022-2025 Yegor Bugayenko
2+
% SPDX-License-Identifier: MIT
3+
14
@book{knuth1974,
25
author = {Donald E. Knuth and Duane, Bibby},
36
doi = {10.5555/1102013},

test-files/fixes/duplicates/expected.bib

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
% SPDX-FileCopyrightText: Copyright (c) 2022-2025 Yegor Bugayenko
2+
% SPDX-License-Identifier: MIT
3+
14
@book{knuth1974,
25
author = {Knuth, Donald E. and Duane, Bibby},
36
doi = {10.5555/1102013},

test-files/fixes/no-fixes/before.bib

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
% SPDX-FileCopyrightText: Copyright (c) 2022-2025 Yegor Bugayenko
2+
% SPDX-License-Identifier: MIT
3+
14
@book{knuth1974,
25
author = {Knuth, Donald E. and Duane, Bibby},
36
doi = {10.5555/1102013},

test-files/fixes/no-fixes/expected.bib

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
% SPDX-FileCopyrightText: Copyright (c) 2022-2025 Yegor Bugayenko
2+
% SPDX-License-Identifier: MIT
3+
14
@book{knuth1974,
25
author = {Knuth, Donald E. and Duane, Bibby},
36
doi = {10.5555/1102013},

test-files/test.bib

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
% SPDX-FileCopyrightText: Copyright (c) 2022-2025 Yegor Bugayenko
2+
% SPDX-License-Identifier: MIT
3+
14
% This is a test file, which is NOT perfectly formatted.
25
% Bibcop must complain about certain parts of it (see perl-tests/cli.pl).
36

testfiles/support/main.bib

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
% SPDX-FileCopyrightText: Copyright (c) 2022-2025 Yegor Bugayenko
2+
% SPDX-License-Identifier: MIT
3+
14
@article{dijkstra1968letters,
25
title={Letters to the Editor: {Go To} Statement Considered Harmful},
36
author={Dijkstra, Edsger W.},

tests.pl

+2-21
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,6 @@
11
#!/usr/bin/perl
2-
# (The MIT License)
3-
#
4-
# Copyright (c) 2022-2025 Yegor Bugayenko
5-
#
6-
# Permission is hereby granted, free of charge, to any person obtaining a copy
7-
# of this software and associated documentation files (the 'Software'), to deal
8-
# in the Software without restriction, including without limitation the rights
9-
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10-
# copies of the Software, and to permit persons to whom the Software is
11-
# furnished to do so, subject to the following conditions:
12-
#
13-
# The above copyright notice and this permission notice shall be included in all
14-
# copies or substantial portions of the Software.
15-
#
16-
# THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17-
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18-
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19-
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20-
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21-
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
22-
# SOFTWARE.
2+
# SPDX-FileCopyrightText: Copyright (c) 2022-2025 Yegor Bugayenko
3+
# SPDX-License-Identifier: MIT
234

245
package bibcop;
256

0 commit comments

Comments
 (0)