Don Turner
707117a4f2
Merge branch 'main' into kotlinify
1 year ago
Simon Marquis
59143b0b79
Suppress `LintImplTrimIndent` for `trimMargin()`
1 year ago
Simon Marquis
a8450176ed
Add tests for `DesignSystemDetector` lint
1 year ago
Simon Marquis
caa482bc71
Kotlinify codebase
...
- Remove unnecessary nullable types
- Replace no-op method bodies with Unit
- Convert to expression body
- Replace if with when
- Remove braces from 'when' entries
- Remove braces from if statement
- Convert to single line lambda
- oneline if/returns
- Replace 'contains' call with 'in' operator
Following this refactor, it could be great to envision a more "strict" code formatter like ktlint 1.0 (we are currently stuck at 0.48.1)
1 year ago
Simon Marquis
3cfe4df048
Update lint/src/main/kotlin/com/google/samples/apps/nowinandroid/lint/NiaIssueRegistry.kt
1 year ago
Don Turner
9747255e33
Remove underscore check
...
Change-Id: Iec1d07787a6e1cd350b9d8d082e729ef62492013
1 year ago
Simon Marquis
16fd42a766
Restore lazy API call
1 year ago
Simon Marquis
ba19aa6da0
Rename `TestMethodDetector` to `TestMethodNameDetector` as suggested
1 year ago
Simon Marquis
4732249443
Update regex to match expected format
1 year ago
Simon Marquis
f9abb3115b
Fix test
1 year ago
Simon Marquis
058f0e4375
Add missing import
1 year ago
Simon Marquis
d8af223958
Add `TestMethodDetector` with tests
1 year ago
Simon Marquis
0af797f613
Add missing test dependencies
1 year ago
Simon Marquis
e0f0256d63
Migrate `DesignSystemIssueRegistry` into generic `NiaIssueRegistry`
1 year ago
Melwin Magalhaes
6247712064
Add convention plugins to version catalogs
2 years ago
Simon Marquis
a33dafccad
Migrate from `java` to `kotlin` sourceSet directory
2 years ago
Simon Marquis
8e708cca05
Merge branch 'main' into lint/sarif
2 years ago
Miłosz Moczkowski
99094199bc
Remove redundant suppressions
...
Change-Id: Iae08b6f284cf7a387922fdec34c8a0aa0da809ef
2 years ago
Simon Marquis
62db986836
Add lint plugin to the `:lint` module
2 years ago
Takeshi Hagikura
e1bb03b33d
Set the source/target compatibility to 11
...
This is because up to Java 11 features are supported without requiring
minimum API level nor AGP versions at the moment as in
https://developer.android.com/studio/write/java11-minimal-support-table
2 years ago
Alex Vanyo
38260e5a86
Update to VERSION_17 everywhere
...
Change-Id: I3e75e8a833f45365657a24c4af652c2449af804c
2 years ago
Alex Vanyo
086dc957c0
Update to AGP 8.0
...
Change-Id: I27eb106e484e2003d732782a39612dc72c845282
2 years ago
Don Turner
67998766fb
Merge pull request #578 from android/dt/update-lint
...
Update lint java version to 11
2 years ago
Don Turner
50b88aa769
Update lint java version to 11
...
Change-Id: I7bba0615e3f1ca13523300950932b5f899b60567
2 years ago
Márton Braun
237375f52a
Remove unused DropdownMenu component
...
Change-Id: I7ee7e8f1995667c7e54459f4333594c4605cc5a9
2 years ago
Simon Marquis
92417207dc
Migrate last build.gradle to build.gradle.kts
2 years ago
Márton Braun
819dd494ad
Run Spotless to add trailing commas (and apply other rule updates)
...
Change-Id: I5f8e49a3ef004c7e9e7dfe4bc55f0a35dc575209
2 years ago
Nick Rout
c12fe1fbe5
Update :core-designsystem module based on Figma file
2 years ago
Milosz Moczkowski
06e60063b5
Add dependency graphs to every module
...
Change-Id: I629fef818f7521c13bb3069a3ff9ed9bc42e57f3
3 years ago
Wojtek Kaliciński
4683918cc7
Move spotless to init script
...
Also adds automatic git hooks installation
Change-Id: I18debbee43af27db7b95a4202f824fa87e186713
3 years ago
Nick Rout
d05b573f52
Improve design system usage and add lint checks
...
Change-Id: I05f9400a9410e31bdf1534e458d560fe793b809f
3 years ago