Repository Analysis

huginn/huginn

Create agents that monitor and act on your behalf. Your agents are standing by!

2.1 Likely human-written View on GitHub
2.1
Adjusted Score
2.1
Raw Score
100%
Time Factor
2026-05-30
Last Push
49,360
Stars
Ruby
Language
61,568
Lines of Code
530
Files
91
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 2MEDIUM 9LOW 80

Pattern Findings

91 matches across 9 categories. Click a row to expand file-level details.

Over-Commented Block39 hits · 39 pts
SeverityFileLineSnippet
LOWapp/controllers/web_requests_controller.rb1# This controller is designed to allow your Agents to receive cross-site Webhooks (POSTs), or to output data streams.
LOWapp/assets/config/manifest.js1//= link_tree ../images
LOWapp/assets/javascripts/application.js1//= require jquery2
LOWapp/concerns/liquid_interpolatable.rb21 errors.add(:options, "has an error with Liquid templating: #{e.message}")
LOWapp/concerns/liquid_interpolatable.rb41 end
LOWapp/concerns/liquid_interpolatable.rb301 # It can be used as a JSONPath replacement for Agents that only support Liquid:
LOWapp/concerns/liquid_interpolatable.rb361 "t" => "\t",
LOWapp/concerns/liquid_interpolatable.rb441 # variable `match` is set for each iteration, which can be used as
LOWconfig/environments/production.rb41
LOWconfig/environments/production.rb121
LOWconfig/environments/production.rb141 # these configuration options.
LOWconfig/initializers/application_controller_renderer.rb1# Be sure to restart your server when you modify this file.
LOWconfig/initializers/backtrace_silencers.rb1# Be sure to restart your server when you modify this file.
LOWconfig/initializers/mime_types.rb1# Be sure to restart your server when you modify this file.
LOWconfig/initializers/wrap_parameters.rb1# Be sure to restart your server when you modify this file.
LOWconfig/initializers/devise.rb21 # Load and configure the ORM. Supports :active_record (default) and
LOWconfig/initializers/devise.rb41 # config.request_keys = []
LOWconfig/initializers/devise.rb61 # given strategies, for example, `config.http_authenticatable = [:database]` will
LOWconfig/initializers/devise.rb81 # passing skip: :sessions to `devise_for` in your config/routes.rb
LOWconfig/initializers/devise.rb101 # Setup a pepper to generate the encrypted password.
LOWconfig/initializers/devise.rb161 # time the user will be asked for credentials again. Default is 30 minutes.
LOWconfig/initializers/devise.rb181 # is failed attempts.
LOWconfig/initializers/devise.rb201 # Allow you to use another encryption algorithm besides bcrypt (default). You can use
LOWconfig/initializers/devise.rb221 # only the current scope. By default, Devise signs out all scopes.
LOWconfig/initializers/devise.rb301 if defined?(OmniAuth::Strategies::Threads) &&
LOWconfig/initializers/permissions_policy.rb1# Define an application-wide HTTP permissions policy. For further
LOWconfig/initializers/content_security_policy.rb1# Be sure to restart your server when you modify this file.
LOWconfig/initializers/content_security_policy.rb21
LOWconfig/initializers/inflections.rb1# Be sure to restart your server when you modify this file.
LOWspec/spec_helper.rb1# This file was generated by the `rails generate rspec:install` command. Conventionally, all
LOWspec/spec_helper.rb21 # This option will default to `true` in RSpec 4. It makes the `description`
LOWspec/spec_helper.rb41 # have no way to turn it off -- the option exists only for backwards
LOWspec/spec_helper.rb61
LOWspec/spec_helper.rb81
LOWspec/rails_helper.rb41 # instead of true.
LOWspec/support/fake_mqtt_server.rb1#!/usr/bin/env ruby
LOWpublic/robots.txt1# See http://www.robotstxt.org/wc/norobots.html for documentation on how to use the robots.txt file
LOWlib/capistrano/sync.rb1require 'yaml'
LOWdb/migrate/20120728210244_devise_create_users.rb21
Fake / Example Data19 hits · 24 pts
SeverityFileLineSnippet
LOWapp/models/agents/website_agent.rb78 "title": "Lorem ipsum 1",
LOWapp/models/agents/website_agent.rb83 "title": "Lorem ipsum 2",
LOWapp/models/agents/website_agent.rb88 "title": "Lorem ipsum 3",
LOWapp/models/agents/website_agent.rb109 "title": "Lorem ipsum 1",
LOWapp/models/agents/website_agent.rb113 "title": "Lorem ipsum 2",
LOWapp/models/agents/website_agent.rb117 "title": "Lorem ipsum 3",
LOWspec/features/admin_users_spec.rb37 fill_in 'Email', with: 'test@test.com'
LOWspec/features/admin_users_spec.rb43 expect(page).to have_text('test@test.com')
LOWspec/features/admin_users_spec.rb48 fill_in 'Email', with: 'test@test.com'
LOWspec/models/agents/event_formatting_agent_spec.rb39 :text => "Some Lorem Ipsum",
LOWspec/models/agents/event_formatting_agent_spec.rb54 :text => "Some Lorem Ipsum 2",
LOWspec/models/agents/event_formatting_agent_spec.rb85 expect(Event.last.payload[:message]).to eq("Received Some Lorem Ipsum from somevalue .")
LOWspec/models/agents/event_formatting_agent_spec.rb133 :text => "Some Lorem Ipsum",
LOWspec/models/agents/event_formatting_agent_spec.rb143 :text => "Some Lorem Ipsum",
LOWspec/models/agents/rss_agent_spec.rb360 "John Doe"
LOWspec/models/agents/rss_agent_spec.rb425 "authors" => ["Jane Doe"],
LOWspec/models/agents/rss_agent_spec.rb451 "authors" => ["Jane Doe"],
LOWspec/models/agents/rss_agent_spec.rb476 "authors" => ["John Doe"],
LOWdb/seeds/seeder.rb8 user = User.find_or_initialize_by(:email => ENV['SEED_EMAIL'].presence || "admin@example.com")
Self-Referential Comments7 hits · 20 pts
SeverityFileLineSnippet
MEDIUMapp/concerns/liquid_interpolatable.rb32 # # Create a new scope to define variables in:
MEDIUMconfig/initializers/wrap_parameters.rb3# This file contains settings for ActionController::ParamsWrapper which
MEDIUMconfig/initializers/permissions_policy.rb1# Define an application-wide HTTP permissions policy. For further
MEDIUMconfig/initializers/content_security_policy.rb3# Define an application-wide content security policy
MEDIUMspec/support/fake_mqtt_server.rb34 # Create a new fake MQTT server
MEDIUMspec/data_fixtures/jira.json1{"expand":"schema,names","startAt":0,"maxResults":50,"total":50,"issues":[{"expand":"editmeta,renderedFields,transitions
MEDIUMdoc/deployment/backup/example_backup.rb1# This file contains an example template for using the Backup gem for backing up your Huginn installation to S3.
Hyper-Verbose Identifiers16 hits · 18 pts
SeverityFileLineSnippet
LOWapp/importers/scenario_import.rb228 def translate_keep_events_for(old_value)
LOWapp/models/agents/attribute_difference_agent.rb88 def calculate_integer_difference(new_value)
LOWapp/models/agents/attribute_difference_agent.rb94 def calculate_decimal_difference(new_value, dec_pre)
LOWapp/models/agents/attribute_difference_agent.rb100 def calculate_percentage_change(new_value, dec_pre)
LOWapp/controllers/application_controller.rb36 def filtered_agent_return_link(options = {})
LOWapp/controllers/omniauth_callbacks_controller.rb21 def reauthorization_service_for(provider)
LOWapp/controllers/web_requests_controller.rb72 def normalize_redirect_target(target)
LOWapp/helpers/agent_helper.rb56 def agent_dry_run_with_event_mode(agent)
LOWapp/helpers/jobs_helper.rb13 def relative_distance_of_time_in_words(time)
LOWapp/helpers/application_helper.rb125 def user_omniauth_authorize_path(provider)
LOWapp/concerns/json_serialized_field.rb107 def configure_json_serialized_field(field)
LOWapp/concerns/markdown_class_attributes.rb5 def markdown_class_attributes(*attributes)
LOWlib/utils.rb73 def escape_uri_unsafe_characters(string)
LOW…0525150140_migrate_agents_to_service_authentication.rb14 def twitter_oauth_token_secret(agent)
LOW…29000000_retire_coffeescript_from_javascript_agents.rb41 def each_legacy_coffeescript_agent(&)
LOW…29000000_retire_coffeescript_from_javascript_agents.rb54 def credential_referenced_by_code(code)
Magic Placeholder Names2 hits · 12 pts
SeverityFileLineSnippet
HIGHapp/models/agents/aftership_agent.rb25 * `api_key` - YOUR_API_KEY.
HIGHapp/models/agents/aftership_agent.rb90 'api_key' => 'YOUR_API_KEY',
Slop Phrases3 hits · 8 pts
SeverityFileLineSnippet
LOWapp/models/agents/webhook_agent.rb35 * `recaptcha_secret` - Setting this to a reCAPTCHA "secret" key makes your agent verify incoming requests with r
MEDIUMbin/decrypt_backup.rb3# If you're using the backup gem, described on the Huginn wiki and at doc/deployment/backup, then you can use this
MEDIUMspec/spec_helper.rb48# with RSpec, but feel free to customize to your heart's content.
Example Usage Blocks2 hits · 3 pts
SeverityFileLineSnippet
LOWapp/concerns/liquid_interpolatable.rb320 # Example usage:
LOWapp/concerns/liquid_interpolatable.rb458 # Example usage:
AI Slop Vocabulary2 hits · 2 pts
SeverityFileLineSnippet
LOWapp/models/agents/website_agent.rb61 You can also use [XPath functions](https://www.w3.org/TR/xpath/#section-String-Functions) like `normalize-space` t
LOWlib/utils.rb125 # Output JSON that is ready for inclusion into HTML. If you simply use to_json on an object, the
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippet
LOWconfig/environments/production.rb83 # Set this to true and configure the email server for immediate delivery to raise delivery errors.