Skip to content

Commit

Permalink
used name from file path (#473)
Browse files Browse the repository at this point in the history
  • Loading branch information
rishijain authored Oct 18, 2023
1 parent 0b5b217 commit 1623cee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* [BUGFIX] Raise error when the same branches are compared (by [@rishijain][])
* [BUGFIX] Churn score was always 0 when rubycritic was executed from a sub-directory (by [@rishijain][])
* [BUGFIX] Use overview.html as the fallback path when files does not exist during compare option (by [@rishijain][])
* [BUGFIX] Use name from the file path instead of fetching name from the parser (by [@rishijain][])

# v4.8.1 / 2023-05-17 [(commits)](https://github.com/whitesmith/rubycritic/compare/v4.8.0...v4.8.1)

Expand Down
2 changes: 1 addition & 1 deletion lib/rubycritic/analysers/helpers/modules_locator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def initialize(analysed_module)
end

def first_name
names.first
name_from_path.first
end

def names
Expand Down

0 comments on commit 1623cee

Please sign in to comment.