Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kyr/eslint-formatter-gitlab
Variation of `eslint-formatter-junit`, especially for usage in CE Gitlab CI
https://github.com/kyr/eslint-formatter-gitlab
eslint formatter gitlab-ci junit
Last synced: 28 days ago
JSON representation
Variation of `eslint-formatter-junit`, especially for usage in CE Gitlab CI
- Host: GitHub
- URL: https://github.com/kyr/eslint-formatter-gitlab
- Owner: Kyr
- License: bsd-3-clause
- Created: 2019-04-18T10:50:17.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-06-20T11:45:07.000Z (over 4 years ago)
- Last Synced: 2024-09-28T01:21:03.450Z (about 1 month ago)
- Topics: eslint, formatter, gitlab-ci, junit
- Language: JavaScript
- Homepage:
- Size: 54.7 KB
- Stars: 4
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# eslint-formatter-gitlab
Variation for `eslint-formatter-junit`, especially for usage in Gitlab CI## Usage
Install from [npm](https://www.npmjs.com/package/@kfed/eslint-formatter-gitlab), as same as other npm package:
```bash
npm install --save-dev @kfed/eslint-formatter-gitlab
```Add to `.gitlab-ci.yml`
```yml
test:lint:
stage: test
script:
- time npm install --prefer-offline --no-optional --silent
- npm run lint --silent -- --no-color --quiet --format @kfed/gitlab --output-file ./lint.junit.xml
artifacts:
reports:
junit: ./lint.junit.xml
```## Approaches
### Very first
Approach for [1 version](/tags/v1.0.2): minor imrove basic eslint junit reporter
![image](https://user-images.githubusercontent.com/426462/56635505-837db480-666e-11e9-9190-4277288dd638.png)### Second
Approach for [second version](/tags/v2.0.0): show report "per file" insetad "per issue"Short report:
![image](https://user-images.githubusercontent.com/426462/56865302-3e8eb080-69d5-11e9-8465-5f7c51392fa5.png)Expanded report:
![image](https://user-images.githubusercontent.com/426462/56865318-6716aa80-69d5-11e9-8f71-5089941e3d8e.png)