Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix analysis and code format issues #1148

Merged
merged 13 commits into from
Sep 27, 2022
Merged

Fix analysis and code format issues #1148

merged 13 commits into from
Sep 27, 2022

Conversation

Sub6Resources
Copy link
Owner

@Sub6Resources Sub6Resources commented Sep 26, 2022

Prerequisite: #1147

This pull request seeks to clean up our codebase by adding a CI check for formatting and analysis issues. This will raise a flag so we don't merge unformatted code or code with analysis issues.

After adding the checks, the analyzer brought up 300 suggestions (but only one warning 🎉 ), so this pull request is going to touch a LOT of files. It fixes currently existing analysis and formatting issues.

Most of the changes are trivial (formatting/code style), so I'll list any non-trivial changes here:

  • (2db8818) add rem case for CssBoxWidget in lib/src/css_box_widget.dart
  • (a89773a) change constant names from ALL_UPPERCASE to camelCase. (This affects things like Display.block and ListStyleType.upperAlpha)

@codecov
Copy link

codecov bot commented Sep 26, 2022

Codecov Report

Base: 49.62% // Head: 49.70% // Increases project coverage by +0.07% 🎉

Coverage data is based on head (29899c5) compared to base (18c77db).
Patch coverage: 60.26% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1148      +/-   ##
==========================================
+ Coverage   49.62%   49.70%   +0.07%     
==========================================
  Files          18       18              
  Lines        2702     2682      -20     
==========================================
- Hits         1341     1333       -8     
+ Misses       1361     1349      -12     
Impacted Files Coverage Δ
lib/src/interactable_element.dart 83.33% <ø> (ø)
lib/src/layout_element.dart 36.58% <ø> (+0.11%) ⬆️
...ackages/flutter_html_svg/lib/flutter_html_svg.dart 8.92% <ø> (+0.23%) ⬆️
lib/src/css_parser.dart 13.64% <12.12%> (+0.15%) ⬆️
lib/src/replaced_element.dart 80.55% <50.00%> (-2.78%) ⬇️
lib/src/styled_element.dart 79.14% <50.00%> (-2.68%) ⬇️
lib/custom_render.dart 51.57% <68.18%> (+0.43%) ⬆️
lib/html_parser.dart 73.34% <73.77%> (+0.42%) ⬆️
lib/flutter_html.dart 69.31% <83.33%> (+0.35%) ⬆️
lib/src/css_box_widget.dart 64.46% <92.30%> (-0.39%) ⬇️
... and 6 more

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@Sub6Resources Sub6Resources changed the title WIP: Fix analysis and code format issues Fix analysis and code format issues Sep 26, 2022
Copy link
Collaborator

@erickok erickok left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All good!

@Sub6Resources Sub6Resources merged commit abf5274 into master Sep 27, 2022
@Sub6Resources Sub6Resources deleted the fix/analysis-issues branch September 27, 2022 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants