Showing 16 of 16 total issues
Function demoRun
has 60 lines of code (exceeds 50 allowed). Consider refactoring. Open
Open
func demoRun(cmd *Command, args ...string) {
config := config.LoadConfig()
fmt.Printf("driver: %v, open: %v\n", config.DriverName, config.DataSourceName)
exported type Config should have comment or be unexported Open
Open
type Config struct {
- Exclude checks
comment on exported type Command should be of the form "Command ..." (with optional leading article) Open
Open
// shamelessly snagged from the go tool
- Exclude checks
exported type UserEditCommand should have comment or be unexported Open
Open
type UserEditCommand struct {
- Exclude checks
exported method Command.SprintFlagDefaults should have comment or be unexported Open
Open
func (c *Command) SprintFlagDefaults() string {
- Exclude checks
exported type UserDeleteCommand should have comment or be unexported Open
Open
type UserDeleteCommand struct {
- Exclude checks
a blank import should be only in a main or test package, or have a comment justifying it Open
Open
_ "github.com/lib/pq"
- Exclude checks
2: cannot find package "github.com/folded-ear/datawell/config" in any of: Open
Open
"github.com/folded-ear/datawell/config"
- Exclude checks
exported function LoadConfig should have comment or be unexported Open
Open
func LoadConfig() *Config {
- Exclude checks
exported const DefaultDriverName should have comment (or a comment on this block) or be unexported Open
Open
DefaultDriverName = "use db/dbconf.yml"
- Exclude checks
exported method Command.Exec should have comment or be unexported Open
Open
func (c *Command) Exec(args []string) {
- Exclude checks
exported function Db should have comment or be unexported Open
Open
func Db() (*sql.DB, error) {
- Exclude checks
exported function Gorm should have comment or be unexported Open
Open
func Gorm() (*gorm.DB, error) {
- Exclude checks
exported type ServeCommand should have comment or be unexported Open
Open
type ServeCommand struct {
- Exclude checks
exported type UserAddCommand should have comment or be unexported Open
Open
type UserAddCommand struct {
- Exclude checks
exported const InitialPasswordLength should have comment (or a comment on this block) or be unexported Open
Open
InitialPasswordLength = 12
- Exclude checks