use pre-commit to force trailing ending line & remove trailing whitespaces at end of lines

This commit is contained in:
Cuong-Tran 2025-03-24 13:33:03 +07:00
parent 55b9aeca11
commit cca961f6c2
No known key found for this signature in database
GPG key ID: 733AA7624B9315C2
126 changed files with 135 additions and 139 deletions

6
.pre-commit-config.yaml Normal file
View file

@ -0,0 +1,6 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0 # Use the latest stable version
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace

View file

@ -199,4 +199,3 @@
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

View file

@ -121,6 +121,3 @@ object BangumiScraper {
return responseStr
}
}

View file

@ -219,8 +219,3 @@ class LycorisCafeExtractor(private val client: OkHttpClient) {
}

View file

@ -6,4 +6,3 @@ ext {
}
apply from: "$rootDir/common.gradle"