Skip to content

Commit cf83cc3

Browse files
authored
Check for documentation coverage in GitHub Actions (#35)
* Add missing docs * Add `yard` as development dependency
1 parent e3c901c commit cf83cc3

File tree

6 files changed

+12
-0
lines changed

6 files changed

+12
-0
lines changed

.github/workflows/ruby.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,5 @@ jobs:
2525
markdownlint *.md
2626
- name: Check source files using `rubocop`
2727
run: rubocop
28+
- name: Check that code 100% documented
29+
run: yardoc . | grep -q '100.00% documented'

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
* Add `rubocop` check to GitHub Actions
1212
* Add `rubocop-rake` support
1313
* Add `markdownlint` checks in GitHub Actions
14+
* Add missing documentation
15+
* Check for documentation coverage in GitHub Actions
16+
* Add `yard` as development dependency
1417

1518
### Fixes
1619

Gemfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,5 @@ end
1515

1616
group :development do
1717
gem 'overcommit', require: false
18+
gem 'yard', require: false
1819
end
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# frozen_string_literal: true
22

33
module OnlyofficeBugzillaHelper
4+
# [String] name of gem
45
NAME = 'onlyoffice_bugzilla_helper'
56
end

lib/onlyoffice_bugzilla_helper/update_bug.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@
33
module OnlyofficeBugzillaHelper
44
# Method to updating bug data
55
module UpdateBug
6+
# Update bug info
7+
# @param bug_id [Integer] id of bug
8+
# @param params [Hash] params to update
9+
# @return [Net::HTTPResponse] result of update
610
def update_bug(bug_id, params = {})
711
req = Net::HTTP::Put.new(bug_url(bug_id))
812
req.body = params.to_json
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# frozen_string_literal: true
22

33
module OnlyofficeBugzillaHelper
4+
# [String] version of Gem
45
VERSION = '0.3.2'
56
end

0 commit comments

Comments
 (0)