Commit Graph

9 Commits

Author SHA1 Message Date
Zelda Hessler a559048ad8
formatting: run pre-commit on all files (#2236)
* formatting: run pre-commit on all files

* fix: test broken by string indent
2023-01-20 16:02:26 +00:00
John DiSanti 852c2ec260
Upgrade Ktlint and fix lint configuration (#1572)
* Exclude sigv4 test suite from pre-commit file endings hook
* Upgrade Ktlint
* Make Gradle ktlint target consistent with pre-commit

They were previously running two separate rulesets since pre-commit
pulls in the standard ruleset, and that wasn't pulled into the Gradle
dependencies.

* Fix Gradle Ktlint paths
* Establish editorconfig for Ktlint
* Fix Ktlint lints
* Enable `trailing-commas` rule
* Fix block quote indentation
2022-07-27 18:04:07 +00:00
david-perez c9e6ab9a5f
Upgrade Kotlin, Kotest, `ktlint` and Jacoco (#1331)
This commit upgrades:

* Kotlin to 1.6.20,
* Kotest to 5.2.3,
* Ktlint to 0.45.2; and
* Jacoco to 0.8.8.

Perhaps the only noteworthy change is that Ktlint now has a lint to
detect that the name of a class/object defined solely in a file has to
coincide with the filename.
2022-04-22 21:00:00 +00:00
david-perez 125328da64
Use Rust 2021 edition for pre-commit's `rustfmt` (#1328)
In #1268, runtime crates were updated to Rust 2021 edition.

Co-authored-by: Russell Cohen <rcoh@amazon.com>
2022-04-21 13:52:32 +00:00
Russell Cohen c22ec5812d
Add license header checker & missing headers (#917)
* Add license header checker & missing headers

Adds a license check pre-commit hook + adds license checking to CI

* Update tools/sdk-lints/src/copyright.rs

Co-authored-by: John DiSanti <jdisanti@amazon.com>

Co-authored-by: John DiSanti <jdisanti@amazon.com>
2021-12-02 13:39:30 +00:00
John DiSanti d2aac6281a
Add pre-commit hook to fix code gen block quote indentation (#825)
* Write pre-commit hook to fix Kotlin block quote indentation

* Manually correct oddball cases

* Format the rest of the block quotes

* Fix comment
2021-11-02 19:02:57 +00:00
Russell Cohen d4bf8e6e2a
Update rustfmt hook to run on all files (#348)
* Update rustfmt hook to run on all files

* Add missing --check
2021-04-30 17:33:20 -04:00
Russell Cohen eca86039a1
Upgrade Smithy & Kotlin to latest (#82)
* Upgrade to Kotlin 1.4

* Upgrade Smithy version, fix some deprecations
2020-12-14 10:58:04 -05:00
Russell Cohen 86dc5db504
Add pre-commit hooks (#17)
* Setup pre-commit

* Run precommit hook across all files

* Update README.md
2020-11-04 22:09:00 -05:00