Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
alainm23 committed Jan 10, 2024
1 parent 1471e0d commit 14377e2
Show file tree
Hide file tree
Showing 90 changed files with 85 additions and 397 deletions.
2 changes: 1 addition & 1 deletion core/Constants.vala
Original file line number Diff line number Diff line change
Expand Up @@ -20,4 +20,4 @@ namespace Constants {
public const string PAYPAL_ME_URL = "https://www.paypal.com/paypalme/alainm23";
public const string LIBERAPAY_URL = "https://liberapay.com/Alain/";
public const string KOFI_URL = "https://ko-fi.com/alainm23";
}
}
2 changes: 1 addition & 1 deletion core/Enum.vala
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public enum RecurrencyType {
EVERY_YEAR,
NONE;

public string to_friendly_string(int? interval = null) {
public string to_friendly_string (int? interval = null) {
switch (this) {
case NONE:
return _("Don't Repeat");
Expand Down
6 changes: 1 addition & 5 deletions core/Objects/BaseObject.vala
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,6 @@ public class Objects.BaseObject : GLib.Object {
return "item";
} else if (this is Objects.Label) {
return "label";
// } else if (this is Objects.Task) {
// return "task";
// } else if (this is Objects.SourceTaskList) {
// return "source-task";
} else {
return "filter";
}
Expand Down Expand Up @@ -183,4 +179,4 @@ public class Objects.BaseObject : GLib.Object {
public virtual string to_json () {
return "";
}
}
}
2 changes: 1 addition & 1 deletion core/Objects/Color.vala
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@ public class Objects.Color : GLib.Object {
hexadecimal: hexadecimal
);
}
}
}
2 changes: 1 addition & 1 deletion core/Objects/DueDate.vala
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,4 @@ public class Objects.DueDate : GLib.Object {
public string to_friendly_string () {
return recurrency_type.to_friendly_string (recurrency_interval);
}
}
}
2 changes: 1 addition & 1 deletion core/Objects/Filters/Completed.vala
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ public class Objects.Completed : Objects.BaseObject {
count_updated ();
});
}
}
}
2 changes: 1 addition & 1 deletion core/Objects/Filters/Labels.vala
Original file line number Diff line number Diff line change
Expand Up @@ -73,4 +73,4 @@ public class Objects.Filters.Labels : Objects.BaseObject {
count_updated ();
});
}
}
}
2 changes: 1 addition & 1 deletion core/Objects/Filters/Pinboard.vala
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ public class Objects.Pinboard : Objects.BaseObject {
pinboard_count_updated ();
});
}
}
}
2 changes: 1 addition & 1 deletion core/Objects/Filters/Priority.vala
Original file line number Diff line number Diff line change
Expand Up @@ -81,4 +81,4 @@ public class Objects.Priority : Objects.BaseObject {
count_updated ();
});
}
}
}
2 changes: 1 addition & 1 deletion core/Objects/Filters/Scheduled.vala
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,4 @@ public class Objects.Scheduled : Objects.BaseObject {
scheduled_count_updated ();
});
}
}
}
2 changes: 1 addition & 1 deletion core/Objects/Filters/Today.vala
Original file line number Diff line number Diff line change
Expand Up @@ -87,4 +87,4 @@ public class Objects.Today : Objects.BaseObject {
today_count_updated ();
});
}
}
}
2 changes: 1 addition & 1 deletion core/Objects/Label.vala
Original file line number Diff line number Diff line change
Expand Up @@ -187,4 +187,4 @@ public class Objects.Label : Objects.BaseObject {

return generator.to_data (null);
}
}
}
2 changes: 1 addition & 1 deletion core/Objects/Queue.vala
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ public class Objects.Queue : GLib.Object {
public string query { get; set; default = ""; }
public string args { get; set; default = ""; }
public string date_added { get; set; default = new GLib.DateTime.now_local ().to_string (); }
}
}
2 changes: 1 addition & 1 deletion core/Objects/Reminder.vala
Original file line number Diff line number Diff line change
Expand Up @@ -129,4 +129,4 @@ public class Objects.Reminder : Objects.BaseObject {
loading = false;
}
}
}
}
2 changes: 1 addition & 1 deletion core/Objects/Section.vala
Original file line number Diff line number Diff line change
Expand Up @@ -320,4 +320,4 @@ public class Objects.Section : Objects.BaseObject {
}
return returned;
}
}
}
2 changes: 1 addition & 1 deletion core/QuickAdd.vala
Original file line number Diff line number Diff line change
Expand Up @@ -374,4 +374,4 @@ public class Layouts.QuickAdd : Adw.Bin {
item.child_order = index;
item.custom_order = true;
}
}
}
2 changes: 1 addition & 1 deletion core/Widgets/Calendar/CalendarDay.vala
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ public class Widgets.Calendar.CalendarDay : Adw.Bin {
add_css_class ("calendar-day-selected");
});
}
}
}
2 changes: 1 addition & 1 deletion core/Widgets/Calendar/CalendarHeader.vala
Original file line number Diff line number Diff line change
Expand Up @@ -106,4 +106,4 @@ public class Widgets.Calendar.CalendarHeader : Gtk.Box {
center_clicked ();
});
}
}
}
2 changes: 1 addition & 1 deletion core/Widgets/Calendar/CalendarView.vala
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,4 @@ public class Widgets.Calendar.CalendarView : Adw.Bin {
day_item.remove_css_class ("calendar-day-selected");
}
}
}
}
2 changes: 1 addition & 1 deletion core/Widgets/CircularProgressBar.vala
Original file line number Diff line number Diff line change
Expand Up @@ -243,4 +243,4 @@ public class _CircularProgressBar : Gtk.DrawingArea {
}
}
}
}
}
2 changes: 1 addition & 1 deletion core/Widgets/ContextMenu/MenuItem.vala
Original file line number Diff line number Diff line change
Expand Up @@ -126,4 +126,4 @@ public class Widgets.ContextMenu.MenuItem : Gtk.Button {
activate_item ();
});
}
}
}
2 changes: 1 addition & 1 deletion core/Widgets/ContextMenu/MenuPicker.vala
Original file line number Diff line number Diff line change
Expand Up @@ -204,4 +204,4 @@ public class Widgets.ContextMenu.MenuItemPicker : Gtk.ListBoxRow {
selected (get_index ());
});
}
}
}
2 changes: 1 addition & 1 deletion core/Widgets/ContextMenu/MenuSeparator.vala
Original file line number Diff line number Diff line change
Expand Up @@ -29,4 +29,4 @@ public class Widgets.ContextMenu.MenuSeparator : Gtk.Grid {

attach (separator, 0, 0);
}
}
}
2 changes: 1 addition & 1 deletion core/Widgets/DateTimePicker/DateTimePicker.vala
Original file line number Diff line number Diff line change
Expand Up @@ -228,4 +228,4 @@ public class Widgets.DateTimePicker.DateTimePicker : Gtk.Popover {
time.get_second ()
);
}
}
}
2 changes: 1 addition & 1 deletion core/Widgets/DateTimePicker/TimePicker.vala
Original file line number Diff line number Diff line change
Expand Up @@ -277,4 +277,4 @@ public class Widgets.DateTimePicker.TimePicker : Adw.Bin {
time_changed ();
}
}
}
}
2 changes: 1 addition & 1 deletion core/Widgets/DynamicIcon.vala
Original file line number Diff line number Diff line change
Expand Up @@ -88,4 +88,4 @@ public class Widgets.DynamicIcon : Adw.Bin {
icon.pixel_size = size;
}
}
}
}
2 changes: 1 addition & 1 deletion core/Widgets/Entries.vala
Original file line number Diff line number Diff line change
Expand Up @@ -151,4 +151,4 @@ public class Widgets.HyperTextView : Granite.HyperTextView {
return GLib.Source.REMOVE;
});
}
}
}
2 changes: 1 addition & 1 deletion core/Widgets/IconColorProject.vala
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,4 @@ public class Widgets.IconColorProject : Adw.Bin {
circular_progress_bar.percentage = project.percentage;
emoji_label.label = project.emoji;
}
}
}
2 changes: 1 addition & 1 deletion core/Widgets/ItemLabelChild.vala
Original file line number Diff line number Diff line change
Expand Up @@ -75,4 +75,4 @@ public class Widgets.ItemLabelChild : Gtk.FlowBoxChild {
return GLib.Source.REMOVE;
});
}
}
}
2 changes: 1 addition & 1 deletion core/Widgets/ItemLabels.vala
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,4 @@ public class Widgets.ItemLabels : Adw.Bin {
item_labels_map.clear ();
add_labels ();
}
}
}
2 changes: 1 addition & 1 deletion core/Widgets/LabelPicker/LabelButton.vala
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@ public class Widgets.LabelPicker.LabelButton : Adw.Bin {
labels_changed (labels_picker.picked);
});
}
}
}
2 changes: 1 addition & 1 deletion core/Widgets/LabelPicker/LabelPicker.vala
Original file line number Diff line number Diff line change
Expand Up @@ -251,4 +251,4 @@ public class Widgets.LabelPicker.LabelPicker : Gtk.Popover {
var label = ((Widgets.LabelPicker.LabelRow) row).label;
return search_entry.text.down () in label.name.down ();
}
}
}
2 changes: 1 addition & 1 deletion core/Widgets/LabelPicker/LabelRow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -84,4 +84,4 @@ public class Widgets.LabelPicker.LabelRow : Gtk.ListBoxRow {
checked_button.active = !checked_button.active;
checked_toggled (label, checked_button.active);
}
}
}
2 changes: 1 addition & 1 deletion core/Widgets/PinButton.vala
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ public class Widgets.PinButton : Gtk.Button {
public void update_request () {
pinned_image.update_icon_name (item.pinned_icon);
}
}
}
2 changes: 1 addition & 1 deletion core/Widgets/PriorityButton.vala
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,4 @@ public class Widgets.PriorityButton : Adw.Bin {
priority_image.update_icon_name ("planner-flag");
}
}
}
}
2 changes: 1 addition & 1 deletion core/Widgets/ProjectPicker/ProjectPickerButton.vala
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,4 @@ public class Widgets.ProjectPicker.ProjectPickerButton : Adw.Bin {

return row;
}
}
}
2 changes: 1 addition & 1 deletion core/Widgets/ProjectPicker/ProjectPickerPopover.vala
Original file line number Diff line number Diff line change
Expand Up @@ -111,4 +111,4 @@ public class Widgets.ProjectPicker.ProjectPickerPopover : Gtk.Popover {
stack.visible_child_name = "projects";
});
}
}
}
2 changes: 1 addition & 1 deletion core/Widgets/ProjectPicker/ProjectPickerRow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -77,4 +77,4 @@ public class Widgets.ProjectPicker.ProjectPickerRow : Gtk.ListBoxRow {
name_label.label = project.inbox_project ? _("Inbox") : project.name;
icon_project.update_request ();
}
}
}
2 changes: 1 addition & 1 deletion quick-add/MainWindow.vala
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ public class MainWindow : Adw.ApplicationWindow {
return GLib.Source.REMOVE;
});
}
}
}
2 changes: 1 addition & 1 deletion quick-add/Services/DBusClient.vala
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,4 @@ public class DBusClient : Object {
error ("Monitor Indicator DBus: %s\n", e.message);
}
}
}
}
54 changes: 0 additions & 54 deletions quick-add/Widgets/IconColorProject.vala

This file was deleted.

Loading

0 comments on commit 14377e2

Please sign in to comment.