We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cf66285 commit e5bc3e1Copy full SHA for e5bc3e1
4 files changed
.circleci/config.yml
@@ -1,45 +1,31 @@
1
version: 2.1
2
3
orbs:
4
- codacy: codacy/base@1.0.0
+ codacy: codacy/base@10.0.2
5
6
workflows:
7
version: 2
8
compile_test_deploy:
9
jobs:
10
- codacy/checkout_and_version:
11
write_sbt_version: true
12
- - codacy/sbt:
13
- name: populate_cache
14
- cmd: sbt "set scalafmtUseIvy in ThisBuild := false;update"
15
- persist_to_workspace: true
16
- requires:
17
- - codacy/checkout_and_version
18
19
- name: check_fmt
20
- cmd: sbt "scalafmt::test;test:scalafmt::test;sbt:scalafmt::test"
21
22
- - populate_cache
23
24
- name: compile
25
- cmd: |
26
- sbt +compile
27
- sbt +test:compile
28
29
- - check_fmt
30
+ - codacy/sbt_docker:
31
name: test
32
33
- sbt "coverage;coverageReport;coverageAggregate"
34
- sbt +test
35
-
36
- if [ -z "$CODACY_PROJECT_TOKEN" ]; then
37
- echo "CODACY_PROJECT_TOKEN not found. Skipping send coverage to Codacy."
38
- else
39
- sbt codacyCoverage
40
- fi
+ steps:
+ - run:
+ name: Scalafmt sources
+ command: sbt scalafmtCheckAll
+ name: Scalafmt sbt sources
+ command: sbt scalafmtSbtCheck
+ name: Compile
+ command: sbt +compile
+ name: Test
+ command: sbt +test
41
requires:
42
- - compile
+ - codacy/checkout_and_version
43
- codacy/sbt:
44
name: publish
45
cmd: |
project/plugins.sbt
@@ -1,3 +1 @@
-resolvers += Resolver.jcenterRepo
-addSbtPlugin("com.codacy" % "codacy-sbt-plugin" % "17.1.5")
+addSbtPlugin("com.codacy" % "codacy-sbt-plugin" % "24.0.0")
src/main/scala/com/codacy/plugins/api/languages/Language.scala
@@ -1,7 +1,6 @@
package com.codacy.plugins.api.languages
-sealed abstract class Language(val extensions: Set[String],
- val files: Set[String] = Set.empty[String]) {
+sealed abstract class Language(val extensions: Set[String], val files: Set[String] = Set.empty[String]) {
self: Product =>
val name: String = self.productPrefix
src/main/scala/com/codacy/plugins/api/results/Pattern.scala
@@ -41,13 +41,13 @@ object Pattern {
type Category = Category.Value
object Category extends Enumeration {
val Security, CodeStyle, ErrorProne, Performance, Compatibility, UnusedCode, Complexity, BestPractice,
- Comprehensibility, Duplication, Documentation = Value
+ Comprehensibility, Duplication, Documentation = Value
}
46
47
type Subcategory = Subcategory.Value
48
object Subcategory extends Enumeration {
49
val XSS, InputValidation, FileAccess, HTTP, Cookies, UnexpectedBehaviour, MassAssignment, InsecureStorage,
50
- InsecureModulesLibraries, Visibility, CSRF, Android, MaliciousCode, Cryptography, CommandInjection, FirefoxOS, Auth,
51
- DoS, SQLInjection, Routes, Regex, SSL, Other = Value
+ InsecureModulesLibraries, Visibility, CSRF, Android, MaliciousCode, Cryptography, CommandInjection, FirefoxOS,
+ Auth, DoS, SQLInjection, Routes, Regex, SSL, Other = Value
52
53
0 commit comments