File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ A collection of recipes for reLint. Please feel free to contribute!
7
7
- [ Python] ( #python )
8
8
- [ Django] ( #django )
9
9
- [ HTML] ( #html )
10
+ - [ C/C++] ( #cc )
10
11
11
12
# Python
12
13
@@ -104,3 +105,14 @@ A collection of recipes for reLint. Please feel free to contribute!
104
105
You may use a CSS class instead.
105
106
filePattern : .*\.(html|vue|jsx|tsx)
106
107
` ` `
108
+
109
+ # C/C++
110
+
111
+ ` ` ` yaml
112
+ # This rule requires you to install the extra `regex` dependency.
113
+ - name : no line longer than 120 characters in a line (excluding comments) # by @yangcht
114
+ pattern : ' (?<!^[ \u00A0\u1680\u2000-\u200A\u202F\u205F\u3000]*//.*)(?<!/\*(?:(?!\*/)[\s\S\r])*?)\b(.{120,})\b'
115
+ hint : |
116
+ Please do not use more than 120 characters in codes except for comments.
117
+ filePattern : .*\.(C|cc|cxx|cpp|c++|cppm)
118
+ ` ` `
You can’t perform that action at this time.
0 commit comments