Installations
npm install @studiometa/prettier-formatter-gitlab
Developer Guide
Typescript
No
Module System
ESM
Node Version
20.18.1
NPM Version
10.8.2
Score
60.9
Supply Chain
79.2
Quality
87.1
Maintenance
100
Vulnerability
98.9
License
Releases
Contributors
Languages
JavaScript (100%)
Developer
studiometa
Download Statistics
Total Downloads
96,889
Last Day
26
Last Week
776
Last Month
5,846
Last Year
44,394
GitHub Statistics
3 Stars
125 Commits
2 Forks
7 Watching
6 Branches
2 Contributors
Package Meta Information
Latest Version
2.1.0
Package Id
@studiometa/prettier-formatter-gitlab@2.1.0
Unpacked Size
16.46 kB
Size
5.53 kB
File Count
11
NPM Version
10.8.2
Node Version
20.18.1
Publised On
12 Dec 2024
Total Downloads
Cumulative downloads
Total Downloads
96,889
Last day
-89.8%
26
Compared to previous day
Last week
-44.9%
776
Compared to previous week
Last month
-11.8%
5,846
Compared to previous month
Last year
42.3%
44,394
Compared to previous year
Daily Downloads
Weekly Downloads
Monthly Downloads
Yearly Downloads
Dependencies
4
Peer Dependencies
1
@studiometa/prettier-formatter-gitlab
Send Prettier errors to Gitlab's Code Quality reports.
Installation
Install the package with NPM:
1npm install -D @studiometa/prettier-formatter-gitlab
Usage
Prettier does not have an option for custom reporter, this package will run a prettier CLI command for you and parse its result to generate the Code Quality report.
1prettier-formatter-gitlab 'prettier -l src/'
The report file path will be read from the PRETTIER_CODE_QUALITY_REPORT
environment variable or from the .gitlab-ci.yml
configuration file when using the code quality report artifacts:
1# .gitlab-ci.yml 2prettier: 3 image: node:20 4 script: 5 - npm ci 6 - npx prettier-formatter-gitlab 'prettier -l src/' 7 artifacts: 8 reports: 9 codequality: gl-codequality.json
Notes
This project is heavily inspired and borrows some function to the eslint-formatter-gitlab
package.
No vulnerabilities found.
Reason
30 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
- Info: project has a license file: LICENSE:0
- Info: FSF or OSI recognized license: MIT License: LICENSE:0
Reason
2 existing vulnerabilities detected
Details
- Warn: Project is vulnerable to: GHSA-67hx-6x53-jw92
- Warn: Project is vulnerable to: GHSA-mwcw-c2x4-8c55
Reason
Found 0/13 approved changesets -- score normalized to 0
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/studiometa/prettier-formatter-gitlab/npm-publish.yml/develop?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/studiometa/prettier-formatter-gitlab/npm-publish.yml/develop?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/studiometa/prettier-formatter-gitlab/npm-publish.yml/develop?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/npm-publish.yml:41: update your workflow using https://app.stepsecurity.io/secureworkflow/studiometa/prettier-formatter-gitlab/npm-publish.yml/develop?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:14: update your workflow using https://app.stepsecurity.io/secureworkflow/studiometa/prettier-formatter-gitlab/tests.yml/develop?enable=pin
- Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/tests.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/studiometa/prettier-formatter-gitlab/tests.yml/develop?enable=pin
- Warn: third-party GitHubAction not pinned by hash: .github/workflows/tests.yml:24: update your workflow using https://app.stepsecurity.io/secureworkflow/studiometa/prettier-formatter-gitlab/tests.yml/develop?enable=pin
- Warn: npmCommand not pinned by hash: .github/workflows/tests.yml:21
- Info: 0 out of 4 GitHub-owned GitHubAction dependencies pinned
- Info: 0 out of 3 third-party GitHubAction dependencies pinned
- Info: 0 out of 1 npmCommand dependencies pinned
Reason
detected GitHub workflow tokens with excessive permissions
Details
- Warn: jobLevel 'contents' permission set to 'write': .github/workflows/npm-publish.yml:12
- Warn: no topLevel permission defined: .github/workflows/npm-publish.yml:1
- Warn: no topLevel permission defined: .github/workflows/tests.yml:1
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
- Warn: no security policy file detected
- Warn: no security file to analyze
- Warn: no security file to analyze
- Warn: no security file to analyze
Reason
project is not fuzzed
Details
- Warn: no fuzzer integrations found
Reason
branch protection not enabled on development/release branches
Details
- Warn: branch protection not enabled for branch 'develop'
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
- Warn: 0 commits out of 29 are checked with a SAST tool
Score
4.2
/10
Last Scanned on 2024-12-16
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More