Fix C and adapt more sanity checks
This commit is contained in:
parent
5e32b332bd
commit
45cb1920fb
30
.github/label-pr.yml
vendored
30
.github/label-pr.yml
vendored
@ -1,46 +1,46 @@
|
||||
# Programming language specific
|
||||
- regExp: ".*\\.rs+$"
|
||||
- regExp: '.*\.rs'
|
||||
labels: ["rustlang"]
|
||||
|
||||
- regExp: ".*\\.py+$"
|
||||
- regExp: '.*\\.py'
|
||||
labels: ["python"]
|
||||
|
||||
- regExp: ".*\\.c+$"
|
||||
- regExp: '.*\.c'
|
||||
labels: ["c-lang"]
|
||||
|
||||
- regExp: ".*\\.cpp+$"
|
||||
- regExp: '.*\.cpp'
|
||||
labels: ["CPP"]
|
||||
|
||||
- regExp: ".*\\.sh+$"
|
||||
- regExp: '.*\.sh'
|
||||
labels: ["shell"]
|
||||
|
||||
- regExp: ".*\\.bash+$"
|
||||
- regExp: '.*\.bash'
|
||||
labels: ["bash"]
|
||||
|
||||
- regExp: ".*\\.br+$"
|
||||
- regExp: '.*\.br'
|
||||
labels: ["brainfuck"]
|
||||
|
||||
- regExp: ".*\\.jar+$"
|
||||
- regExp: '.*\.jar'
|
||||
labels: ["java"]
|
||||
|
||||
- regExp: ".*\\.v+$"
|
||||
- regExp: '.*\.v'
|
||||
labels: ["vlang"]
|
||||
|
||||
- regExp: ".*\\.cs+$"
|
||||
- regExp: '.*\.cs'
|
||||
labels: ["csharp"]
|
||||
|
||||
- regExp: ".*tests.*"
|
||||
- regExp: '^/tests/.*'
|
||||
labels: ["tests"]
|
||||
|
||||
- regExp: "benches"
|
||||
- regExp: '^/benches/.*'
|
||||
labels: ["benches"]
|
||||
|
||||
- regExp: "LICENSE.md"
|
||||
- regExp: '^LICENSE\.md'
|
||||
labels: ["license"]
|
||||
|
||||
- regExp: "^(.*\\Cargo.toml\\requirements.txt)$"
|
||||
- regExp: '^(Cargo\.toml|requirements\.txt)'
|
||||
labels: ["dependencies"]
|
||||
|
||||
# Repository specific
|
||||
- regExp: ".*docs.*"
|
||||
- regExp: '^/docs/.*'
|
||||
labels: ["docs"]
|
@ -9,4 +9,5 @@ vscode:
|
||||
- hbenl.vscode-test-explorer@2.15.0:koqDUMWDPJzELp/hdS/lWw==
|
||||
- belfz.search-crates-io@1.2.1:kSLnyrOhXtYPjQpKnMr4eQ==
|
||||
- serayuzgur.crates@0.4.7:HMkoguLcXp9M3ud7ac3eIw==
|
||||
- timonwong.shellcheck@0.9.0:hsU/Rd39aqPYowTqL+DbXg==
|
||||
- timonwong.shellcheck@0.9.0:hsU/Rd39aqPYowTqL+DbXg==
|
||||
- krosf.vscode-valgrind@0.0.1:YTn5lOY8OnPKJYDqJPr/Sg==
|
@ -13,7 +13,7 @@ RUN curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
|
||||
&& apt-get upgrade -y \
|
||||
&& curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - \
|
||||
&& apt dist-upgrade -y \
|
||||
&& apt-get install -y clang shellcheck docker-ce docker-ce-cli containerd.io firefox tree xclip umbrello gnuplot \
|
||||
&& apt-get install -y clang valgrind shellcheck docker-ce docker-ce-cli containerd.io firefox tree xclip umbrello gnuplot \
|
||||
&& rm -rf /var/lib/apt/lists/* \
|
||||
&& apt autoremove -y
|
||||
|
||||
|
@ -1,12 +1,12 @@
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
// FIXME: Does not build on clang
|
||||
// FIXME-QA: Outputs warnings
|
||||
// FIXME-TEST: Adapt valgrind
|
||||
|
||||
int main(int argc, char ** argv[]) {
|
||||
int main(int argc, char **argv) {
|
||||
if(argc < 2) {
|
||||
// FIXME: Add better help message
|
||||
// FIXME: Source from po depending on language used
|
||||
// FIXME: Source better help message from po depending on language used
|
||||
printf("%s\n", "Argument(s) required, use -h for display help");
|
||||
return 2;
|
||||
} else if(strcmp(argv[1], "-h") == 0) {
|
||||
|
Loading…
Reference in New Issue
Block a user