We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Review guidelines for building library: https://hexdocs.pm/elixir/main/library-guidelines.html
Check for possible error inside the library: For example:
gogs/lib/gogs.ex
Lines 162 to 165 in 2c55a5b
File.read
Application configuration At the moment we are using module constant to defined from environment variable. We had a few issues linked to this and it might be better to let the application using the library define these values in the config file. see https://hexdocs.pm/elixir/main/library-guidelines.html#avoid-application-configuration
Rename modules Create the Gogs namespace and use it for other modules:
Gogs
gogs/lib/helpers.ex
Line 1 in 2c55a5b
Gogs.Helpers
These are the main points that we can update for now.
The text was updated successfully, but these errors were encountered:
@SimonLab excellent doc reading, thanks! 👌🏻 if you have time to refactor, please go for it. 🙌 If not, I’m happy to take a look. 👨🏻💻
Sorry, something went wrong.
update all sub-modules to be name-spaced Gogs.ModuleName as per Libra…
008777f
…ry guidelines #36
bump version as namespace change #36
e63f3a5
Initial PR with the “easy” part: name spacing. 🤞 #37
Merge pull request #37 from dwyl/library-guidelines-issue-#36
ac39696
Library guidelines issue #36
No branches or pull requests
Review guidelines for building library: https://hexdocs.pm/elixir/main/library-guidelines.html
Check for possible error inside the library:
For example:
gogs/lib/gogs.ex
Lines 162 to 165 in 2c55a5b
Here we call the
File.read
function without checking for errors. We can add a case statement here to make sure we read the file without any errors or report the error from the library itself to make is easier to debugsee: https://hexdocs.pm/elixir/main/library-guidelines.html#avoid-working-with-invalid-data
Application configuration
At the moment we are using module constant to defined from environment variable. We had a few issues linked to this and it might be better to let the application using the library define these values in the config file.
see https://hexdocs.pm/elixir/main/library-guidelines.html#avoid-application-configuration
Rename modules
Create the
Gogs
namespace and use it for other modules:gogs/lib/helpers.ex
Line 1 in 2c55a5b
become
Gogs.Helpers
see: https://hexdocs.pm/elixir/main/library-guidelines.html#avoid-defining-modules-that-are-not-in-your-namespace
These are the main points that we can update for now.
The text was updated successfully, but these errors were encountered: