Skip to content

Commit

Permalink
Fixed Rubocop and excluded iml file in git
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhamo1107 committed Aug 16, 2024
1 parent 4b16092 commit 9d66f66
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 9 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@

# rspec failure tracking
.rspec_status
*.iml
9 changes: 4 additions & 5 deletions lib/un_used_methods/analyzer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@

# This class analyzes code to find unused methods within specific directories
# such as models, controllers, and helpers.
#
# It performs the following tasks:
# - Searches for method definitions in the specified directories.
# - Checks if these methods are used elsewhere in the codebase.
# - Reports methods that are not used.

module UnUsedMethods
# It performs the following tasks:
# - Searches for method definitions in the specified directories.
# - Checks if these methods are used elsewhere in the codebase.
# - Reports methods that are not used.
class Analyzer
def analyze
un_used_methods = find_un_used_methods
Expand Down
7 changes: 3 additions & 4 deletions lib/un_used_methods/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@

# The CLI class provides the command-line interface for the UnUsedMethods gem.

# This class is responsible for handling command-line arguments and executing
# the appropriate tasks. It uses the Thor gem to define commands and options
# that users can run from the command line.

require "thor"

module UnUsedMethods
# This class is responsible for handling command-line arguments and executing
# the appropriate tasks. It uses the Thor gem to define commands and options
# that users can run from the command line.
class CLI < Thor
desc "find_unused", "Find unused methods in models, controllers and helpers"
def find_unused
Expand Down

0 comments on commit 9d66f66

Please sign in to comment.