Skip to content

Commit

Permalink
refactor!: Rename module to not use uppercase
Browse files Browse the repository at this point in the history
The official D style recommends that module name be all lowercase.
We've had this exception when under internal development, but now
that the project is in dlang-community, it should follow best practices.
  • Loading branch information
Geod24 committed Sep 18, 2024
1 parent 9eb9f7c commit 384a064
Show file tree
Hide file tree
Showing 8 changed files with 22 additions and 22 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ Let's start with an hello world:
```D
module helloworld;
import configy.Read;
import configy.read;
import std.stdio;
import std.typecons;
Expand Down
2 changes: 1 addition & 1 deletion examples/helloworld/source/app.d
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
module helloworld;

import configy.Read;
import configy.read;

import std.getopt;
import std.stdio;
Expand Down
6 changes: 3 additions & 3 deletions source/configy/Attributes.d → source/configy/attributes.d
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*******************************************************************************/

module configy.Attributes;
module configy.attributes;

import std.traits;

Expand Down Expand Up @@ -298,8 +298,8 @@ public auto converter (FT) (FT func)
public interface ConfigParser (T)
{
import dyaml.node;
import configy.FieldRef : StructFieldRef;
import configy.Read : Context, parseField;
import configy.fieldref : StructFieldRef;
import configy.read : Context, parseField;

/// Returns: the node being processed
public inout(Node) node () inout @safe pure nothrow @nogc;
Expand Down
4 changes: 2 additions & 2 deletions source/configy/Exceptions.d → source/configy/exceptions.d
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
*******************************************************************************/

module configy.Exceptions;
module configy.exceptions;

import configy.Utils;
import configy.utils;

import dyaml.exception;
import dyaml.node;
Expand Down
6 changes: 3 additions & 3 deletions source/configy/FieldRef.d → source/configy/fieldref.d
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@
*******************************************************************************/

module configy.FieldRef;
module configy.fieldref;

// Renamed imports as the names exposed by `FieldRef` shadow the imported ones.
import configy.Attributes : CAName = Name, CAOptional = Optional, SetInfo;
import configy.attributes : CAName = Name, CAOptional = Optional, SetInfo;

import std.meta;
import std.traits;
Expand Down Expand Up @@ -86,7 +86,7 @@ package template FieldRef (alias T, string name, bool forceOptional = false)

unittest
{
import configy.Attributes : Name;
import configy.attributes : Name;

static struct Config1
{
Expand Down
12 changes: 6 additions & 6 deletions source/configy/Read.d → source/configy/read.d
Original file line number Diff line number Diff line change
Expand Up @@ -141,13 +141,13 @@
*******************************************************************************/

module configy.Read;
module configy.read;

public import configy.Attributes;
public import configy.Exceptions : ConfigException;
import configy.Exceptions;
import configy.FieldRef;
import configy.Utils;
public import configy.attributes;
public import configy.exceptions : ConfigException;
import configy.exceptions;
import configy.fieldref;
import configy.utils;

import dyaml.exception;
import dyaml.node;
Expand Down
10 changes: 5 additions & 5 deletions source/configy/Test.d → source/configy/test.d
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
*******************************************************************************/

module configy.Test;
module configy.test;

import configy.Attributes;
import configy.Exceptions;
import configy.Read;
import configy.Utils;
import configy.attributes;
import configy.exceptions;
import configy.read;
import configy.utils;

import dyaml.node;

Expand Down
2 changes: 1 addition & 1 deletion source/configy/Utils.d → source/configy/utils.d
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*******************************************************************************/

module configy.Utils;
module configy.utils;

import std.format;

Expand Down

0 comments on commit 384a064

Please sign in to comment.