Skip to content

Commit

Permalink
Allow to override the inklecate_path setting
Browse files Browse the repository at this point in the history
Fixes #35
  • Loading branch information
paulloz committed Jun 11, 2022
1 parent f669d0f commit dde8c31
Show file tree
Hide file tree
Showing 3 changed files with 222 additions and 193 deletions.
198 changes: 102 additions & 96 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,96 +1,102 @@
root = true

[*]

end_of_line = lf
insert_final_newline = true

[*.cs]

indent_style = space
indent_size = 4
tab_width = 4

dotnet_sort_system_directives_first = false
dotnet_separate_import_directive_groups = false

csharp_new_line_before_open_brace = all
csharp_new_line_before_else = true
csharp_new_line_before_catch = true
csharp_new_line_before_finally = true
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_members_in_anonymous_types = true
csharp_new_line_between_query_expression_clauses = true

csharp_indent_case_contents = true
csharp_indent_switch_labels = true
csharp_indent_block_contents = true
csharp_indent_braces = false
csharp_indent_case_contents_when_block = false

csharp_space_after_cast = false
csharp_space_after_keywords_in_control_flow_statements = true
csharp_space_before_colon_in_inheritance_clause = true
csharp_space_after_colon_in_inheritance_clause = true
csharp_space_around_binary_operators = before_and_after
csharp_space_between_method_declaration_parameter_list_parentheses = false
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
csharp_space_between_method_declaration_name_and_open_parenthesis = false
csharp_space_between_method_call_parameter_list_parentheses = false
csharp_space_between_method_call_empty_parameter_list_parentheses = false
csharp_space_between_method_call_name_and_opening_parenthesis = false
csharp_space_after_comma = true
csharp_space_before_comma = false
csharp_space_after_dot = false
csharp_space_before_dot = false
csharp_space_after_semicolon_in_for_statement = true
csharp_space_before_semicolon_in_for_statement = false
csharp_space_around_declaration_statements = false
csharp_space_before_open_square_brackets = false
csharp_space_between_empty_square_brackets = false
csharp_space_between_square_brackets = false

csharp_preserve_single_line_statements = true
csharp_preserve_single_line_blocks = true

csharp_using_directive_placement = outside_namespace

csharp_style_namespace_declarations = block_scoped


dotnet_diagnostic.IDE0001.severity = suggestion
dotnet_diagnostic.IDE0002.severity = suggestion
dotnet_diagnostic.IDE0004.severity = warning
dotnet_diagnostic.IDE0005.severity = error
dotnet_diagnostoc.IDE0035.severity = error
dotnet_diagnostoc.IDE0051.severity = warning
dotnet_diagnostoc.IDE0052.severity = warning
dotnet_diagnostoc.IDE0058.severity = warning
dotnet_diagnostoc.IDE0059.severity = error
dotnet_diagnostoc.IDE0060.severity = suggestion
dotnet_diagnostoc.IDE0079.severity = suggestion
dotnet_diagnostoc.IDE0080.severity = error
dotnet_diagnostoc.IDE0100.severity = error
dotnet_diagnostoc.IDE0110.severity = error
dotnet_diagnostoc.IDE0110.severity = error

dotnet_diagnostoc.CA1802.severity = error
dotnet_diagnostoc.CA1805.severity = warning
dotnet_diagnostoc.CA1806.severity = warning
dotnet_diagnostoc.CA1810.severity = warning
dotnet_diagnostoc.CA1815.severity = suggestion
dotnet_diagnostoc.CA1819.severity = error
dotnet_diagnostoc.CA1820.severity = suggestion
dotnet_diagnostoc.CA1822.severity = suggestion
dotnet_diagnostoc.CA1823.severity = warning
dotnet_diagnostoc.CA1825.severity = warning
dotnet_diagnostoc.CA1826.severity = warning
dotnet_diagnostoc.CA1827.severity = warning
dotnet_diagnostoc.CA1828.severity = warning
dotnet_diagnostoc.CA1829.severity = warning
dotnet_diagnostoc.CA1836.severity = warning
dotnet_diagnostoc.CA1841.severity = warning

dotnet_diagnostoc.CA2207.severity = warning
dotnet_diagnostoc.CA2211.severity = warning
dotnet_diagnostoc.CA2227.severity = error
root = true

[*]

end_of_line = lf
insert_final_newline = true

[*.gd]

indent_style = tab
indent_size = 4
tab_width = 4

[*.cs]

indent_style = space
indent_size = 4
tab_width = 4

dotnet_sort_system_directives_first = false
dotnet_separate_import_directive_groups = false

csharp_new_line_before_open_brace = all
csharp_new_line_before_else = true
csharp_new_line_before_catch = true
csharp_new_line_before_finally = true
csharp_new_line_before_members_in_object_initializers = true
csharp_new_line_before_members_in_anonymous_types = true
csharp_new_line_between_query_expression_clauses = true

csharp_indent_case_contents = true
csharp_indent_switch_labels = true
csharp_indent_block_contents = true
csharp_indent_braces = false
csharp_indent_case_contents_when_block = false

csharp_space_after_cast = false
csharp_space_after_keywords_in_control_flow_statements = true
csharp_space_before_colon_in_inheritance_clause = true
csharp_space_after_colon_in_inheritance_clause = true
csharp_space_around_binary_operators = before_and_after
csharp_space_between_method_declaration_parameter_list_parentheses = false
csharp_space_between_method_declaration_empty_parameter_list_parentheses = false
csharp_space_between_method_declaration_name_and_open_parenthesis = false
csharp_space_between_method_call_parameter_list_parentheses = false
csharp_space_between_method_call_empty_parameter_list_parentheses = false
csharp_space_between_method_call_name_and_opening_parenthesis = false
csharp_space_after_comma = true
csharp_space_before_comma = false
csharp_space_after_dot = false
csharp_space_before_dot = false
csharp_space_after_semicolon_in_for_statement = true
csharp_space_before_semicolon_in_for_statement = false
csharp_space_around_declaration_statements = false
csharp_space_before_open_square_brackets = false
csharp_space_between_empty_square_brackets = false
csharp_space_between_square_brackets = false

csharp_preserve_single_line_statements = true
csharp_preserve_single_line_blocks = true

csharp_using_directive_placement = outside_namespace

csharp_style_namespace_declarations = block_scoped


dotnet_diagnostic.IDE0001.severity = suggestion
dotnet_diagnostic.IDE0002.severity = suggestion
dotnet_diagnostic.IDE0004.severity = warning
dotnet_diagnostic.IDE0005.severity = error
dotnet_diagnostoc.IDE0035.severity = error
dotnet_diagnostoc.IDE0051.severity = warning
dotnet_diagnostoc.IDE0052.severity = warning
dotnet_diagnostoc.IDE0058.severity = warning
dotnet_diagnostoc.IDE0059.severity = error
dotnet_diagnostoc.IDE0060.severity = suggestion
dotnet_diagnostoc.IDE0079.severity = suggestion
dotnet_diagnostoc.IDE0080.severity = error
dotnet_diagnostoc.IDE0100.severity = error
dotnet_diagnostoc.IDE0110.severity = error
dotnet_diagnostoc.IDE0110.severity = error

dotnet_diagnostoc.CA1802.severity = error
dotnet_diagnostoc.CA1805.severity = warning
dotnet_diagnostoc.CA1806.severity = warning
dotnet_diagnostoc.CA1810.severity = warning
dotnet_diagnostoc.CA1815.severity = suggestion
dotnet_diagnostoc.CA1819.severity = error
dotnet_diagnostoc.CA1820.severity = suggestion
dotnet_diagnostoc.CA1822.severity = suggestion
dotnet_diagnostoc.CA1823.severity = warning
dotnet_diagnostoc.CA1825.severity = warning
dotnet_diagnostoc.CA1826.severity = warning
dotnet_diagnostoc.CA1827.severity = warning
dotnet_diagnostoc.CA1828.severity = warning
dotnet_diagnostoc.CA1829.severity = warning
dotnet_diagnostoc.CA1836.severity = warning
dotnet_diagnostoc.CA1841.severity = warning

dotnet_diagnostoc.CA2207.severity = warning
dotnet_diagnostoc.CA2211.severity = warning
dotnet_diagnostoc.CA2227.severity = error
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ If you want to compile ink files directly from Godot, there are a few additional
* It should contain an executable file named `inklecate`.
1. In the project settings window, scroll down to the ink section and point the "Inklecate Path" field to the said executable file.

If you need to, this "Inklecate Path" can be overriden by setting a `override.cfg` file in the addon folder. This allows different developers on a team to have their version of the ink compiler wherever they want (if so, do not forget to ignore the `override.cfg` file in your VCS).
```ini
inklecate_path = "C:/Path/To/Your/inklecate.exe"
```

## License

*godot-ink* is released under MIT license (see the [LICENSE](/LICENSE) file for more information).
Loading

0 comments on commit dde8c31

Please sign in to comment.