Skip to content

Commit

Permalink
checksrc: check code style in CI job and with 'make checksrc'
Browse files Browse the repository at this point in the history
The checksrc script is imported from the curl source repo (updated last
as 2bc1d775f51)

The "build" CI job is extended to run a code style check as well.

Closes #123
  • Loading branch information
bagder committed Apr 10, 2023
1 parent c0b1ba6 commit a995eee
Show file tree
Hide file tree
Showing 5 changed files with 938 additions and 16 deletions.
1 change: 1 addition & 0 deletions .checksrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
disable FOPENMODE
3 changes: 3 additions & 0 deletions .github/workflows/makefile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ jobs:
sudo apt-get update
sudo apt-get install libcurl4-openssl-dev ${{ matrix.build.install_packages }}
- name: code style check
run: make checksrc

- name: make
run: make ${{ matrix.build.make_opts }}

Expand Down
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,6 @@ clean:

test:
@perl test.pl

checksrc:
./checksrc.pl trurl.c version.h
Loading

0 comments on commit a995eee

Please sign in to comment.