Skip to content

Commit

Permalink
🎨 Re-format suffix_rules.dart
Browse files Browse the repository at this point in the history
  • Loading branch information
Komposten committed Aug 24, 2019
1 parent 99a617e commit 5390768
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ dart_task:
- test: --platform vm
- test: --platform chrome
- dartanalyzer: true
- dartfmt
- dartfmt: true
8 changes: 7 additions & 1 deletion lib/src/suffix_rules.dart
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
class SuffixRules {
static List<Rule> _rules;

SuffixRules._();

/// Returns an unmodifiable list containing the current rules.
///
/// [null] is returned if the list has not been initialised.
Expand Down Expand Up @@ -100,7 +102,9 @@ class SuffixRules {
int invalidRules = 0;

for (var rule in rules) {
if (_isComment(rule.labels) || _isEmpty(rule.labels) || !_isValidRule(rule.labels)) {
if (_isComment(rule.labels) ||
_isEmpty(rule.labels) ||
!_isValidRule(rule.labels)) {
invalidRules++;
}
}
Expand Down Expand Up @@ -133,8 +137,10 @@ class Rule {
///
/// Does not contain the exclamation point (!) that marks exception rules.
final String labels;

/// If the rule is an exception rule (preceded by a `!` in the original suffix list).
final bool isException;

/// If the rule is an ICANN/IANA rule.
final bool isIcann;

Expand Down

0 comments on commit 5390768

Please sign in to comment.