Skip to content

Commit

Permalink
Merge pull request #4 from nextcloud-libraries/chore/noid/reuseToml
Browse files Browse the repository at this point in the history
Migrate REUSE to TOML format
  • Loading branch information
AndyScherzinger authored Jul 17, 2024
2 parents d80aa74 + 03153e5 commit 061c593
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 11 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/reuse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,14 @@

name: REUSE Compliance Check

on: pull_request
on: [pull_request]

jobs:
reuse-compliance-check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
- name: Checkout
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: REUSE Compliance Check
uses: fsfe/reuse-action@a46482ca367aef4454a87620aa37c2be4b2f8106 # v3.0.0
uses: fsfe/reuse-action@3ae3c6bdf1257ab19397fab11fd3312144692083 # v4.0.0
8 changes: 0 additions & 8 deletions .reuse/dep5

This file was deleted.

2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Nextcloud Prettier configuration

[![REUSE status](https://api.reuse.software/badge/github.com/nextcloud-libraries/nextcloud-prettier-config)](https://api.reuse.software/info/github.com/nextcloud-libraries/nextcloud-prettier-config)

This provides a shared configuration for Nextcloud apps and libraries to have consistent stylistic rules.
Using stylistic rules in linters is not recommended as linters are for finding bugs while prettier is for code style.
Moreover ESLint and StyleLint both deprecate and remove stylistic rules, as a replacement using Prettier is recommended.
Expand Down
12 changes: 12 additions & 0 deletions REUSE.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# SPDX-FileCopyrightText: 2024 Nextcloud contributors
# SPDX-License-Identifier: MIT
version = 1
SPDX-PackageName = "nextcloud-prettier-config"
SPDX-PackageSupplier = "Ferdinand Thiessen <opensource@fthiessen.de>"
SPDX-PackageDownloadLocation = "https://github.com/nextcloud-libraries/nextcloud-prettier-config"

[[annotations]]
path = ["package-lock.json", "package.json"]
precedence = "aggregate"
SPDX-FileCopyrightText = "Nextcloud contributors"
SPDX-License-Identifier = "MIT"

0 comments on commit 061c593

Please sign in to comment.