Skip to content

Commit

Permalink
Separate the require_relatives from the requires.
Browse files Browse the repository at this point in the history
  • Loading branch information
postmodern committed Aug 11, 2024
1 parent e27d7b1 commit 618ed34
Show file tree
Hide file tree
Showing 18 changed files with 20 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/ronin/recon/builtin/api/crt_sh.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
#

require_relative '../../worker'
require 'ronin/support/text/patterns/network'

require 'ronin/support/text/patterns/network'
require 'async/http/internet/instance'
require 'set'

Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/recon/builtin/dns/suffix_enum.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@
#

require_relative '../../dns_worker'
require 'ronin/support/network/public_suffix'

require 'ronin/support/network/public_suffix'
require 'async/queue'

module Ronin
Expand Down
1 change: 1 addition & 0 deletions lib/ronin/recon/builtin/net/ip_range_enum.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#

require_relative '../../worker'

require 'ronin/support/network/ip_range'

module Ronin
Expand Down
1 change: 1 addition & 0 deletions lib/ronin/recon/builtin/web/email_addresses.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

require_relative '../../web_worker'
require_relative 'spider'

require 'ronin/support/text/patterns'

module Ronin
Expand Down
3 changes: 2 additions & 1 deletion lib/ronin/recon/cli.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@
# along with ronin-recon. If not, see <https://www.gnu.org/licenses/>.
#

require_relative 'version'
require 'ronin/core/cli/help/banner'

require 'command_kit/commands'
require 'command_kit/commands/auto_load'
require 'command_kit/options/version'

require_relative 'version'

module Ronin
module Recon
#
Expand Down
1 change: 1 addition & 0 deletions lib/ronin/recon/cli/commands/completion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#

require_relative '../../root'

require 'ronin/core/cli/completion_command'

module Ronin
Expand Down
1 change: 1 addition & 0 deletions lib/ronin/recon/cli/commands/worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

require_relative '../worker_command'
require_relative '../printing'

require 'ronin/core/cli/printing/metadata'
require 'ronin/core/cli/printing/params'

Expand Down
1 change: 1 addition & 0 deletions lib/ronin/recon/cli/printing.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#

require_relative '../values'

require 'ronin/core/cli/logging'

module Ronin
Expand Down
3 changes: 2 additions & 1 deletion lib/ronin/recon/output_formats.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,14 @@
# along with ronin-recon. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/core/output_formats'
require_relative 'output_formats/dir'
require_relative 'output_formats/dot'
require_relative 'output_formats/svg'
require_relative 'output_formats/png'
require_relative 'output_formats/pdf'

require 'ronin/core/output_formats'

module Ronin
module Recon
#
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/recon/output_formats/dir.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,9 @@
# along with ronin-recon. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/core/output_formats/output_dir'
require_relative '../values'

require 'ronin/core/output_formats/output_dir'
require 'set'

module Ronin
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/recon/output_formats/dot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
# along with ronin-recon. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/core/output_formats/output_file'
require_relative 'graph_format'
require_relative '../values/domain'
require_relative '../values/mailserver'
Expand All @@ -33,6 +32,7 @@
require_relative '../values/website'
require_relative '../values/wildcard'

require 'ronin/core/output_formats/output_file'
require 'set'

module Ronin
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/recon/output_formats/graphviz_format.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
# along with ronin-recon. If not, see <https://www.gnu.org/licenses/>.
#

require 'ronin/core/output_formats/output_file'
require_relative 'graph_format'
require_relative 'dot'

require 'ronin/core/output_formats/output_file'
require 'tempfile'

module Ronin
Expand Down
1 change: 1 addition & 0 deletions lib/ronin/recon/values/cert.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
#

require_relative '../value'

require 'ronin/support/crypto'

module Ronin
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/recon/worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@

require_relative 'registry'
require_relative 'values'

require 'ronin/core/metadata/id'
require 'ronin/core/metadata/authors'
require 'ronin/core/metadata/summary'
require 'ronin/core/metadata/description'
require 'ronin/core/metadata/references'
require 'ronin/core/params/mixin'

require 'async'

module Ronin
Expand Down
2 changes: 1 addition & 1 deletion lib/ronin/recon/worker_pool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
require_relative 'message/job_completed'
require_relative 'message/job_failed'
require_relative 'message/shutdown'
require 'ronin/core/params/mixin'

require 'ronin/core/params/mixin'
require 'async/queue'

module Ronin
Expand Down
1 change: 1 addition & 0 deletions spec/cli/commands/completion_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require 'spec_helper'
require 'ronin/recon/cli/commands/completion'

require_relative 'man_page_example'

describe Ronin::Recon::CLI::Commands::Completion do
Expand Down
1 change: 1 addition & 0 deletions spec/cli/commands/irb_spec.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
require 'spec_helper'
require 'ronin/recon/cli/commands/irb'

require_relative 'man_page_example'

describe Ronin::Recon::CLI::Commands::Irb do
Expand Down
1 change: 1 addition & 0 deletions spec/cli/commands/run_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require 'spec_helper'
require 'ronin/recon/cli/commands/run'
require 'ronin/recon/importer'

require_relative 'man_page_example'

describe Ronin::Recon::CLI::Commands::Run do
Expand Down

0 comments on commit 618ed34

Please sign in to comment.