@codacy/tools-revive-1 0.4.15 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -22,7 +22,7 @@ Go linter using the [Revive](https://github.com/mgechev/revive) binary. Uses the
22
22
  | Languages | Go |
23
23
  | Binary | `revive` |
24
24
  | File patterns | `**/*.go` |
25
- | Pattern count | 96 |
25
+ | Pattern count | 102 |
26
26
 
27
27
  ## Updating patterns
28
28
 
@@ -54,7 +54,7 @@ pnpm test # Run tests (mocked tests always run; integration tests require re
54
54
  To install revive locally for integration tests:
55
55
 
56
56
  ```bash
57
- go install github.com/mgechev/revive@v1.12.0
57
+ go install github.com/mgechev/revive@v1.15.0
58
58
  ```
59
59
 
60
60
  ## Notes for maintainers
package/dist/index.js CHANGED
@@ -333,6 +333,15 @@ var patterns_default = [
333
333
  languages: ["Go"],
334
334
  parameters: []
335
335
  },
336
+ {
337
+ id: "Revive_epoch-naming",
338
+ category: "CodeStyle",
339
+ severityLevel: "Info",
340
+ title: "Enforce epoch timestamp variable naming",
341
+ enabled: false,
342
+ languages: ["Go"],
343
+ parameters: []
344
+ },
336
345
  {
337
346
  id: "Revive_errorf",
338
347
  category: "BestPractice",
@@ -420,6 +429,15 @@ var patterns_default = [
420
429
  languages: ["Go"],
421
430
  parameters: []
422
431
  },
432
+ {
433
+ id: "Revive_forbidden-call-in-wg-go",
434
+ category: "ErrorProne",
435
+ severityLevel: "High",
436
+ title: "Avoid forbidden calls when using WaitGroup.Go",
437
+ enabled: false,
438
+ languages: ["Go"],
439
+ parameters: []
440
+ },
423
441
  {
424
442
  id: "Revive_function-length",
425
443
  category: "Complexity",
@@ -558,6 +576,15 @@ var patterns_default = [
558
576
  languages: ["Go"],
559
577
  parameters: []
560
578
  },
579
+ {
580
+ id: "Revive_inefficient-map-lookup",
581
+ category: "Performance",
582
+ severityLevel: "Warning",
583
+ title: "Avoid inefficient map lookups (iterative search)",
584
+ enabled: false,
585
+ languages: ["Go"],
586
+ parameters: []
587
+ },
561
588
  {
562
589
  id: "Revive_line-length-limit",
563
590
  category: "CodeStyle",
@@ -657,6 +684,15 @@ var patterns_default = [
657
684
  languages: ["Go"],
658
685
  parameters: []
659
686
  },
687
+ {
688
+ id: "Revive_package-naming",
689
+ category: "CodeStyle",
690
+ severityLevel: "Info",
691
+ title: "Enforce package naming conventions",
692
+ enabled: false,
693
+ languages: ["Go"],
694
+ parameters: []
695
+ },
660
696
  {
661
697
  id: "Revive_range",
662
698
  category: "ErrorProne",
@@ -858,6 +894,15 @@ var patterns_default = [
858
894
  languages: ["Go"],
859
895
  parameters: []
860
896
  },
897
+ {
898
+ id: "Revive_unnecessary-if",
899
+ category: "BestPractice",
900
+ severityLevel: "Warning",
901
+ title: "Avoid unnecessary if for boolean return/assignment",
902
+ enabled: false,
903
+ languages: ["Go"],
904
+ parameters: []
905
+ },
861
906
  {
862
907
  id: "Revive_unnecessary-stmt",
863
908
  category: "CodeStyle",
@@ -948,6 +993,15 @@ var patterns_default = [
948
993
  languages: ["Go"],
949
994
  parameters: []
950
995
  },
996
+ {
997
+ id: "Revive_use-slices-sort",
998
+ category: "BestPractice",
999
+ severityLevel: "Warning",
1000
+ title: "Use slices package sorting helpers",
1001
+ enabled: false,
1002
+ languages: ["Go"],
1003
+ parameters: []
1004
+ },
951
1005
  {
952
1006
  id: "Revive_use-waitgroup-go",
953
1007
  category: "BestPractice",
@@ -990,7 +1044,7 @@ var patterns_default = [
990
1044
  var descriptor = {
991
1045
  id: "Revive",
992
1046
  displayName: "Revive",
993
- preferredVersion: "1.12.0",
1047
+ preferredVersion: "1.15.0",
994
1048
  languages: ["Go"],
995
1049
  filePatterns: ["**/*.go"],
996
1050
  supportedOS: ["linux", "darwin", "win32"],
package/dist/metadata.js CHANGED
@@ -26,7 +26,7 @@ module.exports = __toCommonJS(metadata_exports);
26
26
  var descriptor = {
27
27
  id: "Revive",
28
28
  displayName: "Revive",
29
- preferredVersion: "1.12.0",
29
+ preferredVersion: "1.15.0",
30
30
  languages: ["Go"],
31
31
  filePatterns: ["**/*.go"],
32
32
  supportedOS: ["linux", "darwin", "win32"],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@codacy/tools-revive-1",
3
- "version": "0.4.15",
3
+ "version": "0.6.0",
4
4
  "description": "Revive adapter — CLI-mode Go linter",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -8,7 +8,7 @@
8
8
  "dist"
9
9
  ],
10
10
  "dependencies": {
11
- "@codacy/tooling": "0.20.0"
11
+ "@codacy/tooling": "0.22.0"
12
12
  },
13
13
  "license": "MIT",
14
14
  "author": "Codacy <support@codacy.com> (https://www.codacy.com)",