Skip to content

Commit

Permalink
Merge pull request #944 from codacy/feature/refactor-to-eslint8_TS-602
Browse files Browse the repository at this point in the history
Feature/Refactor to ESLint8 TS-602
  • Loading branch information
codacy-vrhpires authored Jan 5, 2024
2 parents daf7a77 + bfeebcd commit bbe705e
Showing 15 changed files with 3,338 additions and 2,147 deletions.
5 changes: 2 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
version: 2.1

orbs:
codacy: codacy/base@10.8.0
codacy_plugins_test: codacy/plugins-test@1.1.1
codacy: codacy/base@10.11.1
codacy_plugins_test: codacy/plugins-test@2.0.6

workflows:
version: 2
compile_test_deploy:
jobs:
- codacy/checkout_and_version
25 changes: 11 additions & 14 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,25 +1,22 @@
ARG NODE_IMAGE_VERSION=16-alpine3.18
FROM node:lts-alpine3.19 as builder

FROM node:$NODE_IMAGE_VERSION as builder
COPY . ./

COPY package*.json ./
RUN npm install
RUN npm install &&\
npm cache clean --force &&\
npm run compile &&\
npm test

COPY . .

RUN npm run compile
RUN npm test

FROM node:$NODE_IMAGE_VERSION
FROM node:lts-alpine3.19

COPY --from=builder dist dist
COPY --from=builder package.json ./
COPY --from=builder package-lock.json ./
COPY --from=builder docs docs

RUN npm install --production

RUN adduser -u 2004 -D docker
RUN chown -R docker:docker /docs
RUN npm install --omit=dev &&\
npm cache clean --force &&\
adduser -u 2004 -D docker &&\
chown -R docker:docker /docs

CMD ["node", "dist/src/index.js"]
22 changes: 11 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/e09ea1ceddb5453abb709b0e147779f1)](https://www.codacy.com/gh/codacy/codacy-metrics-eslint?utm_source=github.com&utm_medium=referral&utm_content=codacy/codacy-metrics-eslint&utm_campaign=Badge_Grade)
[![Codacy Badge](https://api.codacy.com/project/badge/Coverage/e09ea1ceddb5453abb709b0e147779f1)](https://www.codacy.com/gh/codacy/codacy-metrics-eslint?utm_source=github.com&utm_medium=referral&utm_content=codacy/codacy-metrics-eslint&utm_campaign=Badge_Coverage)
# Codacy Metrics ESLint

# Codacy Metrics Eslint
[![Codacy Badge](https://app.codacy.com/project/badge/Grade/e09ea1ceddb5453abb709b0e147779f1)](https://app.codacy.com/gh/codacy/codacy-metrics-eslint/dashboard?utm_source=gh&utm_medium=referral&utm_content=&utm_campaign=Badge_grade)
[![CircleCI](https://circleci.com/gh/codacy/codacy-metrics-eslint.svg?style=svg)](https://circleci.com/gh/codacy/codacy-metrics-eslint)

## Usage

You can create the docker by doing:

```bash
npm run dockerBuild
npm run build:docker
```

The docker is ran with the following command:
@@ -47,15 +47,15 @@ codacy-plugins-test metrics codacy-metrics-eslint

### Among Codacy’s features

- Identify new Static Analysis issues
- Commit and Pull Request Analysis with GitHub, BitBucket/Stash, GitLab (and also direct git repositories)
- Auto-comments on Commits and Pull Requests
- Integrations with Slack, HipChat, Jira, YouTrack
- Track issues in Code Style, Security, Error Proneness, Performance, Unused Code and other categories
- Identify new Static Analysis issues
- Commit and Pull Request Analysis with GitHub, BitBucket/Stash, GitLab (and also direct git repositories)
- Auto-comments on Commits and Pull Requests
- Integrations with Slack, HipChat, Jira, YouTrack
- Track issues in Code Style, Security, Error Proneness, Performance, Unused Code and other categories

Codacy also helps keep track of Code Coverage, Code Duplication, and Code Complexity.
Codacy also helps keep track of Code Coverage, Code Duplication and Code Complexity.

Codacy supports PHP, Python, Ruby, Java, JavaScript, and Scala, among others.
Codacy supports PHP, Python, Ruby, Java, JavaScript and Scala, among others.

### Free for Open Source

Loading
Oops, something went wrong.

0 comments on commit bbe705e

Please sign in to comment.