rubycritic_gitlab_code_quality 0.1.0 → 0.1.1

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f86e0e0e0021871b5d4edfa6f42c2318734f5816953dbddc03fb7f30c7a41363
4
- data.tar.gz: b7d4d3918b31c0f7de271280187d54a350009e3f6eed71d101447bdea4b7479d
3
+ metadata.gz: ff4b523d539221732082eb87fe2fc3f8618064b7efbdd20ee9263785035514cd
4
+ data.tar.gz: e5d9fa0e1107d90fdd6277e208217ae3462be385df39841cda89a0f2a6ee7cb4
5
5
  SHA512:
6
- metadata.gz: 80797587a95b4bb4e54eb027a6b3c63c07db3245caa684c7e883c028430faec8c006a8537b7f574fa47d233f4ceced0cee095b999bd2e6fef52c2e883569956d
7
- data.tar.gz: 3ab009bf63ef7d61e83cb06df9df28a84c2aab9b9c49beec47db65866ccf399c0b6b3c855cc307b6448c060ae86686e98d8bcfbeeed3b703f0e1fbeee147a5d4
6
+ metadata.gz: e94ded1a167f7b0efefb77503c9c8784df5615596fcc33577cdfb82e2168e43b31192ac15bf4dce262db2a1e741b02d4ab0356f946089e071f5078f01077bcc2
7
+ data.tar.gz: 95c1a6503c8ccf088d18b1e36dbf5632d94670075db47983797d451406197ab6514f6ddfb99a8b75871209b7a698624b9c67364fc884cab6d31b99f418d0d6f3
@@ -51,15 +51,17 @@ module RubycriticGitlabCodeQuality::Generator
51
51
  main_location = locations.first
52
52
  {
53
53
  type: 'issue',
54
- description: smell.message,
54
+ description: "#{smell.type}: #{smell.message}",
55
55
  check_name: smell.type,
56
+ context: "Status: #{smell.status}, analyser: #{smell.analyser}, cost: #{smell.cost}",
57
+ remediation_points: smell.score,
56
58
  fingerprint: Utilits.fingerprint(smell, main_location),
57
59
  severity: Utilits.severity(smell),
58
60
  location: {
59
61
  path: Utilits.relative_path(main_location.pathname.to_s),
60
- lines: { begin: main_location.line },
61
- other_locations: Utilits.additional_locations_hash(locations)
62
+ lines: { begin: main_location.line }
62
63
  },
64
+ other_locations: Utilits.additional_locations_hash(locations),
63
65
  categories: [Utilits.category(smell)]
64
66
  }
65
67
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RubycriticGitlabCodeQuality
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubycritic_gitlab_code_quality
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - n.kats
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-05-21 00:00:00.000000000 Z
10
+ date: 2025-05-22 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: rubycritic