Enable avoid_redundant_argument_values lint (#91409)

This commit is contained in:
Ian Hickson
2021-10-07 20:13:02 -07:00
committed by GitHub
parent 4bf7179e51
commit 5fd259be24
667 changed files with 1693 additions and 3385 deletions

View File

@@ -496,7 +496,6 @@ class FrameworkRepository extends Repository {
name: RemoteName.upstream,
url: 'file://$upstreamPath/',
),
localUpstream: false,
previousCheckoutLocation: previousCheckoutLocation,
);
}

View File

@@ -43,7 +43,6 @@ class RollDevCommand extends Command<void> {
kCandidateBranch,
help: 'Specifies which git branch to roll to the dev branch. Required.',
valueHelp: 'branch',
defaultsTo: null, // This option is required
);
argParser.addFlag(
kForce,

View File

@@ -42,10 +42,10 @@ String presentState(pb.ConductorState state) {
buffer.writeln('Conductor version: ${state.conductorVersion}');
buffer.writeln('Release channel: ${state.releaseChannel}');
buffer.writeln('Release version: ${state.releaseVersion}');
buffer.writeln('');
buffer.writeln();
buffer.writeln('Release started at: ${DateTime.fromMillisecondsSinceEpoch(state.createdDate.toInt())}');
buffer.writeln('Last updated at: ${DateTime.fromMillisecondsSinceEpoch(state.lastUpdatedDate.toInt())}');
buffer.writeln('');
buffer.writeln();
buffer.writeln('Engine Repo');
buffer.writeln('\tCandidate branch: ${state.engine.candidateBranch}');
buffer.writeln('\tStarting git HEAD: ${state.engine.startingGitHead}');
@@ -77,7 +77,7 @@ String presentState(pb.ConductorState state) {
} else {
buffer.writeln('0 Framework cherrypicks.');
}
buffer.writeln('');
buffer.writeln();
if (state.currentPhase == ReleasePhase.VERIFY_RELEASE) {
buffer.writeln(
'${state.releaseChannel} release ${state.releaseVersion} has been published and verified.\n',
@@ -88,7 +88,7 @@ String presentState(pb.ConductorState state) {
buffer.writeln(presentPhases(state.currentPhase));
buffer.writeln(phaseInstructions(state));
buffer.writeln('');
buffer.writeln();
buffer.writeln('Issue `conductor next` when you are ready to proceed.');
return buffer.toString();
}

View File

@@ -30,7 +30,6 @@ class StatusCommand extends Command<void> {
argParser.addFlag(
kVerboseFlag,
abbr: 'v',
defaultsTo: false,
help: 'Also print logs.',
);
}

View File

@@ -56,7 +56,7 @@ void main() {
'cherry-pick',
'--no-commit',
commit,
], exitCode: 0),
]),
const FakeCommand(command: <String>[
'git',
'reset',

View File

@@ -174,7 +174,7 @@ void main() {
),
false,
);
expect(stdio.logs.join('').contains(nextVersion), true);
expect(stdio.logs.join().contains(nextVersion), true);
});
test("exits with exception if --skip-tagging is provided but commit isn't already tagged", () {

View File

@@ -53,7 +53,6 @@ class MyApp extends StatelessWidget {
padding: const EdgeInsets.all(20.0),
child: Column(
crossAxisAlignment: CrossAxisAlignment.start,
mainAxisAlignment: MainAxisAlignment.start,
children: <Widget>[
const SelectableText(
'Desktop app for managing a release of the Flutter SDK, currently in development',

View File

@@ -75,12 +75,7 @@ class MainProgressionState extends State<MainProgression> {
stateFilePath: widget.stateFilePath,
),
Stepper(
controlsBuilder: (BuildContext context, ControlsDetails details) {
return Row(
children: const <Widget>[],
);
},
type: StepperType.vertical,
controlsBuilder: (BuildContext context, ControlsDetails details) => Row(),
physics: const ScrollPhysics(),
currentStep: _completedStep,
onStepContinue: nextStep,
@@ -127,9 +122,7 @@ class MainProgressionState extends State<MainProgression> {
),
Step(
title: Text(MainProgression._stepTitles[4]),
content: Column(
children: const <Widget>[],
),
content: Column(),
isActive: true,
state: handleStepState(4),
),

View File

@@ -18,7 +18,6 @@ void main() {
child: Column(
children: const <Widget>[
MainProgression(
releaseState: null,
stateFilePath: './testPath',
),
],
@@ -62,7 +61,6 @@ void main() {
child: Column(
children: const <Widget>[
MainProgression(
releaseState: null,
stateFilePath: './testPath',
),
],