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

refactor: Enable DCM linting #2667

Merged
merged 20 commits into from Aug 24, 2023
Merged

refactor: Enable DCM linting #2667

merged 20 commits into from Aug 24, 2023

Conversation

luanpotter
Copy link
Member

@luanpotter luanpotter commented Aug 20, 2023

This is a first step towards enabling DCM for Flame. Though I have tested with all rules, and am working on selecting, assessing, and fixing violations, as a first step, we can merge the infrastructural changes to flame_lint to and GitHub actions.
As a proof of concept, I am enabling two rules for which we have no violations.
I will followup with enabling more rules, adding discussions for controversial changes, and fixing non-controversial violations.

@luanpotter luanpotter marked this pull request as draft August 20, 2023 18:30
@luanpotter luanpotter changed the title [WIP] Try out DCM - DO NOT MERGE YET refactor: Enable DCM linting Aug 24, 2023
@@ -42,6 +42,24 @@ jobs:
node-version: 18
- run: npm install -g markdownlint-cli
- run: markdownlint . -p .markdownlintignore -c .markdownlint.yaml

dcm:
Copy link
Member Author

Choose a reason for hiding this comment

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

I can make it mandatory once this merges

# dart rules
- avoid-banned-imports
# flutter rules
- prefer-define-hero-tag
Copy link
Member Author

Choose a reason for hiding this comment

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

just the first for each from the all preset

@luanpotter luanpotter marked this pull request as ready for review August 24, 2023 04:52
luanpotter added a commit that referenced this pull request Aug 24, 2023
Fix a couple lint issues across the codebase, identified by
#2667
Nothing controversial, I expect; getting these out of the way so we can
focus on discussing bigger things.
@spydon spydon merged commit 27a8fd6 into main Aug 24, 2023
7 checks passed
@spydon spydon deleted the luan.dcm branch August 24, 2023 11:09
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.

None yet

4 participants