Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Creating an action #1

Open
wants to merge 17 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
code_quality_score (0.1.7)
code_quality_score (0.1.8)
flay (>= 2.13.0)
flog (>= 4.6.5)
reek (>= 6.1.1)
Expand Down
2 changes: 1 addition & 1 deletion lib/code_quality_score/lib.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ def structural_similarity_score_per_file(solution)

def abc_method_average_score(solution)
score_line = `flog #{solution[:relative_path]}#{folder(solution)}/* | head -n 2 | tail -1`
Float(score_line.split(":").first)
Float(score_line.split(":").first).round(2)
end

def code_smells_per_file(solution)
Expand Down
2 changes: 1 addition & 1 deletion lib/code_quality_score/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module CodeQualityScore
VERSION = "0.1.7"
VERSION = "0.1.8"
end