Skip to content

Commit

Permalink
style(editorconfig): Adjust settings and fix all errors
Browse files Browse the repository at this point in the history
  • Loading branch information
PetarKirov committed May 5, 2024
1 parent b3339eb commit ec346b8
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
8 changes: 7 additions & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ insert_final_newline = true
trim_trailing_whitespace = true
indent_style = space
indent_size = 2
max_line_length = 80

[*.{d,h,hpp,c,cpp,cxx,cs,hs,java,kt,py,rs,sol}]
indent_size = 4
Expand All @@ -20,3 +19,10 @@ indent_size = 4
[{CMakeLists.txt,*.cmake}]
indent_size = 2
indent_style = space

[*.md]
indent_style = space
# Prettier handles formatting for markdown files
# and `indent_size` is not enforcable because ordered and unordered lists use
# different indentation:
indent_size = unset
6 changes: 3 additions & 3 deletions scripts/utils.d
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ string executeCommand(bool dryRun, string command) {
stderr.writefln(`> %s`, command);
if (dryRun) return null;
const result = executeShell(
command,
null,
Config.stderrPassThrough,
command,
null,
Config.stderrPassThrough,
);
return result.status == 0 ? result.output : null;
}
2 changes: 1 addition & 1 deletion templates/macos-aarch64-devshell-with-dmd/pegged_example.d
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ void main()

pragma(msg, parseTree1.matches);
assert(parseTree1.matches == ["1", "+", "2", "-",
"(", "3", "*", "x", "-", "5", ")", "*", "6"]);
"(", "3", "*", "x", "-", "5", ")", "*", "6"]);
writeln(parseTree1);

// And at runtime too:
Expand Down

0 comments on commit ec346b8

Please sign in to comment.