Commit Conventions

<aside> đź’ˇ Code convention will be referred to Conventional Commit.

</aside>

Commit Message

Commands Types Descriptions
feat Features A new feature
fix Bug Fixes A bug fix
docs Documentation Docume­ntation only changes
style Styles Changes that do not affect the meaning of the code (white­-space, format­ting, missing semi-c­olons, etc)
refactor Code Refactoring A code change that neither fixes a bug nor adds a feature
perf Performance Improvements A code change that improves perfor­mance
test Tests Adding missing tests or correcting existing tests
build Builds Changes that affect the build system or external depend­encies (example scopes: gulp, broccoli, npm)
ci Continuous Integrations Changes to our CI config­uration files and scripts (example scopes: Travis, Circle, Browse­rStack, SauceLabs)
chore Chores Other changes that don't modify src or test files
revert Reverts Reverts a previous commit

Code Conventions

<aside> đź’ˇ Code Convention will be referred to Dart.

</aside>

https://dart.dev/effective-dart/design

Identifiers

UpperCamelCase: all types of classes.

class SliderMenu { ... }

class HttpRequest { ... }

typedef Predicate<T> = bool Function(T value);

Lowercase_with_underscores

my_package
└─ lib
   └─ file_system.dart
   └─ slider_menu.dart
import 'dart:math' as math;
import 'package:angular_components/angular_components.dart' as angular_components;
import 'package:js/js.dart' as js;

LowerCamelCase

const pi = 3.14;
const defaultTimeout = 1000;
final urlScheme = RegExp('^([a-z]+):');

class Dice {
  static final numberGenerator = Random();
}

Ordering