Skip to content

Commit 3bd3176

Browse files
Some design and add doc to give an idea of the design before actual implementation
1 parent c741b28 commit 3bd3176

31 files changed

+622
-236
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
mindless_anarchy = 1504e5 # [bad-float-notation]
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
exponent_not_multiple_of_three = 123e4 # [bad-float-notation]
2+
base_not_between_one_and_a_thousand = 12345e6 # [bad-float-notation]
3+
above_threshold_without_exponent = 10000000 # [bad-float-notation]
4+
under_a_thousand_with_exponent = 9.9e2 # [bad-float-notation]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[format]
2+
strict-engineering-notation = true
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
not_grouped_by_three = 1_23_456_7_89 # [bad-float-notation]
2+
mixing_with_exponent = 1_23_4_5_67_8e9 # [bad-float-notation]
3+
above_threshold_without_grouping = 123456789 # [bad-float-notation]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[main]
2+
strict-underscore-notation = true
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
base_not_between_one_and_ten = 10e3 # [bad-float-notation]
2+
above_threshold_without_exponent = 10000000 # [bad-float-notation]
3+
under_ten_with_exponent = 9.9e0 # [bad-float-notation]
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[format]
2+
strict-scientific-notation = true
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
There's 4 options associated with this message:
2+
- ``strict-engineering-notation``
3+
- ``strict-scientific-notation``
4+
- ``strict-underscore-notation``
5+
- ``float-notation-threshold``
6+
By default we allow all three standard and the threshold is 10e6.
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
exponent_multiple_of_three = 1.23e6
2+
base_between_one_and_a_thousand = 12.345e9
3+
under_a_thousand = 990
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
scientific_notation = 1.504e8
2+
engineering_notation = 150.4e6
3+
underscore_notation = 150_400_000

0 commit comments

Comments
 (0)