Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
alaingilbert committed Aug 3, 2018
1 parent bf74a0d commit 9c9887f
Show file tree
Hide file tree
Showing 9 changed files with 19 additions and 9 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
PKGS = $(shell go list ./... | grep -v /vendor/ | grep -v /bindata)
PKGS = $(shell go list ./... | grep -v /vendor/ | grep -v /bindata | grep -v /cmd/c)
VERSION = $(shell git describe)

lint:
Expand Down
2 changes: 1 addition & 1 deletion allianceDepot.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type allianceDepot struct {
BaseBuilding
}

// New ...
// NewAllianceDepot ...
func NewAllianceDepot() *allianceDepot {
b := new(allianceDepot)
b.ID = AllianceDepotID
Expand Down
2 changes: 1 addition & 1 deletion crystalMine.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type crystalMine struct {
BaseBuilding
}

// New ...
// NewCrystalMine ...
func NewCrystalMine() *crystalMine {
b := new(crystalMine)
b.ID = CrystalMineID
Expand Down
2 changes: 1 addition & 1 deletion defence.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package ogame

import "strconv"

// Defense ...
// Defenses ...
type Defenses struct {
RocketLauncher int
LightLaser int
Expand Down
2 changes: 1 addition & 1 deletion deuteriumSynthesizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type deuteriumSynthesizer struct {
BaseBuilding
}

// New ...
// NewDeuteriumSynthesizer ...
func NewDeuteriumSynthesizer() *deuteriumSynthesizer {
b := new(deuteriumSynthesizer)
b.ID = DeuteriumSynthesizerID
Expand Down
2 changes: 1 addition & 1 deletion metalMine.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ type metalMine struct {
BaseBuilding
}

// NeNewMetalMinew ...
// NewMetalMine ...
func NewMetalMine() *metalMine {
b := new(metalMine)
b.ID = MetalMineID
Expand Down
2 changes: 1 addition & 1 deletion metalStorage.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ type metalStorage struct {
StorageBuilding
}

// New ...
// NewMetalStorage ...
func NewMetalStorage() *metalStorage {
b := new(metalStorage)
b.ID = MetalStorageID
Expand Down
12 changes: 11 additions & 1 deletion ogame.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ var ErrBadCredentials = errors.New("bad credentials")
// ErrInvalidPlanetID ...
var ErrInvalidPlanetID = errors.New("invalid planet id")

// All ogame objects
var (
AllianceDepot = NewAllianceDepot() // Buildings
CrystalMine = NewCrystalMine()
Expand Down Expand Up @@ -208,6 +209,7 @@ type Defense interface {
GetRapidfireFrom() map[ID]int
}

// Ships ...
var Ships = []Ship{
Battlecruiser,
Battleship,
Expand All @@ -225,6 +227,7 @@ var Ships = []Ship{
SolarSatellite,
}

// Buildings ...
var Buildings = []Building{
AllianceDepot,
CrystalMine,
Expand All @@ -248,6 +251,7 @@ var Buildings = []Building{
SolarSatellite,
}

// Technologies ...
var Technologies = []Technology{
ArmourTechnology,
Astrophysics,
Expand Down Expand Up @@ -1942,11 +1946,16 @@ func (b *OGame) sendFleet(planetID PlanetID, ships []Quantifiable, speed Speed,
return 0, errors.New("could not find new fleet ID")
}

// EspionageReportType ...
type EspionageReportType int

// Action ...
const Action EspionageReportType = 0

// Report ...
const Report EspionageReportType = 1

// EspionageReportSummary ...
type EspionageReportSummary struct {
ID int
Type EspionageReportType
Expand Down Expand Up @@ -2011,6 +2020,7 @@ func (b *OGame) getEspionageReportMessages() ([]EspionageReportSummary, error) {
return msgs, nil
}

// EspionageReport ...
type EspionageReport struct {
Resources
ResourcesBuildings
Expand Down Expand Up @@ -2582,7 +2592,7 @@ func (b *OGame) SendFleet(planetID PlanetID, ships []Quantifiable, speed Speed,
return b.sendFleet(planetID, ships, speed, where, mission, resources)
}

// GetEspionageReportMessageIDs ...
// GetEspionageReportMessages ...
func (b *OGame) GetEspionageReportMessages() ([]EspionageReportSummary, error) {
b.Lock()
defer b.Unlock()
Expand Down
2 changes: 1 addition & 1 deletion ships.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package ogame

import "strconv"

// Ships ...
// ShipsInfos ...
type ShipsInfos struct {
LightFighter int
HeavyFighter int
Expand Down

0 comments on commit 9c9887f

Please sign in to comment.