Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
danslapman committed Jun 24, 2022
0 parents commit f3de8a7
Show file tree
Hide file tree
Showing 47 changed files with 3,376 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
This template isn't a strict requirement to open issues, but please try to provide as much information as possible.

**Version**: (e.g. `0.4.1-SNAPSHOT`)
**Module**: (e.g. `oolong-core`)
**Database**: (e.g. `MongoDB`)

### Expected behavior

### Actual behavior

### Steps to reproduce the behavior

### Workaround

@oolong/maintainers
23 changes: 23 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Fixes #issue_number

### Problem

Explain here the context, and why you're making that change.
What is the problem you're trying to solve?

### Solution

Describe the modifications you've done.

### Notes

Additional notes.

### Checklist

- [ ] Unit test all changes
- [ ] Update `README.md` if applicable
- [ ] Add `[WIP]` to the pull request title if it's work in progress
- [ ] [Squash commits](https://ariejan.net/2011/07/05/git-squash-your-latests-commits-into-one) that aren't meaningful changes

@oolong/maintainers
17 changes: 17 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
.bsp
.idea
.idea_modules
.ensime
.ensime_cache/
*.sublime-project
*.sublime-workspace
target/
.DS_Store
**/main/resources/local.conf
keys/private
.metals
scalafix-commons.conf
.vscode
.bloop
**/project/metals.sbt
.sbt-cache
36 changes: 36 additions & 0 deletions .scalafix.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
rules = [
LeakingImplicitClassVal,
NoValInForComprehension,
#ProcedureSyntax, не поддерживается для Scala 3
DisableSyntax
]

RemoveUnused.imports = true
RemoveUnused.privates = false
RemoveUnused.locals = false
RemoveUnused.patternvars = false
RemoveUnused.params = false

DisableSyntax.regex = [
{
id = "mapUnit"
pattern = "\\.map\\(_\\s*=>\\s*\\(\\)\\)"
message = "Use .void"
}, {
id = mouseAny
pattern = "import mouse\\.any\\._"
message = "Use scala.util.chaining"
}, {
id = utilsResourceManagement
pattern = "import ru\\.tinkoff\\.tcb\\.utils\\.rm\\._"
message = "Use scala.util.Using"
},{
id = mapAs
pattern = "\\.map\\(_\\s*=>\\s*[\\w\\d\\.\"\\(\\)]+\\)"
message = "Use .as"
}, {
id = catsImplicits
pattern = "import cats\\.implicits"
message = "Use granular imports"
}
]
58 changes: 58 additions & 0 deletions .scalafmt.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
align = most
align.openParenCallSite = false
align.openParenDefnSite = false
align.tokens = [
{ code = "extends", owner = "Defn.(Class|Trait|Object)" }
{ code = "//", owner = ".*" }
{ code = "{", owner = "Template" }
{ code = "}", owner = "Template" }
{ code = "%", owner = "Term.ApplyInfix" }
{ code = "=>", owner = "Case" }
{ code = "%%",owner = "Term.ApplyInfix" }
{ code = "%%%",owner = "Term.ApplyInfix" }
{ code = "<-", owner = "Enumerator.Generator" }
{ code = "->", owner = "Term.ApplyInfix" }
{ code = "=", owner = "(Enumerator.Val|Defn.(Va(l|r)|Def|Type))" }
]
continuationIndent.defnSite = 4
docstrings.style = Asterisk
encoding = UTF-8
importSelectors = singleLine
maxColumn = 120
newlines.beforeTypeBounds = unfold
newlines.avoidForSimpleOverflow = [tooLong, punct, slc]
optIn.configStyleArguments = true
project.git = true
rewrite.rules = [
PreferCurlyFors
Imports, // Может делать ошибки если есть относительные пути. Конфликтует с OrganizeImports из scalafix, но работает значительно быстрее и подхватывается Idea.
RedundantBraces
RedundantParens
SortModifiers
]
rewrite.imports.expand = true
rewrite.imports.sort = ascii
rewrite.imports.groups = [
["javax?..*", "scala..*"]
[".*", "ru\\.tinkoff.tschema\\..*", "ru\\.tinkoff.tofu\\..*"]
["ru\\.tinkoff\\..*"]
]
rewrite.sortModifiers.order = [
implicit
final
sealed
abstract
override
private
protected
lazy
open
transparent
inline
infix
opaque
]
runner.dialect = "scala3"
style = IntelliJ
trailingCommas = preserve
version=3.4.0
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @edubrovski @danslapman @desavitsky @Assassin4791 @InversionSpaces
84 changes: 84 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
# Contributing

## Pull Request Process

1. Make a fork of this repo.
2. Make changes.
3. Create a pull request from your fork to this repo.

## Code of Conduct

### Our Pledge

In the interest of fostering an open and welcoming environment, we as
contributors and maintainers pledge to making participation in our project and
our community a harassment-free experience for everyone, regardless of age, body
size, disability, ethnicity, gender identity and expression, level of experience,
nationality, personal appearance, race, religion, or sexual identity and
orientation.

### Our Standards

Examples of behavior that contributes to creating a positive environment
include:

* Using welcoming and inclusive language
* Being respectful of differing viewpoints and experiences
* Gracefully accepting constructive criticism
* Focusing on what is best for the community
* Showing empathy towards other community members

Examples of unacceptable behavior by participants include:

* The use of sexualized language or imagery and unwelcome sexual attention or
advances
* Trolling, insulting/derogatory comments, and personal or political attacks
* Public or private harassment
* Publishing others' private information, such as a physical or electronic
address, without explicit permission
* Other conduct which could reasonably be considered inappropriate in a
professional setting

### Our Responsibilities

Project maintainers are responsible for clarifying the standards of acceptable
behavior and are expected to take appropriate and fair corrective action in
response to any instances of unacceptable behavior.

Project maintainers have the right and responsibility to remove, edit, or
reject comments, commits, code, wiki edits, issues, and other contributions
that are not aligned to this Code of Conduct, or to ban temporarily or
permanently any contributor for other behaviors that they deem inappropriate,
threatening, offensive, or harmful.

### Scope

This Code of Conduct applies both within project spaces and in public spaces
when an individual is representing the project or its community. Examples of
representing a project or community include using an official project e-mail
address, posting via an official social media account, or acting as an appointed
representative at an online or offline event. Representation of a project may be
further defined and clarified by project maintainers.

### Enforcement

Instances of abusive, harassing, or otherwise unacceptable behavior may be
reported by contacting the project team. All
complaints will be reviewed and investigated and will result in a response that
is deemed necessary and appropriate to the circumstances. The project team is
obligated to maintain confidentiality with regard to the reporter of an incident.
Further details of specific enforcement policies may be posted separately.

Project maintainers who do not follow or enforce the Code of Conduct in good
faith may face temporary or permanent repercussions as determined by other
members of the project's leadership.

## Attribution

This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html

[homepage]: https://www.contributor-covenant.org

For answers to common questions about this code of conduct, see
https://www.contributor-covenant.org/faq
Loading

0 comments on commit f3de8a7

Please sign in to comment.