Your self-hosted, globally interconnected microblogging community
This report summarizes scanner evidence for mastodon/mastodon, a Ruby project with 50,464 GitHub stars. SynthScan examined 664,161 lines of code across 5180 source files, recording 555 pattern matches distributed across 10 syntactic categories. The legacy adjusted pattern signal is 1.0 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 453 finding(s).
Are imports declared and package/API names verified? 102 finding(s).
Are wrappers, guards, and repeated structures necessary? 209 finding(s).
Which changes need focused human review? 555 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 555 distinct pattern matches across 10 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | app/mailers/user_mailer.rb | 21 | def confirmation_instructions(user, token, *, **) | CODE |
| LOW | app/mailers/user_mailer.rb | 34 | def reset_password_instructions(user, token, *, **) | CODE |
| LOW | app/mailers/user_mailer.rb | 85 | def two_factor_recovery_codes_changed(user, *, **) | CODE |
| LOW | app/mailers/user_mailer.rb | 115 | def webauthn_credential_added(user, webauthn_credential) | CODE |
| LOW | app/mailers/user_mailer.rb | 126 | def webauthn_credential_deleted(user, webauthn_credential) | CODE |
| LOW | app/models/announcement.rb | 114 | def value_for_reaction_me_column(account) | CODE |
| LOW | app/models/account_statuses_cleanup_policy.rb | 101 | def invalidate_last_inspected(status, action) | CODE |
| LOW | app/models/account_statuses_cleanup_policy.rb | 186 | def self_status_reference_exists(model) | CODE |
| LOW | app/models/notification.rb | 193 | def preload_cache_collection_target_statuses(notifications, &_block) | CODE |
| LOW | app/models/user.rb | 447 | def render_and_send_devise_message(notification, *, **) | CODE |
| LOW | app/models/admin/account_action.rb | 30 | def disabled_types_for_account(account) | CODE |
| LOW | app/models/account_suggestions/fasp_source.rb | 14 | def fasp_follow_recommendations_for(account) | CODE |
| LOW | app/models/concerns/cacheable.rb | 17 | def preload_cacheable_associations(records) | CODE |
| LOW⚡ | app/models/concerns/notification/groups.rb | 102 | def paginate_groups_by_max_id(limit, max_id: nil, since_id: nil, grouped_types: nil) | CODE |
| LOW⚡ | app/models/concerns/notification/groups.rb | 112 | def paginate_groups_by_min_id(limit, max_id: nil, min_id: nil, grouped_types: nil) | CODE |
| LOW⚡ | app/models/concerns/notification/groups.rb | 119 | def to_a_grouped_paginated_by_id(limit, options = {}) | CODE |
| LOW | app/models/concerns/status/threading_concern.rb | 7 | def permitted_statuses_from_ids(ids, account, stable: false) | CODE |
| LOW | app/models/concerns/status/threading_concern.rb | 96 | def find_statuses_from_tree_path(ids, account, promote: false) | CODE |
| LOW | app/models/concerns/account/mappings.rb | 79 | def domain_blocking_map_by_domain(target_domains, account_id) | CODE |
| LOW | app/models/concerns/account/search.rb | 143 | def generate_query_for_search(unsanitized_terms) | CODE |
| LOW | …/models/concerns/account/interaction_policy_concern.rb | 19 | def feature_policy_for_account(other_account) | CODE |
| LOW | app/lib/link_details_extractor.rb | 99 | def text_or_language_tagged_string(obj) | CODE |
| LOW | app/lib/delivery_failure_tracker.rb | 91 | def exhausted_deliveries_key_by(host) | CODE |
| LOW | app/lib/hashtag_normalizer.rb | 10 | def remove_invalid_characters(str) | CODE |
| LOW | app/lib/request.rb | 212 | def normalize_preserving_url_encodings(url, preserved_chars = SAFE_PRESERVED_CHARS, *flags) | CODE |
| LOW | app/lib/status_reach_finder.rb | 114 | def inboxes_without_suspended_for(scope) | CODE |
| LOW | app/lib/content_security_policy.rb | 96 | def uri_from_configuration_and_string(host_string) | CODE |
| LOW⚡ | app/lib/extractor.rb | 33 | def extract_urls_with_indices(text, options = {}) | CODE |
| LOW⚡ | app/lib/extractor.rb | 42 | def remove_overlapping_entities(entities) | CODE |
| LOW⚡ | app/lib/extractor.rb | 52 | def extract_entities_with_indices(text, options = {}, &block) | CODE |
| LOW | app/lib/extractor.rb | 71 | def extract_mentions_or_lists_with_indices(text) | CODE |
| LOW | app/lib/extractor.rb | 104 | def extract_hashtags_with_indices(text, _options = {}) | CODE |
| LOW | app/lib/extractor.rb | 142 | def extract_xmpp_uris_with_indices(text) | CODE |
| LOW | app/lib/extractor.rb | 157 | def extract_magnet_uris_with_indices(text) | CODE |
| LOW | app/lib/feed_manager.rb | 709 | def crutches_exclusive_list_users(recipient_id, statuses) | CODE |
| LOW | app/lib/status_cache_hydrator.rb | 29 | def hydrate_non_reblog_payload(empty_payload, account, nested: false) | CODE |
| LOW | app/lib/status_cache_hydrator.rb | 147 | def mapped_applied_custom_filter(account, status) | CODE |
| LOW | app/lib/connection_pool/shared_timed_stack.rb | 82 | def fetch_preferred_connection(preferred_tag) | CODE |
| LOW | app/lib/admin/metrics/measure/base_measure.rb | 60 | def read_attribute_for_serialization(key) | CODE |
| LOW | app/lib/admin/metrics/dimension/base_dimension.rb | 45 | def read_attribute_for_serialization(key) | CODE |
| LOW | app/lib/activitypub/tag_manager.rb | 273 | def uri_to_local_conversation(uri) | CODE |
| LOW | app/lib/activitypub/tag_manager.rb | 306 | def uri_to_local_account_params(uri) | CODE |
| LOW | app/lib/activitypub/activity/feature_request.rb | 51 | def collection_item_attributes(state = :accepted) | CODE |
| LOW | app/lib/activitypub/activity/create.rb | 288 | def process_tagged_collection(tag) | CODE |
| LOW | app/lib/activitypub/activity/create.rb | 388 | def resolve_unresolved_mentions(status) | CODE |
| LOW | app/lib/activitypub/activity/create.rb | 394 | def resolve_unresolved_collections(status) | CODE |
| LOW | app/validators/vote_validator.rb | 50 | def account_votes_on_same_poll(vote) | CODE |
| LOW | app/javascript/mastodon/features/ui/util/focusUtils.ts | 32 | export function focusFirstVisibleItemInColumn(columnIndex: number) { | CODE |
| LOW | app/javascript/mastodon/features/compose/trigger.tsx | 176 | function useHasMobileFloatingActionButton({ isMobile }: { isMobile: boolean }) { | CODE |
| LOW | …javascript/mastodon/features/compose/util/url_regex.js | 32 | export function extractMentionsWithIndices(text) { | CODE |
| LOW | app/javascript/mastodon/features/emoji/locale.ts | 15 | export function toSupportedLocaleOrCustom(locale: string): LocaleOrCustom { | CODE |
| LOW | app/javascript/mastodon/features/emoji/database.ts | 164 | export async function loadCustomEmojiByShortcode(shortcode: string) { | CODE |
| LOW | app/javascript/mastodon/features/emoji/database.ts | 169 | export async function searchCustomEmojisByShortcodes(shortcodes: string[]) { | CODE |
| LOW | app/javascript/mastodon/features/emoji/database.ts | 200 | export async function loadLegacyShortcodesByShortcode(shortcode: string) { | CODE |
| LOW | app/javascript/mastodon/features/emoji/normalize.ts | 176 | export function emojiToInversionClassName(emoji: string): string | null { | CODE |
| LOW | …ascript/mastodon/features/collections/detail/index.tsx | 251 | function useRevealSensitiveContent({ | CODE |
| LOW | app/javascript/mastodon/models/account.ts | 132 | export function createAccountFromServerJSON(serverJSON: ApiAccountJSON) { | CODE |
| LOW | app/javascript/mastodon/models/poll.ts | 19 | export function createPollOptionTranslationFromServerJSON(translation: { | CODE |
| LOW | app/javascript/mastodon/models/notification_request.ts | 11 | export function createNotificationRequestFromJSON( | CODE |
| LOW⚡ | app/javascript/mastodon/models/notification_group.ts | 128 | function createAccountWarningFromJSON( | CODE |
| 149 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docker-compose.yml | 21 | networks: | COMMENT |
| LOW | docker-compose.yml | 41 | # - "discovery.type=single-node" | COMMENT |
| LOW | docker-compose.yml | 121 | ## http_hidden_proxy=http://privoxy:8118 | COMMENT |
| LOW | app/models/announcement.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/preview_card_trend.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/conversation_mute.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/report.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/generated_annual_report.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/identity.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/moderation_subscription.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/account_conversation.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/account_alias.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/instance_moderation_note.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/account.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/account.rb | 21 | # domain :string | COMMENT |
| LOW | app/models/account.rb | 41 | # note :text default(""), not null | COMMENT |
| LOW | app/models/tag.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/preview_card_provider.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/relationship_severance_event.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/status.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/status.rb | 21 | # url :string | COMMENT |
| LOW | app/models/account_migration.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/block.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/moderation_suggestion.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/poll.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/announcement_mute.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/custom_emoji_category.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/severed_relationship.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/featured_tag.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/rule_translation.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/moderation_subscription_advisory.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/ip_block.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/software_deprecation.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/mention.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/list_account.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/account_warning_preset.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/status_pin.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/bulk_import.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/account_statuses_cleanup_policy.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/appeal.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/tag_feed.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/software_update.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/status_stat.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/collection.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/follow_recommendation_mute.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/bookmark.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/custom_emoji.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/account_domain_block.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/marker.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/email_subscription.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/preview_cards_status.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/rule.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/relay.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/media_attachment.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/media_attachment.rb | 21 | # thumbnail_file_size :integer | COMMENT |
| LOW | app/models/keypair.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/favourite.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/email_domain_block.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/tag_trend.rb | 1 | # frozen_string_literal: true | COMMENT |
| LOW | app/models/public_feed.rb | 1 | # frozen_string_literal: true | COMMENT |
| 144 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | …ript/mastodon/features/compose/components/textarea.tsx | 60 | | 'placeholder' | CODE |
| LOW | app/javascript/mastodon/utils/__tests__/html-test.ts | 17 | const input = '<p>lorem ipsum</p>'; | CODE |
| LOW⚡ | app/javascript/mastodon/utils/__tests__/html-test.ts | 48 | const input = '<p>lorem ipsum</p>'; | CODE |
| LOW⚡ | app/javascript/mastodon/utils/__tests__/html-test.ts | 51 | expect(onText).toHaveBeenCalledExactlyOnceWith('lorem ipsum', {}); | CODE |
| LOW⚡ | app/javascript/mastodon/utils/__tests__/html-test.ts | 55 | const input = '<p>lorem ipsum</p>'; | CODE |
| LOW⚡ | app/javascript/mastodon/utils/__tests__/html-test.ts | 69 | expect.arrayContaining(['lorem ipsum']), | CODE |
| LOW⚡ | app/javascript/mastodon/utils/__tests__/html-test.ts | 75 | const input = '<p>lorem ipsum</p>'; | CODE |
| LOW⚡ | app/javascript/mastodon/utils/__tests__/html-test.ts | 82 | expect.arrayContaining(['lorem ipsum']), | CODE |
| LOW | …ascript/mastodon/components/status/content.stories.tsx | 86 | 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', | CODE |
| LOW | …ascript/mastodon/components/status/content.stories.tsx | 86 | 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', | CODE |
| LOW | …vascript/mastodon/components/status/status.stories.tsx | 407 | 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', | CODE |
| LOW | …vascript/mastodon/components/status/status.stories.tsx | 407 | 'Lorem ipsum dolor sit amet, consectetur adipiscing elit.', | CODE |
| LOW | …pt/mastodon/components/mini_card/mini_card.stories.tsx | 46 | 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore | CODE |
| LOW | …pt/mastodon/components/mini_card/mini_card.stories.tsx | 46 | 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore | CODE |
| LOW | config/environments/test.rb | 80 | # Enable fake_data for PAM | COMMENT |
| LOW | config/environments/test.rb | 82 | Rpam2.fake_data = | CODE |
| LOW | spec/mailers/previews/user_mailer_preview.rb | 14 | user.unconfirmed_email = 'foo@bar.com' | CODE |
| LOW | spec/mailers/previews/user_mailer_preview.rb | 63 | user.unconfirmed_email = 'foo@bar.com' | CODE |
| LOW | spec/config/initializers/rack/attack_spec.rb | 80 | let(:email) { 'foo@bar.com' } | CODE |
| LOW | spec/models/canonical_email_block_spec.rb | 69 | before { Fabricate(:canonical_email_block, email: 'foo@bar.com') } | CODE |
| LOW | spec/models/canonical_email_block_spec.rb | 72 | expect(described_class.block?('foo@bar.com')).to be true | CODE |
| LOW | spec/models/form/import_spec.rb | 344 | { 'acct' => 'user@example.com', 'show_reblogs' => true, 'notify' => false, 'languages' => nil }, | CODE |
| LOW | spec/models/form/import_spec.rb | 349 | { 'acct' => 'user@example.com', 'hide_notifications' => true }, | CODE |
| LOW | spec/presenters/instance_presenter_spec.rb | 24 | Setting.site_contact_email = 'admin@example.com' | CODE |
| LOW | spec/presenters/instance_presenter_spec.rb | 25 | expect(instance_presenter.contact.email).to eq 'admin@example.com' | CODE |
| LOW | spec/requests/admin/warning_presets_spec.rb | 20 | post admin_warning_presets_path(account_warning_preset: { title: 'test title', text: 'lorem ipsum toot', action_ | CODE |
| LOW | spec/requests/admin/warning_presets_spec.rb | 28 | post admin_warning_presets_path(account_warning_preset: { title: 'test title', text: 'lorem ipsum toot' }) | CODE |
| LOW | spec/requests/api/v1/media_spec.rb | 161 | let(:params) { { description: 'Lorem ipsum!!!' } } | CODE |
| LOW | spec/requests/api/v1/media_spec.rb | 174 | let(:params) { { description: 'Lorem ipsum!!!' } } | CODE |
| LOW | spec/requests/api/v1/media_spec.rb | 177 | expect { subject }.to change { media.reload.description }.from('old').to('Lorem ipsum!!!') | CODE |
| LOW | spec/requests/api/v1/emails/confirmations_spec.rb | 52 | user.update(email: 'foo@bar.com') | CODE |
| LOW | spec/requests/api/v1/emails/confirmations_spec.rb | 76 | let(:params) { { email: 'foo@bar.com' } } | CODE |
| LOW | spec/requests/api/v1/emails/confirmations_spec.rb | 84 | expect(user.reload.unconfirmed_email).to eq('foo@bar.com') | CODE |
| LOW | spec/system/report_interface_spec.rb | 8 | let(:email) { 'admin@example.com' } | CODE |
| LOW | spec/system/admin/terms_of_service/generates_spec.rb | 25 | fill_in 'terms_of_service_generator_arbitration_address', with: '123 Main Street' | CODE |
| LOW | spec/fabricators/status_fabricator.rb | 5 | text 'Lorem ipsum dolor sit amet' | CODE |
| LOW | spec/fabricators/status_fabricator.rb | 5 | text 'Lorem ipsum dolor sit amet' | CODE |
| LOW | spec/lib/plain_text_formatter_spec.rb | 24 | expect(subject).to eq 'Lorem ipsum' | CODE |
| LOW | spec/lib/plain_text_formatter_spec.rb | 64 | expect(subject).to eq 'Lorem ipsum' | CODE |
| LOW | spec/lib/plain_text_formatter_spec.rb | 72 | expect(subject).to eq 'Lorem ipsum' | CODE |
| LOW | spec/lib/request_spec.rb | 61 | before { stub_request(:get, 'http://example.com').to_return(body: 'lorem ipsum') } | CODE |
| LOW | spec/lib/request_spec.rb | 95 | expect(response.body_with_limit).to eq 'lorem ipsum' | CODE |
| LOW | spec/lib/request_spec.rb | 133 | stub_request(:get, 'http://redirected.example.com/foo').to_return(body: 'lorem ipsum') | CODE |
| LOW | spec/lib/mastodon/cli/canonical_email_blocks_spec.rb | 17 | let(:arguments) { ['user@example.com'] } | CODE |
| LOW | spec/lib/mastodon/cli/canonical_email_blocks_spec.rb | 20 | before { Fabricate(:canonical_email_block, email: 'user@example.com') } | CODE |
| LOW⚡ | spec/lib/mastodon/cli/canonical_email_blocks_spec.rb | 38 | let(:arguments) { ['user@example.com'] } | CODE |
| LOW⚡ | spec/lib/mastodon/cli/canonical_email_blocks_spec.rb | 41 | before { Fabricate(:canonical_email_block, email: 'user@example.com') } | CODE |
| LOW⚡ | spec/lib/mastodon/cli/canonical_email_blocks_spec.rb | 47 | expect(CanonicalEmailBlock.matching_email('user@example.com')).to be_empty | CODE |
| LOW | spec/lib/activitypub/activity/announce_spec.rb | 68 | content: 'Lorem ipsum', | CODE |
| LOW | spec/lib/activitypub/activity/announce_spec.rb | 84 | content: 'Lorem ipsum', | CODE |
| LOW | spec/lib/activitypub/activity/announce_spec.rb | 163 | content: 'Lorem ipsum', | CODE |
| LOW | spec/lib/activitypub/activity/create_spec.rb | 45 | content: '@bob lorem ipsum', | CODE |
| LOW | spec/lib/activitypub/activity/create_spec.rb | 70 | content: '@bob lorem ipsum', | CODE |
| LOW | spec/lib/activitypub/activity/create_spec.rb | 88 | content: '@bob lorem ipsum', | CODE |
| LOW | spec/lib/activitypub/activity/create_spec.rb | 201 | expect(status.text).to eq 'Lorem ipsum' | CODE |
| LOW | spec/lib/activitypub/activity/create_spec.rb | 220 | expect(status.text).to eq 'Lorem ipsum' | CODE |
| LOW | spec/lib/activitypub/activity/create_spec.rb | 240 | expect(status.text).to eq 'Lorem ipsum' | CODE |
| LOW | spec/lib/activitypub/activity/create_spec.rb | 263 | expect(status.text).to eq 'Lorem ipsum' | CODE |
| LOW | spec/lib/activitypub/activity/create_spec.rb | 289 | expect(status.text).to eq 'Lorem ipsum' | CODE |
| LOW | spec/lib/activitypub/activity/create_spec.rb | 882 | content: 'Lorem ipsum :tinking:', | CODE |
| 40 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | docker-compose.yml | 1 | # This file is designed for production server deployment, not local development work | COMMENT |
| MEDIUM | app/models/setting.rb | 14 | # This file is derived from a fork of the `rails-settings-cached` gem available at | COMMENT |
| MEDIUM | app/models/concerns/user/omniauthable.rb | 67 | # Create a user for the given auth params. If no email was provided, | COMMENT |
| MEDIUM | …/services/activitypub/process_status_update_service.rb | 334 | # This method is only concerned with approval and skips other meaningful changes, | COMMENT |
| MEDIUM | config/settings.yml | 1 | # This file contains default values, and does not need to be edited. All | COMMENT |
| MEDIUM | config/initializers/wrap_parameters.rb | 5 | # This file contains settings for ActionController::ParamsWrapper which | COMMENT |
| MEDIUM | config/initializers/permissions_policy.rb | 5 | # Define an application-wide HTTP permissions policy. For further | COMMENT |
| MEDIUM | config/initializers/content_security_policy.rb | 5 | # Define an application-wide content security policy. | COMMENT |
| MEDIUM | config/initializers/simple_form.rb | 124 | # Define the way to render check boxes / radio buttons with labels. | COMMENT |
| MEDIUM | config/initializers/simple_form.rb | 223 | # Define the default class of the input wrapper of the boolean input. | COMMENT |
| MEDIUM | spec/requests/api/v1/annual_reports_spec.rb | 110 | # Define the ID manually as it is otherwise handled by the database, which is not affected by `travel_to` | COMMENT |
| MEDIUM | spec/requests/api/v1/annual_reports_spec.rb | 133 | # Define the ID manually as it is otherwise handled by the database, which is not affected by `travel_to` | COMMENT |
| MEDIUM | spec/system/admin/email_subscriptions_spec.rb | 12 | Fabricate.create :email_subscription # Create a sub show that purge is shown | CODE |
| MEDIUM | spec/support/streaming_client.rb | 79 | # Create a synthetic close event: | COMMENT |
| MEDIUM | spec/lib/vite/manifest_spec.rb | 102 | # This file is present in the manifest but not referenced by any entrypoint | COMMENT |
| MEDIUM | spec/lib/vite/manifest_spec.rb | 133 | # Create an empty file | COMMENT |
| MEDIUM | …/scheduler/accounts_statuses_cleanup_scheduler_spec.rb | 91 | # Create a bunch of old statuses | COMMENT |
| MEDIUM | …/scheduler/accounts_statuses_cleanup_scheduler_spec.rb | 101 | # Create a bunch of newer statuses | COMMENT |
| MEDIUM | lib/mastodon/migration_helpers.rb | 3 | # This file is copied almost entirely from GitLab, which has done a large | COMMENT |
| MEDIUM | lib/mastodon/database.rb | 3 | # This file is entirely lifted from GitLab. | COMMENT |
| MEDIUM | db/schema.rb | 1 | # This file is auto-generated from the current state of the database. Instead | COMMENT |
| MEDIUM | db/schema.rb | 5 | # This file is the source Rails uses to define your schema when running `bin/rails | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | spec/requests/api/v2/media_spec.rb | 15 | expect(File.exist?(user.account.media_attachments.first.file.path(:small))) | CODE |
| CRITICAL | spec/requests/api/v2/media_spec.rb | 51 | expect(File.exist?(user.account.media_attachments.first.file.path(:small))) | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | app/models/admin/server_check/media_privacy_runner.rb | 20 | # Check if we can list the uploaded file. If true, that's an error | COMMENT |
| LOW | app/lib/feed_manager.rb | 60 | # Check if the status should not be added to a feed | COMMENT |
| LOW⚡ | app/lib/feed_manager.rb | 481 | # Check if there is a streaming API client connected | COMMENT |
| LOW⚡ | app/lib/feed_manager.rb | 489 | # Check if the account is blocking or muting any of the given accounts | COMMENT |
| LOW⚡ | app/lib/feed_manager.rb | 498 | # Check if status should not be added to the home feed | COMMENT |
| LOW | app/lib/feed_manager.rb | 536 | # Check if status should not be added to the mentions feed | COMMENT |
| LOW | app/lib/feed_manager.rb | 553 | # Check if status should not be added to the list feed | COMMENT |
| LOW | app/lib/feed_manager.rb | 569 | # Check if a status should not be added to the home feed when it comes | COMMENT |
| LOW | app/lib/admin/system_check/media_privacy_check.rb | 32 | # Check if we can list the uploaded file. If true, that's an error | COMMENT |
| LOW | app/services/software_update_check_service.rb | 50 | # Check if any of the notices is new, and issue notifications | COMMENT |
| LOW | spec/rails_helper.rb | 68 | # Set type to `cli` for all CLI specs | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | app/lib/feed_manager.rb | 608 | # can just add it to the feed (and note that we're reblogging it). | COMMENT |
| MEDIUM | app/lib/activitypub/object_integrity_proof.rb | 54 | # Step 4.2. from the aforementioned algorithm, it's useful when vocabulary necessary to the cryptosuite had to be | COMMENT |
| MEDIUM | spec/system/auth/passwords_spec.rb | 15 | allow(Devise).to receive(:pam_authentication).and_return(false) # Avoid the "seamless external" path | CODE |
| LOW | db/migrate/20170920032311_fix_reblogs_in_feeds.rb | 77 | # just use the data in Redis to reverse this transition. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | config/initializers/simple_form.rb | 61 | # extensions by default, you can change `b.optional` to `b.use`. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | app/javascript/mastodon/components/hotkeys/index.tsx | 301 | * ### How to use | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | app/services/resolve_account_service.rb | 46 | # we already checked, we need to check if we've already got | COMMENT |