Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
64 changes: 49 additions & 15 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -1,31 +1,65 @@
# EditorConfig for Elib2Ebook
# https://editorconfig.org

root = true

[*]
charset = utf-8
indent_style = space
indent_size = 4
end_of_line = lf
insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true
indent_style = space
insert_final_newline = true

[*.{cs,razor,cshtml}]
indent_size = 4
tab_width = 4
indent_style = space

[*.{json,map}]
[*.xml]
indent_size = 2
tab_width = 2

[*.{yml,yaml}]
indent_size = 2
tab_width = 2

[*.json]
indent_size = 2

[*.md]
trim_trailing_whitespace = false

[*.sh]
end_of_line = lf

[*.{sln,csproj,props}]
indent_size = 4

# .NET conventions
[*.cs]
# C# Coding Conventions
csharp_style_pattern_matching_over_as_with_null_check = true:error
csharp_style_prefer_pattern_matching = true:suggestion
csharp_style_prefer_not_pattern = true:suggestion
dotnet_style_prefer_isnull_check_over_reference_equality_method = true:suggestion

# Simplify 'default' expression warnings (IDE0034)
dotnet_diagnostic.IDE0034.severity = warning
# Sort usings
dotnet_sort_system_directives_first = true
# File-scoped namespaces
dotnet_style_namespace_match_folder = true
# var preferences
csharp_style_var_for_built_in_types = true:warning
csharp_style_var_when_type_is_apparent = true:warning
csharp_style_var_elsewhere = true:silent
# Expression-bodied members
csharp_style_expression_bodied_methods = true:silent
csharp_style_expression_bodied_constructors = true:silent
csharp_style_expression_bodied_properties = true:warning
# Pattern matching
csharp_style_pattern_matching_over_is_with_cast_check = true:warning
csharp_style_pattern_matching_over_as_with_null_check = true:warning
# Null checking
csharp_style_throw_expression = true:warning
csharp_style_conditional_delegate_call = true:warning
# Modifiers
dotnet_style_require_accessibility_modifiers = for_non_interface_members:warning
# Braces
csharp_prefer_braces = true:silent
# Newline
csharp_new_line_before_open_brace = all
csharp_new_line_before_else = true
csharp_new_line_before_catch = true
csharp_new_line_before_finally = true
csharp_new_line_before_members_in_object_initializers = true
32 changes: 32 additions & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
---
name: 🐛 Bug Report
about: Сообщить об ошибке
title: ''
labels: bug
assignees: ''
---

## Описание ошибки
Чёткое и краткое описание бага.

## Шаги для воспроизведения
1. Запустить: `Elib2EbookCli -u '...' -f '...'`
2. ...
3. Вижу ошибку

## Ожидаемое поведение
Что должно было произойти?

## Окружение
- **OS:** [например macOS 15, Windows 11, Ubuntu 24.04]
- **Версия .NET:** [если применимо]
- **Версия утилиты:** [--version или тег релиза]
- **Способ запуска:** [Portable / Docker / dotnet run]

## Логи
```
Вставьте логи сюда (запустите с --save-temp если нужно)
```

## Дополнительная информация
Любая другая информация, которая может помочь.
5 changes: 5 additions & 0 deletions .github/ISSUE_TEMPLATE/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
blank_issues_enabled: false
contact_links:
- name: Вопросы и обсуждения
url: https://github.com/OnlyFart/Elib2Ebook/discussions
about: Задайте вопрос или предложите обсуждение в Discussions
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: 🚀 Feature Request
about: Предложить новую функцию
title: ''
labels: enhancement
assignees: ''
---

## Проблема
Опишите проблему, которую вы хотите решить. Например: *"Мне не хватает поддержки сайта example.com"*

## Предлагаемое решение
Чёткое описание того, что вы хотите видеть.

## Альтернативы
Какие альтернативы вы рассматривали?

## Дополнительная информация
Ссылки, примеры, скриншоты.
48 changes: 48 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: "CodeQL Analysis"

on:
push:
branches: [master]
pull_request:
branches: [master]
schedule:
- cron: '0 6 * * 1' # каждый понедельник в 6 утра UTC

jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
timeout-minutes: 360
permissions:
security-events: write
packages: read
actions: read
contents: read

strategy:
fail-fast: false
matrix:
language: ['csharp']

steps:
- name: Checkout repository
uses: actions/checkout@v5

- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
queries: security-and-quality

- name: Setup .NET
uses: actions/setup-dotnet@v5
with:
dotnet-version: 9.0.x

- name: Build
run: dotnet build -c release Elib2Ebook.sln

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4
with:
category: "/language:${{matrix.language}}"
Loading
Loading