diff --git a/.ameba.yml b/.ameba.yml new file mode 100644 index 0000000..04dd36e --- /dev/null +++ b/.ameba.yml @@ -0,0 +1,15 @@ +# This configuration file was generated by `ameba --gen-config` +# on 2021-06-26 15:36:50 UTC using Ameba version 0.13.4. +# The point is for the user to remove these configuration records +# one by one as the reported problems are removed from the code base. + +Style/RedundantBegin: + Description: Disallows redundant begin blocks + Enabled: false + Severity: Convention + +Metrics/CyclomaticComplexity: + Description: Disallows methods with a cyclomatic complexity higher than `MaxComplexity` + MaxComplexity: 30 + Enabled: true + Severity: Convention diff --git a/.gitignore b/.gitignore index 0397cf7..479c8f2 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,5 @@ /lib/ /bin/ /.shards/ + +/shard.lock \ No newline at end of file diff --git a/example/application.cr b/example/application.cr index 226f528..a324568 100644 --- a/example/application.cr +++ b/example/application.cr @@ -2,4 +2,5 @@ require "../src/layout" builder = Layout::Transpiler::Builder.new builder.build_from_document("#{__DIR__}/dist/index.html") + builder.run diff --git a/example/dist/components/authorization.html b/example/dist/components/authorization.html deleted file mode 100644 index 7b72103..0000000 --- a/example/dist/components/authorization.html +++ /dev/null @@ -1,22 +0,0 @@ - - - - - - - - -