File tree Expand file tree Collapse file tree 7 files changed +43
-9
lines changed Expand file tree Collapse file tree 7 files changed +43
-9
lines changed Original file line number Diff line number Diff line change 1+ #include <iostream>
2+
3+ int main ()
4+ {
5+ std ::cout << "Hello World!" ;
6+ return 0 ;
7+ }
Original file line number Diff line number Diff line change 1+ #include <iostream>
2+
3+ int main ()
4+ {
5+ std ::cout << "Hello World!" ;
6+ return 0 ;
7+ }
Original file line number Diff line number Diff line change 1+ #include < iostream>
2+
3+ int main () {
4+ std::cout << " Hello World!"
5+ return 0 ;
6+ }
Original file line number Diff line number Diff line change 1+ #include < iostream>
2+
3+ int main () {
4+ std::cout << " Hello World!"
5+ return 0 ;
6+ }
Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ Note: Can be used with `oxsecurity/megalinter@beta` in your GitHub Action mega-l
1313- Media
1414
1515- New linters
16- - Add [ clang-format] ( https://releases.llvm.org/16.0.0/tools/clang/docs/ClangFormat.html ) c & cpp formatting linter
16+ - Add [ clang-format] ( https://releases.llvm.org/16.0.0/tools/clang/docs/ClangFormat.html ) c & cpp formatting linter including "apply fix" support
1717
1818- Fixes
1919
Original file line number Diff line number Diff line change @@ -38,6 +38,10 @@ linters:
3838 cli_lint_extra_args :
3939 - " --Werror"
4040 - " --dry-run"
41+ cli_lint_fix_arg_name : " -i"
42+ cli_lint_fix_remove_args :
43+ - " --Werror"
44+ - " --dry-run"
4145 config_file_name : .clang-format
4246 cli_config_arg_name : " --style=file:"
4347 cli_lint_errors_count : regex_count
@@ -49,8 +53,8 @@ linters:
4953 - clang16-extra-tools
5054 ide :
5155 vscode :
52- name : Clang-Format
53- url : https://marketplace.visualstudio.com/items?itemName=xaver.clang-format
56+ - name : Clang-Format
57+ url : https://marketplace.visualstudio.com/items?itemName=xaver.clang-format
5458 emacs :
55- name : clang-format
56- url : https://releases.llvm.org/16.0.0/tools/clang/docs/ClangFormat.html#emacs-integration
59+ - name : clang-format
60+ url : https://releases.llvm.org/16.0.0/tools/clang/docs/ClangFormat.html#emacs-integration
Original file line number Diff line number Diff line change @@ -48,6 +48,10 @@ linters:
4848 cli_lint_extra_args :
4949 - " --Werror"
5050 - " --dry-run"
51+ cli_lint_fix_arg_name : " -i"
52+ cli_lint_fix_remove_args :
53+ - " --Werror"
54+ - " --dry-run"
5155 config_file_name : .clang-format
5256 cli_config_arg_name : " --style=file:"
5357 cli_lint_errors_count : regex_count
@@ -59,8 +63,8 @@ linters:
5963 - clang16-extra-tools
6064 ide :
6165 vscode :
62- name : Clang-Format
63- url : https://marketplace.visualstudio.com/items?itemName=xaver.clang-format
66+ - name : Clang-Format
67+ url : https://marketplace.visualstudio.com/items?itemName=xaver.clang-format
6468 emacs :
65- name : clang-format
66- url : https://releases.llvm.org/16.0.0/tools/clang/docs/ClangFormat.html#emacs-integration
69+ - name : clang-format
70+ url : https://releases.llvm.org/16.0.0/tools/clang/docs/ClangFormat.html#emacs-integration
You can’t perform that action at this time.
0 commit comments