-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style(lint) manual fixes for gradle.ktlint 12.1.1
**This is incomplete** This prepares for the gradle plugin upgrade And some for ktlint 1.5.0 `./gradlew ktLintCheck` passes after this commit Process: * run `./gradlew AnkiDroid:ktlintFormat` * find the file and line number * rollback the changes (line numbers no longer match) * fix the error * amend to this commit disabling git hooks Some issues: * Exceeded max line length (140) (cannot be auto-corrected) * a block comment may not be preceded by a block comment (cannot be auto-corrected) * a block comment may not be preceded by an EOL comment unless separated by a blank line (cannot be auto-corrected) * an EOL comment may not be preceded by a block comment unless separated by a blank line (cannot be auto-corrected) * an EOL comment may not be preceded by a KDoc. Reversed order is allowed though when separated by a newline. (cannot be auto-corrected) * A comment inside or on same line after a 'value_parameter' is not allowed. It may be placed on a separate line above. (cannot be auto-corrected) * A block comment in between other elements on the same line is disallowed (cannot be auto-corrected) Co-authored-by: David Allison <[email protected]>
- Loading branch information
1 parent
6e4f8da
commit d7f67ad
Showing
39 changed files
with
573 additions
and
292 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/**************************************************************************************** | ||
/* ************************************************************************************** | ||
* Copyright (c) 2011 Kostas Spyropoulos <[email protected]> * | ||
* Copyright (c) 2014 Bruno Romero de Azevedo <[email protected]> * | ||
* Copyright (c) 2014–15 Roland Sieker <[email protected]> * | ||
|
@@ -17,6 +17,7 @@ | |
* You should have received a copy of the GNU General Public License along with * | ||
* this program. If not, see <http://www.gnu.org/licenses/>. * | ||
****************************************************************************************/ | ||
|
||
// TODO: implement own menu? http://www.codeproject.com/Articles/173121/Android-Menus-My-Way | ||
package com.ichi2.anki | ||
|
||
|
@@ -277,8 +278,9 @@ abstract class AbstractFlashcardViewer : | |
*/ | ||
protected val gestureProcessor = GestureProcessor(this) | ||
|
||
/** Handle joysticks/pedals */ | ||
// needs to be lateinit due to a reliance on Context | ||
|
||
/** Handle joysticks/pedals */ | ||
protected lateinit var motionEventHandler: MotionEventHandler | ||
|
||
val server = AnkiServer(this).also { it.start() } | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
/**************************************************************************************** | ||
/* ************************************************************************************** | ||
* Copyright (c) 2009 Andrew Dubya <[email protected]> * | ||
* Copyright (c) 2009 Nicolas Raoul <[email protected]> * | ||
* Copyright (c) 2009 Edu Zamora <[email protected]> * | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.