Repository navigation
chore: replace DCM with the bitwild_analysis presets - #142
Open
leoafarias wants to merge 3 commits into
Open
leoafarias wants to merge 3 commits into
leoafarias wants to merge 3 commits into
Conversation
Move the shared options to a root analysis_options.yaml that includes the bitwild_analysis v0.3.0 presets and the bitwild_lints analyzer plugin from btwld/lints. Remove the DCM config, melos scripts and dependencies, and run the plugin in CI through melos run analyze. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QEFHxKAKfcCJWc6pQDZL25
Apply dart fix for the new rules, import defining files instead of the barrel, wrap fire-and-forget futures in unawaited and sort pubspecs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QEFHxKAKfcCJWc6pQDZL25
Collaborator
Author
|
CI fails before analysis or tests start. The local checks in the PR description ran on a copy of the workspace without playground. Generated by Claude Code |
Parallel dart analyze runs build the bitwild_lints plugin snapshot in the shared ~/.dartServer cache at the same time, and one of them can load a half-written snapshot. Run the packages in sequence. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01QEFHxKAKfcCJWc6pQDZL25
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Leo · project thread
Intent
Use the shared lint presets from btwld/lints and remove DCM.
Changes
shared_analysis_options.yamlbecomes the rootanalysis_options.yaml. It includesbitwild_analysisv0.3.0dart.yaml+plugin.yaml. Each member includes the root file, and Flutter members also includeflutter.yaml.dart_code_metricsanddcmconfig blocksanalyze:dcm*,analyze:allandfix:dcmmelos scriptsdart_code_metrics_presetsdependencymelos run analyzeis nowdart analyze --fatal-infoswith the plugin. CI runs it, so the plugin rules are checked on every PR. (Before, CI ran only the Dart half.)lints/flutter_lints. Updates AGENTS.md and.claude/settings.json.avoid_dynamic_callsis off. It reports 65 calls, mostly on decoded JSON and YAML.no_adjacent_strings_in_listis off. It conflicts withunnecessary_parenthesis.**/vendor/**is excluded, so vendored code keeps its upstream style.plugin_all.yamlis not used. It would addsort_class_membersand the formatting rules, which report about 1,700 issues. The member order from AGENTS.md is in the config, sosort_class_memberscan be turned on later.dart fixwith explicit--codevalues only. No reformatting, because main is not fully format-clean.lib/srcnow imports the defining files.unawaitedfor two fire-and-forget futures.ignorecomments on the publicAsyncThumbnail.loadpositional bool and on a private value class.slide_template_test.dartkeeps non-const constructors, because its tests compare distinct instances.Packages
All of them: core, builder, cli, superdeck, plugins/pdf, playground and demo.
Commands run (Flutter 3.47.5)
I could not resolve the full workspace here, because
leoafarias/hero_uiis private. So I ran the checks on a copy withoutpackages/playground:dart analyze --fatal-infos .: no issues-x ci-excludedwas used.Please watch CI for playground. I could not analyze it here. I added the
bitwild_analysisentry topubspec.lockby hand.🤖 Generated with Claude Code
https://claude.ai/code/session_01QEFHxKAKfcCJWc6pQDZL25