Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
version: 2.1

orbs:
codacy: codacy/base@12.1.3
codacy_plugins_test: codacy/[email protected].6
codacy: codacy/base@12.2.0
codacy_plugins_test: codacy/[email protected].11

workflows:
version: 2
Expand All @@ -28,6 +28,8 @@ workflows:
- codacy_plugins_test/run:
name: plugins_test
run_json_tests: false
run_pattern_tests: false
run_multiple_tests: false
run_duplication_tests: true
requires:
- publish_docker_local
Expand Down
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,16 @@ node_modules
.bsp
.metals

#Ignore vscode AI rules
.github/copilot-instructions.md

.bloop/
.vscode/
project/.bloop/
project/metals.sbt
project/project/
project/.DS_Store
.DS_Store

#Ignore vscode AI rules
.github/instructions/codacy.instructions.md
10 changes: 5 additions & 5 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
ARG alpine_version=3.20
ARG alpine_version=3.22

FROM alpine:$alpine_version as builder
FROM alpine:$alpine_version AS builder

RUN apk add --no-cache npm
COPY package*.json ./
RUN npm install --production

FROM alpine:$alpine_version as base
FROM alpine:$alpine_version AS base

RUN apk add --no-cache nodejs bash
COPY --from=builder /node_modules /node_modules

FROM base as dev
FROM base AS dev

RUN apk add --no-cache openjdk11
RUN apk add --no-cache openjdk17
COPY docs /docs
RUN adduser --uid 2004 --disabled-password --gecos "" docker
COPY target/universal/stage/ /workdir/
Expand Down
4 changes: 2 additions & 2 deletions build.sbt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
scalaVersion := "2.13.11"
scalaVersion := "2.13.16"

name := "codacy-duplication-jscpd"

libraryDependencies ++= Seq(
"com.codacy" %% "codacy-duplication-scala-seed" % "2.1.1",
"com.codacy" %% "codacy-duplication-scala-seed" % "2.1.4",
"org.scalameta" %% "svm-subs" % "20.2.0"
)
enablePlugins(GraalVMNativeImagePlugin)
Expand Down
2 changes: 1 addition & 1 deletion project/build.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
sbt.version = 1.8.3
sbt.version = 1.10.1
2 changes: 1 addition & 1 deletion project/plugins.sbt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
addSbtPlugin("com.codacy" % "codacy-sbt-plugin" % "25.1.1")
addSbtPlugin("com.codacy" % "codacy-sbt-plugin" % "25.2.2")
addSbtPlugin("com.typesafe.sbt" % "sbt-native-packager" % "1.8.1")