pronto-golang 0.0.12 → 0.0.13

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: aef845e2e4afb8599a35044ce4a59a07443dc4d405128dc33c093ee084932a0e
4
- data.tar.gz: c2a3e0095846f6fb6b6c76710e98df3397deed37ada5c674935eeac7d262b54c
3
+ metadata.gz: 0542e6e9b70b08409a682de22445a2a8a279b2352fed6e69bc461e3ee785aba4
4
+ data.tar.gz: bdb4f8fe3d184772a0e037f1636fa3a6487f2565f8a09fbf7d55f97c62e872ca
5
5
  SHA512:
6
- metadata.gz: 9aa29a44ed4283fe5f1a59a85a7112dcfb116cbba9f9a7924e1fa3a8ebabad988fa723cc3042b1ea9ec39bdca642727e1419fe050b1b147c33cae0bced346fc2
7
- data.tar.gz: 04caac74a80c234131b862b78dbc0678deefa765a2816aafc4fb57bcbd063487a88a34265d774c1c5d8d8b9d08ee7feee00f6bb747082c2bbadaaa85bd66b252
6
+ metadata.gz: ab3887662aa406ea3ef6a1b3a2498fa1683cd5f72ed4599e1ae9aeb28e8c694a4c7ae3cc8e1b5a81d0f4ce146d9402f80a218e12b4b81c9f052f81b56a9904d2
7
+ data.tar.gz: 45c1b18511917b2fb85039b8d75770541f17cc65d38172e6f7cda5ef98b7004cfe9e05e61f855b94b98ae03079d72cda6b2688bfb4f613b5fd59f078add1b266
data/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License
2
2
 
3
- Copyright (c) 2018 Cash Payment Solutions GmbH
3
+ Copyright (c) 2023 viafintech GmbH
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # Pronto runner for Golang
2
2
 
3
- [![Build Status](https://travis-ci.org/Barzahlen/pronto-golang.svg?branch=master)](https://travis-ci.org/Barzahlen/pronto-golang) [![RubyDoc](https://img.shields.io/badge/ruby-doc-green.svg)](http://rubydoc.info/github/Barzahlen/pronto-golang)
3
+ ![Build Status](https://github.com/viafintech/pronto-golang/actions/workflows/test.yml/badge.svg) [![RubyDoc](https://img.shields.io/badge/ruby-doc-green.svg)](http://rubydoc.info/github/Barzahlen/pronto-golang)
4
4
 
5
5
  Pronto runner for [Golang](https://golang.org) tools
6
6
 
@@ -9,10 +9,10 @@ Pronto runner for [Golang](https://golang.org) tools
9
9
  | Tool | Install |
10
10
  |----------|----------|
11
11
  | go vet | - |
12
- | golint | go get -u golang.org/x/lint/golint |
13
- | gosec | See [Install instructions](https://github.com/securego/gosec#install) |
14
- | staticcheck | go get -u honnef.co/go/tools/cmd/staticcheck |
15
- | golangci-lint | go get -u github.com/golangci/golangci-lint/cmd/golangci-lint |
12
+ | golint | go install golang.org/x/lint/golint@latest |
13
+ | gosec | go install github.com/securego/gosec/v2/cmd/gosec@v2.14.0 |
14
+ | staticcheck | go install honnef.co/go/tools/cmd/staticcheck@latest |
15
+ | golangci-lint | See [Install instructions](https://golangci-lint.run/usage/install/) |
16
16
 
17
17
  ## Configuring tools
18
18
 
@@ -5,6 +5,13 @@ require_relative '../errors'
5
5
  module Pronto
6
6
  module GolangTools
7
7
  class Gosec < Base
8
+
9
+ # Accepts lines of the following format:
10
+ # [path_to_file:<line_number>] -
11
+ GOSEC_LINE_PATTERN = Regexp.new('^\[(\S+):(\d+)\] - (.+)')
12
+
13
+ ANSI_COLOR_CODING_PATTERN = Regexp.new('\e\[\d+(;\d+)?m')
14
+
8
15
  def self.base_command
9
16
  'gosec'
10
17
  end
@@ -14,9 +21,9 @@ module Pronto
14
21
  end
15
22
 
16
23
  def parse_line(line)
17
- # Accepts lines of the following format:
18
- # [path_to_file:<line_number>] -
19
- if line !~ /^\[(\S+):(\d+)\] - (.+)/
24
+ line = line.gsub(ANSI_COLOR_CODING_PATTERN, '')
25
+
26
+ if !GOSEC_LINE_PATTERN.match(line)
20
27
  raise ::Pronto::GolangSupport::UnprocessableLine.new(line)
21
28
  end
22
29
 
@@ -1,5 +1,5 @@
1
1
  module Pronto
2
2
  module GolangVersion
3
- VERSION = '0.0.12'.freeze
3
+ VERSION = '0.0.13'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pronto-golang
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tobias Schoknecht
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-16 00:00:00.000000000 Z
11
+ date: 2023-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pronto
@@ -36,30 +36,30 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '12.0'
39
+ version: '13.0'
40
40
  type: :development
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '12.0'
46
+ version: '13.0'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rspec
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '3.8'
53
+ version: '3.12'
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '3.8'
61
- description:
62
- email: tobias.schoknecht@barzahlen.de
60
+ version: '3.12'
61
+ description:
62
+ email: tobias.schoknecht@viafintech.com
63
63
  executables: []
64
64
  extensions: []
65
65
  extra_rdoc_files:
@@ -79,11 +79,11 @@ files:
79
79
  - lib/pronto/golang/tools/govet.rb
80
80
  - lib/pronto/golang/tools/staticcheck.rb
81
81
  - lib/pronto/golang/version.rb
82
- homepage: https://github.com/Barzahlen/pronto-golang
82
+ homepage: https://github.com/viafintech/pronto-golang
83
83
  licenses:
84
84
  - MIT
85
85
  metadata: {}
86
- post_install_message:
86
+ post_install_message:
87
87
  rdoc_options: []
88
88
  require_paths:
89
89
  - lib
@@ -98,8 +98,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  - !ruby/object:Gem::Version
99
99
  version: '0'
100
100
  requirements: []
101
- rubygems_version: 3.0.3
102
- signing_key:
101
+ rubygems_version: 3.1.6
102
+ signing_key:
103
103
  specification_version: 4
104
104
  summary: Pronto runner for golang tools
105
105
  test_files: []