Commit Graph

1307 Commits (c2044e5b394ddfc2fe402c9f3936f9235e59519f)

Author SHA1 Message Date
Lunny Xiao ec87a75c00 golint fixed for modules/auth
Thomas Boerger 7a92519bd7 Merge pull request from lunny/lunny/golint_modules_log
Golint fixed for modules/log
Mura Li 9aaf2a6d9a modules/process: add ExecDirEnv (next to ExecDir)
Add a sibling to ExecDir which is capable of specifying environment variables,
so that we can invoke `git` with GIT_INDEX_FILE, GIT_DIR, etc..

For 
Lunny Xiao 94da472717 Golint fixed for modules/setting ()
* golint fixed for modules/setting

* typo fixed and renamed UNIXSOCKET to UnixSocket
Lunny Xiao 3228544c31 golint fixed for modules/log
Thomas Boerger e9c6053b86 Merge pull request from Bwko/fix/typo
Fix typos
Thomas Boerger 32f8a38f6c Merge pull request from lunny/lunny/golint_modules_context
Golint fixed for modules/context
Thomas Boerger 3e6f363471 Merge pull request from lunny/lunny/golint_modules_avatar
Golint fixed for modules/avatar
Thomas Boerger 2255a9af6a Merge pull request from lunny/lunny/golint_modules_cron
Golint fixed for modules/cron
Thomas Boerger 26ae2ff86d Merge pull request from lunny/lunny/golint_fixed_modules_httplib
Golint fixed for modules/httplib
Thomas Boerger d39266228c Merge pull request from lunny/lunny/golint_modules_template
Golint fixed for modules/template
Thomas Boerger 7c5de1e393 Merge pull request from lunny/lunny/golint_modules_markdown
Golint fixed for modules/markdown
Lunny Xiao 3c87c57d96 golint fixed for modules/avatar
Lunny Xiao b47051e59b golint fixed for modules/cron
Lunny Xiao 76604d8f90 fixed test build error
Lunny Xiao faabc76fd6 Golint fixed for modules/context
Lunny Xiao bd5ea3e222 Golint fixed for modules/httplib
Lunny Xiao 229ec927b9 Golint fixed for modules/template
Lunny Xiao 304bbd3f25 golint fixed for modules/markdown
Lunny Xiao 2e565bc1c4 Golint fixed for modules/mailer
Thomas Boerger 2ccdcda072 Merge pull request from lunny/lunny/golint_modules_user
golint fixed for modules/user
Thomas Boerger 8ba0ac976f Merge pull request from lunny/lunny/golint_modules_base
golint fixed for modules/base
Lunny Xiao 46ecb0a14d golint fixed for modules/user
Sandro Santilli ad3d6b7fff Lint and document manager api
Lunny Xiao fb3bb69ec6 golint fixed for modules/base
Bwko 2a449bd4b1 Fix typos
Ethan Koenig 0834e492c0 API endpoints for stars
Bo-Yi Wu d9ffe99972 fix variable assigned and not used.
Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
Thibault Meyer ddee4c8b58
Normalize files with gofmt
Sandro Santilli 4247304f5a Update import paths from github.com/go-gitea to code.gitea.io ()
- Update import paths from github.com/go-gitea to code.gitea.io
- Fix import path for travis

See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
Lunny Xiao 1b238fe4d5 Merge pull request from joubertredrat/feature-last-login
Last Login for admin manage your users
Joubert RedRat f91cbf0fed Support to last login feature
Matthias Loibl 45c4539c61 Merge pull request from LefsFlarey/issue/3666
Fixed 404 caused by unexpected question mark
Flare 01c5233b53
Fixed 404 caused by unexpected question mark
This fixes 404 caused when creating new files or wiki pages with question marks. Amended to force CI rebuild
Matthias Loibl e74868a850
Add test for IsTextFile()
Matthias Loibl 95d4cd9292
Make long godoc comment 2 lines
Matthias Loibl 2bb188ae79
Add test for IsLetter()
Matthias Loibl 4235fff9ee
Add test for Int64sToMap()
Matthias Loibl d417aedcfa
Add tests for StringsToInt64s() & Int64sToStrings()
Matthias Loibl b00d82d679
Add tests for TruncateString()
Matthias Loibl 86c32f2706
Use TruncateString(sha1,10) in ShortSha and deprecate it.
Matthias Loibl 030ba2894f
Add tests for EllipsisString() and fix bug if param length < 3
Matthias Loibl f81711f40d
Test AvatarLink and refactor with tests passing
Matthias Loibl 70fb1cf9d1
Use testify/assert for all tests in tool_test.go
Matthias Loibl d874a9bf6b
Add unit test for base.FileSize()
Matthias Loibl 11c9160cd3
Start to add tests for modules/base/tool
Sandro Santilli 864d1b1f9f Fix type in unused constant name ()
* Write LDAP, SMTP, PAM, DLDAP back to all uppercase

* Fix type in unused constant name

* Other MixCased fixes

* Complete MixerCasing of template constants

* Re uppercase LTS and LDAPS suffixes

* Uppercase JSON suffix in constant names

* Proper case LoginNoType

* Prefix unexported template path constants with "tpl"
Sandro Santilli b7bf9dfd28 more
Sandro Santilli 05fd9d3f09 Security protocols
Sandro Santilli f388661bda ACCESS_MODE_* -> AccessMode*