Skip to content

Commit

Permalink
Add Lint to CI (#434)
Browse files Browse the repository at this point in the history
  • Loading branch information
danirabbit authored Nov 25, 2019
1 parent 8d5e1e9 commit 08e4d01
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 5 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: CI

on: [push, pull_request]

jobs:
lint:

runs-on: ubuntu-latest

container:
image: valalang/lint

steps:
- uses: actions/checkout@v1
- name: Lint
run: io.elementary.vala-lint -d .
10 changes: 5 additions & 5 deletions daemon/Daemon.vala
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,11 @@ namespace Maya {
if (now.compare (start_time) > 0) {
continue;
}
start_time = start_time.add_weeks (-(int)duration.get_weeks ());
start_time = start_time.add_days (-(int)duration.get_days ());
start_time = start_time.add_hours (-(int)duration.get_hours ());
start_time = start_time.add_minutes (-(int)duration.get_minutes ());
start_time = start_time.add_seconds (-(int)duration.get_seconds ());
start_time = start_time.add_weeks (-(int)duration.get_weeks ()); //vala-lint=space-before-paren
start_time = start_time.add_days (-(int)duration.get_days ()); //vala-lint=space-before-paren
start_time = start_time.add_hours (-(int)duration.get_hours ()); //vala-lint=space-before-paren
start_time = start_time.add_minutes (-(int)duration.get_minutes ()); //vala-lint=space-before-paren
start_time = start_time.add_seconds (-(int)duration.get_seconds ()); //vala-lint=space-before-paren
if (start_time.get_year () == now.get_year () && start_time.get_day_of_year () == now.get_day_of_year ()) {
var time = time_until_now (start_time);
if (time >= 0) {
Expand Down

0 comments on commit 08e4d01

Please sign in to comment.