Skip to content

Conversation

@stuartmorgan-g
Copy link
Collaborator

Replaces the full build-and-analyze version of pod lib lint with the --quick version. This means that this step no longer does native code analysis (which analyze covers), so it no longer needs an exclusion list for packages with warnings.

As a result of this change, flutter/packages no longer has a dependency on the version of Flutter that was published to CocoaPods to facilitate podspec testing.

Fixes flutter/flutter#178806

Replaces the full build-and-analyze version of `pod lib lint` with the
`--quick` version. This means that this step no longer does native code
analysis (which `analyze` covers), so it no longer needs an exclusion
list for packages with warnings.

As a result of this change, flutter/packages no longer has a dependency
on the version of Flutter that was published to CocoaPods to facilitate
podspec testing.

Fixes flutter/flutter#178806
print(frameworkResult.stdout);
print(frameworkResult.stderr);

// Lint plugin as library.
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The difference only matters when building, so we don't need to run both modes.

'lint',
podspecPath,
'--configuration=Debug', // Release targets unsupported arm64 simulators. Use Debug to only build against targeted x86_64 simulator devices.
'--skip-tests',
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

These flags aren't used in --quick mode.

Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request modifies the podspec-check command to use pod lib lint --quick instead of a full pod lib lint. This removes the dual-pass linting for library and framework styles and removes the --exclude flag from the CI configuration. The corresponding tests are updated to reflect the new single-pass linting process. My review includes a suggestion to remove a comment that has become obsolete due to these changes.

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.

[packages] Switch podspec linting to --quick

1 participant