Repository Analysis

flutter/samples

A collection of Flutter examples and demos

2.5 Likely human-written View on GitHub
2.5
Adjusted Score
2.5
Raw Score
100%
Time Factor
2026-05-18
Last Push
19,143
Stars
Dart
Language
113,348
Lines of Code
1354
Files
148
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 6HIGH 9MEDIUM 9LOW 124

Pattern Findings

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

Over-Commented Block119 hits · 119 pts
SeverityFileLineSnippet
LOW…o_app/plugin/flutter_module_using_plugin/lib/main.dart21}
LOW…flutter_module_using_plugin_android_view/lib/main.dart21}
LOW…pp/books/ios_books/IosBooks/IosBooks-Bridging-Header.h1//
LOW…rc/main/java/dev/flutter/example/books/MainActivity.kt121 // into an idiomatic Android activity interface with intent extras as input and
LOW…esizingTests/Pods-ios_content_resizingTests-umbrella.h1#ifdef __OBJC__
LOW…terPluginRegistrant/FlutterPluginRegistrant-umbrella.h1#ifdef __OBJC__
LOW…ontent_resizing-ios_content_resizingUITests-umbrella.h1#ifdef __OBJC__
LOW…_content_resizing/Pods-ios_content_resizing-umbrella.h1#ifdef __OBJC__
LOW…o_app/ios_content_resizing/flutter_module/pubspec.yaml1name: flutter_module
LOW…o_app/ios_content_resizing/flutter_module/pubspec.yaml41 # included with your application, so that you can use the icons in
LOW…o_app/ios_content_resizing/flutter_module/pubspec.yaml61 # example:
LOWbackground_isolate_channels/lib/simple_database.dart1// Copyright 2022 The Flutter team. All rights reserved.
LOWbackground_isolate_channels/lib/simple_database.dart21// isolate and the [_SimpleDatabaseServer] operates on a background isolate.
LOW…nd_routing/linux/flutter/generated_plugin_registrant.h1//
LOWnavigation_and_routing/windows/runner/utils.h1#ifndef RUNNER_UTILS_H_
LOWnavigation_and_routing/windows/runner/win32_window.cpp1#include "win32_window.h"
LOWnavigation_and_routing/windows/runner/resource.h1//{{NO_DEPENDENCIES}}
LOW…_routing/windows/flutter/generated_plugin_registrant.h1//
LOW…sformation/linux/flutter/generated_plugin_registrant.h1//
LOW…sformation/grayscale_transformer/analysis_options.yaml1# This file configures the static analysis results for your project (errors,
LOW…sformation/grayscale_transformer/analysis_options.yaml21
LOWasset_transformation/windows/runner/utils.h1#ifndef RUNNER_UTILS_H_
LOWasset_transformation/windows/runner/win32_window.cpp1#include "win32_window.h"
LOWasset_transformation/windows/runner/resource.h1//{{NO_DEPENDENCIES}}
LOW…ormation/windows/flutter/generated_plugin_registrant.h1//
LOW…ial_3_demo/linux/flutter/generated_plugin_registrant.h1//
LOWmaterial_3_demo/windows/runner/utils.h1#ifndef RUNNER_UTILS_H_
LOWmaterial_3_demo/windows/runner/win32_window.cpp1#include "win32_window.h"
LOWmaterial_3_demo/windows/runner/resource.h1//{{NO_DEPENDENCIES}}
LOW…l_3_demo/windows/flutter/generated_plugin_registrant.h1//
LOWcupertino_gallery/analysis_options.yaml1# This file configures the analyzer, which statically analyzes Dart code to
LOWcupertino_gallery/analysis_options.yaml21 # `// ignore_for_file: name_of_lint` syntax on the line or in the file
LOWcupertino_gallery/test/widget_test.dart1// This is a basic Flutter widget test.
LOW…no_gallery/linux/flutter/generated_plugin_registrant.h1//
LOWcupertino_gallery/windows/runner/utils.h1#ifndef RUNNER_UTILS_H_
LOWcupertino_gallery/windows/runner/win32_window.cpp1#include "win32_window.h"
LOWcupertino_gallery/windows/runner/resource.h1//{{NO_DEPENDENCIES}}
LOW…_gallery/windows/flutter/generated_plugin_registrant.h1//
LOW…ss_app/app/linux/flutter/generated_plugin_registrant.h1//
LOWcompass_app/app/lib/utils/result.dart1// Copyright 2024 The Flutter team. All rights reserved.
LOWcompass_app/app/windows/runner/utils.h1#ifndef RUNNER_UTILS_H_
LOWcompass_app/app/windows/runner/win32_window.cpp1#include "win32_window.h"
LOWcompass_app/app/windows/runner/resource.h1//{{NO_DEPENDENCIES}}
LOW…_app/app/windows/flutter/generated_plugin_registrant.h1//
LOWcompass_app/server/lib/middleware/auth.dart1// Copyright 2024 The Flutter team. All rights reserved.
LOWcompass_app/server/lib/routes/booking.dart1// Copyright 2024 The Flutter team. All rights reserved.
LOWform_app/linux/flutter/generated_plugin_registrant.h1//
LOWform_app/windows/runner/utils.h1#ifndef RUNNER_UTILS_H_
LOWform_app/windows/runner/win32_window.cpp1#include "win32_window.h"
LOWform_app/windows/runner/resource.h1//{{NO_DEPENDENCIES}}
LOWform_app/windows/flutter/generated_plugin_registrant.h1//
LOWplatform_design/lib/main.dart61 // data. Since changing platform re-parents those tabs into different
LOWdate_planner/analysis_options.yaml1# This file configures the analyzer, which statically analyzes Dart code to
LOWdate_planner/analysis_options.yaml21 # `// ignore_for_file: name_of_lint` syntax on the line or in the file
LOWdate_planner/lib/event_symbol.dart1// Copyright 2024 The Flutter Authors. All rights reserved.
LOWdate_planner/lib/event_symbol.dart21 CupertinoIcons.clock_fill,
LOW.prompts/llm.md201## Documentation Standards
LOW.prompts/llm.md241}
LOWpedometer/ffigen.yaml21
LOWpedometer/pubspec.yaml21 jnigen: ^0.14.2
59 more matches not shown…
Hallucination Indicators6 hits · 85 pts
SeverityFileLineSnippet
CRITICAL…r/example/androidfullscreen/ExampleInstrumentedTest.kt30 onView(withId(R.id.launch_button)).perform(androidx.test.espresso.action.ViewActions.click())
CRITICAL…r/example/androidfullscreen/ExampleInstrumentedTest.kt46 androidx.test.espresso.assertion.ViewAssertions.matches(
CRITICAL…r/example/androidfullscreen/ExampleInstrumentedTest.kt52 androidx.test.espresso.matcher.ViewMatchers.withText("Current count: 1")
CRITICAL…r/example/androidfullscreen/ExampleInstrumentedTest.kt57 onView(withId(R.id.launch_button)).perform(androidx.test.espresso.action.ViewActions.click())
CRITICAL…r/example/androidfullscreen/ExampleInstrumentedTest.kt65 androidx.test.espresso.assertion.ViewAssertions.matches(
CRITICAL…r/example/androidfullscreen/ExampleInstrumentedTest.kt67 androidx.test.espresso.matcher.ViewMatchers.withText("Current count: 2")
Cross-File Repetition6 hits · 30 pts
SeverityFileLineSnippet
HIGHdesktop_photo_search/fluent_ui/test/unsplash_test.dart0{ "total": 133, "total_pages": 7, "results": [ { "id": "eolpjytrbsq", "created_at": "2014-11-18t14:35:36-05:00", "width"
HIGHdesktop_photo_search/fluent_ui/test/unsplash_test.dart0{ "total": 133, "total_pages": 7, "results": [ { "id": "eolpjytrbsq", "created_at": "2014-11-18t14:35:36-05:00", "width"
HIGHdesktop_photo_search/fluent_ui/test/widget_test.dart0{ "total": 133, "total_pages": 7, "results": [ { "id": "eolpjytrbsq", "created_at": "2014-11-18t14:35:36-05:00", "width"
HIGHdesktop_photo_search/material/test/unsplash_test.dart0{ "total": 133, "total_pages": 7, "results": [ { "id": "eolpjytrbsq", "created_at": "2014-11-18t14:35:36-05:00", "width"
HIGHdesktop_photo_search/material/test/unsplash_test.dart0{ "total": 133, "total_pages": 7, "results": [ { "id": "eolpjytrbsq", "created_at": "2014-11-18t14:35:36-05:00", "width"
HIGHdesktop_photo_search/material/test/widget_test.dart0{ "total": 133, "total_pages": 7, "results": [ { "id": "eolpjytrbsq", "created_at": "2014-11-18t14:35:36-05:00", "width"
Slop Phrases6 hits · 18 pts
SeverityFileLineSnippet
MEDIUM…o_app/ios_content_resizing/flutter_module/pubspec.yaml41 # included with your application, so that you can use the icons in
MEDIUMbackground_isolate_channels/lib/main.dart67 // just for demonstration purposes.
MEDIUM…sformation/grayscale_transformer/analysis_options.yaml9# If you want a smaller set of lints you can change this to specify
MEDIUMcompass_app/server/lib/routes/login.dart20/// This API only accepts a fixed email and password for demonstration purposes,
MEDIUMcompass_app/server/lib/routes/user.dart14/// This API only returns a hardcoded user for demonstration purposes.
MEDIUMpedometer/example/pubspec.yaml70 # included with your application, so that you can use the icons in
Magic Placeholder Names3 hits · 15 pts
SeverityFileLineSnippet
HIGHgoogle_maps/web/index.html33 <script src="https://maps.googleapis.com/maps/api/js?key=YOUR-API-KEY"></script>
HIGHgoogle_maps/ios/Runner/AppDelegate.swift14 GMSServices.provideAPIKey("YOUR-API-KEY")
HIGHgoogle_maps/android/app/src/main/AndroidManifest.xml10 android:value="YOUR-API-KEY"/>
Self-Referential Comments2 hits · 6 pts
SeverityFileLineSnippet
MEDIUMpedometer/pubspec.yaml29# The following section is specific to Flutter packages.
MEDIUMpedometer/example/pubspec.yaml66# The following section is specific to Flutter packages.
Fake / Example Data4 hits · 4 pts
SeverityFileLineSnippet
LOW.prompts/llm.md255/// final isValid = validateEmail('user@example.com'); // true
LOW.prompts/llm.md338final name = 'John Doe';
LOWanimations/lib/src/basics/custom_tween.dart116porro quisquam est, qui dolorem ipsum, quia dolor sit amet consectetur
LOWanimations/lib/src/basics/custom_tween.dart116porro quisquam est, qui dolorem ipsum, quia dolor sit amet consectetur
Excessive Try-Catch Wrapping1 hit · 2 pts
SeverityFileLineSnippet
MEDIUMtool/ci_script.dart110 print('Error detecting Flutter channel: $e');
Hyper-Verbose Identifiers1 hit · 1 pts
SeverityFileLineSnippet
LOW…dding/element_embedding_demo/web/js/demo-js-interop.js36 function setJsInteropControlsEnabled(enabled) {