Factotum-sdp/Factotum

View on GitHub
app/src/main/java/com/github/factotum_sdp/factotum/MainActivity.kt

Summary

Maintainability
A
0 mins
Test Coverage
A
95%

Method onCreate has 37 lines of code (exceeds 25 allowed). Consider refactoring.
Wontfix

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        FirebaseStorage.getInstance().maxUploadRetryTimeMillis = MAX_UPLOAD_RETRY_TIME
        FirebaseStorage.getInstance().maxDownloadRetryTimeMillis = MAX_DOWNLOAD_RETRY_TIME
Severity: Minor
Found in app/src/main/java/com/github/factotum_sdp/factotum/MainActivity.kt - About 1 hr to fix

    Method setUserHeader has 34 lines of code (exceeds 25 allowed). Consider refactoring.
    Wontfix

        private fun setUserHeader() {
            val headerView = binding.navView.inflateHeaderView(R.layout.nav_header_main)
    
            // Fetch Header Views
            val profilePicture = headerView.findViewById<ImageView>(R.id.imageView)
    Severity: Minor
    Found in app/src/main/java/com/github/factotum_sdp/factotum/MainActivity.kt - About 1 hr to fix

      Method updateMenuItems has 28 lines of code (exceeds 25 allowed). Consider refactoring.
      Wontfix

          // Update the menu items according to the user roledisplayFragment
          private fun updateMenuItems(role: Role) {
              val navMenu = binding.navView.menu
      
              when (role) {
      Severity: Minor
      Found in app/src/main/java/com/github/factotum_sdp/factotum/MainActivity.kt - About 1 hr to fix

        There are no issues that match your filters.

        Category
        Status