Skip to content

Commit e090836

Browse files
committed
Initial commit
0 parents  commit e090836

File tree

8 files changed

+62
-0
lines changed

8 files changed

+62
-0
lines changed

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Files and directories created by pub
2+
.dart_tool/
3+
.packages
4+
# Remove the following pattern if you wish to check in your lock file
5+
pubspec.lock
6+
7+
# Conventional directory for build outputs
8+
build/
9+
10+
# Directory created by dartdoc
11+
doc/api/

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## 1.0.0
2+
3+
- Initial version, created by Stagehand

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
A sample command-line application.
2+
3+
Created from templates made available by Stagehand under a BSD-style
4+
[license](https://github.com/dart-lang/stagehand/blob/master/LICENSE).

analysis_options.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
analyzer:
2+
# exclude:
3+
# - path/to/excluded/files/**
4+
5+
# Lint rules and documentation, see http://dart-lang.github.io/linter/lints
6+
linter:
7+
rules:
8+
- cancel_subscriptions
9+
- hash_and_equals
10+
- iterable_contains_unrelated_type
11+
- list_remove_unrelated_type
12+
- test_types_in_equals
13+
- unrelated_type_equality_checks
14+
- valid_regexps

bin/main.dart

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import 'package:algorithms_in_dart/algorithms_in_dart.dart' as algorithms_in_dart;
2+
3+
main(List<String> arguments) {
4+
print('Hello world: ${algorithms_in_dart.calculate()}!');
5+
}

lib/algorithms_in_dart.dart

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
int calculate() {
2+
return 6 * 7;
3+
}

pubspec.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: algorithms_in_dart
2+
description: A sample command-line application.
3+
# version: 1.0.0
4+
# homepage: https://www.example.com
5+
# author: Mafinar K <[email protected]>
6+
7+
environment:
8+
sdk: '>=2.1.0 <3.0.0'
9+
10+
#dependencies:
11+
# path: ^1.4.1
12+
13+
dev_dependencies:
14+
test: ^1.0.0

test/algorithms_in_dart_test.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import 'package:algorithms_in_dart/algorithms_in_dart.dart';
2+
import 'package:test/test.dart';
3+
4+
void main() {
5+
test('calculate', () {
6+
expect(calculate(), 42);
7+
});
8+
}

0 commit comments

Comments
 (0)