Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Minor formatting fixes
  • Loading branch information
jathak committed Apr 5, 2019
commit 28c09b89a0615a3c2747c0e1d7049ab189557c99
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ All submissions, including submissions by project members, require review.
### File headers
All files in the project must start with the following header.

// Copyright 2018 Google LLC
// Copyright 2019 Google LLC
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file or at
Expand Down
2 changes: 1 addition & 1 deletion lib/runner.dart
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import 'src/migrators/module.dart';

/// A command runner that runs a migrator based on provided arguments.
class MigratorRunner extends CommandRunner<p.PathMap<String>> {
final invocation = "sass_migrator <migrator> [options] <entrypoint.scss ...>";
final invocation = "sass_migrator <migrator> [options] <entrypoint.scss...>";

MigratorRunner()
: super("sass_migrator", "Migrates stylesheets to new Sass versions.") {
Expand Down
2 changes: 2 additions & 0 deletions lib/src/migrator.dart
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import 'dart:io';

import 'package:args/command_runner.dart';
import 'package:meta/meta.dart';
import 'package:path/path.dart' as p;

import 'utils.dart';
Expand Down Expand Up @@ -39,6 +40,7 @@ abstract class Migrator extends Command<p.PathMap<String>> {
///
/// Files that did not require any changes, even if touched by the migrator,
/// should not be included map of results.
@protected
void migrateFile(String entrypoint);

/// Runs this migrator.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/migrators/module.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018 Google LLC
// Copyright 2019 Google LLC
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file or at
Expand Down
6 changes: 6 additions & 0 deletions lib/src/migrators/module/built_in_functions.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
// Copyright 2019 Google LLC
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file or at
// https://opensource.org/licenses/MIT.

/// Mapping from existing built-in function name to the module it's now part of.
const builtInFunctionModules = {
"red": "color",
Expand Down
2 changes: 1 addition & 1 deletion lib/src/patch.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018 Google LLC
// Copyright 2019 Google LLC
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file or at
Expand Down
2 changes: 1 addition & 1 deletion test/patch_test.dart
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2018 Google LLC
// Copyright 2019 Google LLC
//
// Use of this source code is governed by an MIT-style
// license that can be found in the LICENSE file or at
Expand Down